Commit 920f5648 authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_oauth: Add mt_index to the tool

This will fix the issue below:

======================================================================
ERROR: test_refresh_token (erp5.component.test.erp5_version.testGoogleLogin.TestGoogleLogin)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/srv/slapgrid/slappart11/srv/runner/software/46ff20cd786207637e80576bed95522d/parts/erp5/Products/ERP5Type/tests/runUnitTest.py", line 291, in setUp
super(ComponentTestCase, self).setUp()
File "/srv/slapgrid/slappart11/srv/runner/software/46ff20cd786207637e80576bed95522d/eggs/Zope2-2.13.24-py2.7.egg/Testing/ZopeTestCase/PortalTestCase.py", line 60, in setUp
self.afterSetUp()
File "<portal_components/test.erp5.testGoogleLogin>", line 143, in afterSetUp
secret_key=SECRET_KEY)
File "/srv/slapgrid/slappart11/srv/runner/software/46ff20cd786207637e80576bed95522d/parts/erp5/product/ERP5Type/Core/Folder.py", line 620, in newContent
return FolderMixIn.newContent(self, *args, **kw)
File "/srv/slapgrid/slappart11/srv/runner/software/46ff20cd786207637e80576bed95522d/parts/erp5/product/ERP5Type/Core/Folder.py", line 163, in newContent
**kw)
File "/srv/slapgrid/slappart11/srv/runner/software/46ff20cd786207637e80576bed95522d/parts/erp5/product/ERP5Type/ERP5Type.py", line 399, in constructInstance
container._setObject(id, base_ob)
File "/srv/slapgrid/slappart11/srv/runner/software/46ff20cd786207637e80576bed95522d/parts/erp5/product/ERP5Type/Core/Folder.py", line 974, in _setObject
return CMFBTreeFolder._setObject(self, *args, **kw)
File "/srv/slapgrid/slappart11/srv/runner/software/46ff20cd786207637e80576bed95522d/eggs/Products.BTreeFolder2-2.13.5-py2.7.egg/Products/BTreeFolder2/BTreeFolder2.py", line 443, in _setObject
self._setOb(id, ob)
File "/srv/slapgrid/slappart11/srv/runner/software/46ff20cd786207637e80576bed95522d/parts/erp5/product/ERP5Type/Core/Folder.py", line 850, in _setOb
return CMFBTreeFolder._setOb(self, id, object)
File "/srv/slapgrid/slappart11/srv/runner/software/46ff20cd786207637e80576bed95522d/eggs/Products.BTreeFolder2-2.13.5-py2.7.egg/Products/BTreeFolder2/BTreeFolder2.py", line 256, in _setOb
ids = mti.get(meta_type, None)
AttributeError: 'NoneType' object has no attribute 'get'
parent 53894c84
...@@ -13,11 +13,17 @@ ...@@ -13,11 +13,17 @@
</value> </value>
</item> </item>
<item> <item>
<key> <string>_tree</string> </key> <key> <string>_mt_index</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAM=</string> </persistent>
</value> </value>
</item> </item>
<item>
<key> <string>_tree</string> </key>
<value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent>
</value>
</item>
<item> <item>
<key> <string>consumer</string> </key> <key> <string>consumer</string> </key>
<value> <value>
...@@ -106,7 +112,7 @@ ...@@ -106,7 +112,7 @@
<item> <item>
<key> <string>signature_methods</string> </key> <key> <string>signature_methods</string> </key>
<value> <value>
<persistent> <string encoding="base64">AAAAAAAAAAQ=</string> </persistent> <persistent> <string encoding="base64">AAAAAAAAAAU=</string> </persistent>
</value> </value>
</item> </item>
<item> <item>
...@@ -127,10 +133,27 @@ ...@@ -127,10 +133,27 @@
<global name="OOBTree" module="BTrees.OOBTree"/> <global name="OOBTree" module="BTrees.OOBTree"/>
</pickle> </pickle>
<pickle> <pickle>
<none/> <tuple>
<tuple>
<tuple>
<tuple>
<string>RPM Client Interface</string>
<persistent> <string encoding="base64">AAAAAAAAAAY=</string> </persistent>
</tuple>
</tuple>
</tuple>
</tuple>
</pickle> </pickle>
</record> </record>
<record id="4" aka="AAAAAAAAAAQ="> <record id="4" aka="AAAAAAAAAAQ=">
<pickle>
<global name="OOBTree" module="BTrees.OOBTree"/>
</pickle>
<pickle>
<none/>
</pickle>
</record>
<record id="5" aka="AAAAAAAAAAU=">
<pickle> <pickle>
<tuple> <tuple>
<global name="PersistentMapping" module="Persistence.mapping"/> <global name="PersistentMapping" module="Persistence.mapping"/>
...@@ -148,11 +171,11 @@ ...@@ -148,11 +171,11 @@
<value> <value>
<object> <object>
<klass> <klass>
<global id="4.1" name="_dt_reconstructor" module="DateTime.DateTime"/> <global id="5.1" name="_dt_reconstructor" module="DateTime.DateTime"/>
</klass> </klass>
<tuple> <tuple>
<global name="OAuthSignatureMethod_HMAC_SHA1" module="Products.ERP5TioSafe.Tool.OAuthTool"/> <global name="OAuthSignatureMethod_HMAC_SHA1" module="Products.ERP5TioSafe.Tool.OAuthTool"/>
<global id="4.2" name="object" module="__builtin__"/> <global id="5.2" name="object" module="__builtin__"/>
<none/> <none/>
</tuple> </tuple>
</object> </object>
...@@ -162,10 +185,10 @@ ...@@ -162,10 +185,10 @@
<key> <string>PLAINTEXT</string> </key> <key> <string>PLAINTEXT</string> </key>
<value> <value>
<object> <object>
<klass> <reference id="4.1"/> </klass> <klass> <reference id="5.1"/> </klass>
<tuple> <tuple>
<global name="OAuthSignatureMethod_PLAINTEXT" module="Products.ERP5TioSafe.Tool.OAuthTool"/> <global name="OAuthSignatureMethod_PLAINTEXT" module="Products.ERP5TioSafe.Tool.OAuthTool"/>
<reference id="4.2"/> <reference id="5.2"/>
<none/> <none/>
</tuple> </tuple>
</object> </object>
...@@ -177,4 +200,21 @@ ...@@ -177,4 +200,21 @@
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
<record id="6" aka="AAAAAAAAAAY=">
<pickle>
<global name="OIBTree" module="BTrees.OIBTree"/>
</pickle>
<pickle>
<tuple>
<tuple>
<tuple>
<tuple>
<string>rpm</string>
<int>1</int>
</tuple>
</tuple>
</tuple>
</tuple>
</pickle>
</record>
</ZopeData> </ZopeData>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment