Discussion:
[Erp5-dev] *_divergence_testers view returns error.
Shresth K
2007-05-08 08:52:08 UTC
Permalink
Hello,

I have been experimenting with ERP5 since the release of rc11 live CD.

I was exploring portal_rules when I ran into some trouble with the
default_order_rule/*_divergence_testers view. The same was the case with
default_order_rule which I have managed to workaround with changing the
portal type of rule tool to 'ERP5 Folder' .

I am currently using revision14268.


Here is the detailed error log when I attempt to access
portal_rules/default_order_rule/1


Time 2007/05/08 14:08:10.551 GMT+0530
User Name (User Id) itcon (itcon)
Request URL
http://localhost:9080/erp5dev/portal_rules/default_order_rule/1/view
Exception Type AttributeError
Exception Value 'NoneType' object has no attribute
'isConstructionAllowed'

Traceback (innermost last):
Module ZPublisher.Publish, line 101, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 39, in call_object
Module Products.CMFCore.PortalContent, line 117, in view
Module Products.CMFCore.PortalContent, line 109, in __call__
Module Products.ERP5Form.Form, line 364, in __call__
Module Products.ERP5Form.Form, line 402, in __call__
Module Products.PageTemplates.PageTemplate, line 96, in pt_render
- <ZopePageTemplate at /erp5dev/form_view used for
/erp5dev/PropertyDivergenceTester_view>
Module TAL.TALInterpreter, line 190, in __call__

- snip-

Module TAL.TALInterpreter, line 460, in do_setLocal_tal
Module Products.PageTemplates.TALES, line 221, in evaluate
- URL: /erp5dev/context_box_render
- Line 71, Column 6
- Expression: standard:'here/getVisibleAllowedContentTypeList |
python:[]'
- Names:
{'container': <OrderRule at /erp5dev/portal_rules/default_order_rule>,
'context': <ERP5Form at /erp5dev/PropertyDivergenceTester_view used
for /erp5dev/portal_rules/default_order_rule/1>,
'default': <Products.PageTemplates.TALES.Default instance at
0xb6a7e18c>,
'form': <ERP5Form at /erp5dev/PropertyDivergenceTester_view used for
/erp5dev/portal_rules/default_order_rule/1>,
'here': <PropertyDivergenceTester at
/erp5dev/portal_rules/default_order_rule/1>,
'loop': <SafeMapping instance at b00032a0>,
'modules':
<Products.PageTemplates.ZRPythonExpr._SecureModuleImporterinstance at
0xb6a787ac>,
'nothing': None,
'options': {'args': ()},
'repeat': <SafeMapping instance at b00032a0>,
'request': <HTTPRequest, URL=
http://zklphoenix.dyndns.org:9080/erp5dev/portal_rules/default_order_rule/1/view
,
'root': <Application instance at b3839cb0>,
'template': <ERP5Form at /erp5dev/PropertyDivergenceTester_view used
for /erp5dev/portal_rules/default_order_rule/1>}
Module Products.PageTemplates.Expressions, line 174, in __call__
Module Products.PageTemplates.Expressions, line 169, in _eval
Module Products.PageTemplates.Expressions, line 74, in render
Module Products.ERP5Type.Core.Folder, line 715, in
getVisibleAllowedContentTypeList
Module Products.ERP5Type.Cache, line 192, in __call__
Module Products.ERP5Type.Cache, line 109, in __call__
Module Products.ERP5Type.Core.Folder, line 704, in
_getVisibleAllowedContentTypeList
Module Products.ERP5Type.patches.CMFBTreeFolder, line 54, in
CMFBTreeFolder_allowedContentTypes
Module Products.ERP5Type.patches.CMFBTreeFolder, line 52, in <lambda>
AttributeError: 'NoneType' object has no attribute 'isConstructionAllowed'

Is it something from ERP5Type or CMFCore that needs to be imported into the
Tester documents such as Folder? Just guessing.

Thanks in advance for any help or guidance.

Regards,
Shresth
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20070508/3ccd4d33/attachment.htm>
Shrenik Bhura
2007-05-08 11:59:38 UTC
Permalink
Hi Shresth,

Apply the following to the *DivergenceTester.py and the problem will be solved.


Index: ERP5/Document/CategoryDivergenceTester.py
===================================================================
- --- ERP5/Document/CategoryDivergenceTester.py (revision 14268)
+++ ERP5/Document/CategoryDivergenceTester.py (working copy)
@@ -44,7 +44,8 @@
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
- -
+ allowed_types = ()
+
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)


Index: ERP5/Document/PropertyDivergenceTester.py
===================================================================
- --- ERP5/Document/PropertyDivergenceTester.py (revision 14268)
+++ ERP5/Document/PropertyDivergenceTester.py (working copy)
@@ -45,7 +45,8 @@
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
- -
+ allowed_types = ()
+
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)


Index: ERP5/Document/QuantityDivergenceTester.py
===================================================================
- --- ERP5/Document/QuantityDivergenceTester.py (revision 14268)
+++ ERP5/Document/QuantityDivergenceTester.py (working copy)
@@ -44,7 +44,8 @@
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
- -
+ allowed_types = ()
+
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)


Can anyone from Nexedi or more informed souls confirm the same?

Regards,
SB

"I am not intelligent, I only try to observe...."
Post by Shresth K
Hello,
I have been experimenting with ERP5 since the release of rc11 live CD.
I was exploring portal_rules when I ran into some trouble with the
default_order_rule/*_divergence_testers view. The same was the case with
default_order_rule which I have managed to workaround with changing the
portal type of rule tool to 'ERP5 Folder' .
I am currently using revision14268.
Here is the detailed error log when I attempt to access
portal_rules/default_order_rule/1
Time 2007/05/08 14:08:10.551 GMT+0530
User Name (User Id) itcon (itcon)
Request URL
http://localhost:9080/erp5dev/portal_rules/default_order_rule/1/view
Exception Type AttributeError
Exception Value 'NoneType' object has no attribute
'isConstructionAllowed'
Module ZPublisher.Publish, line 101, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 39, in call_object
Module Products.CMFCore.PortalContent, line 117, in view
Module Products.CMFCore.PortalContent, line 109, in __call__
Module Products.ERP5Form.Form, line 364, in __call__
Module Products.ERP5Form.Form, line 402, in __call__
Module Products.PageTemplates.PageTemplate, line 96, in pt_render
- <ZopePageTemplate at /erp5dev/form_view used for
/erp5dev/PropertyDivergenceTester_view>
Module TAL.TALInterpreter, line 190, in __call__
- snip-
Module TAL.TALInterpreter, line 460, in do_setLocal_tal
Module Products.PageTemplates.TALES, line 221, in evaluate
- URL: /erp5dev/context_box_render
- Line 71, Column 6
- Expression: standard:'here/getVisibleAllowedContentTypeList |
python:[]'
{'container': <OrderRule at
/erp5dev/portal_rules/default_order_rule>,
'context': <ERP5Form at /erp5dev/PropertyDivergenceTester_view
used for /erp5dev/portal_rules/default_order_rule/1>,
'default': <Products.PageTemplates.TALES.Default instance at
0xb6a7e18c>,
'form': <ERP5Form at /erp5dev/PropertyDivergenceTester_view used
for /erp5dev/portal_rules/default_order_rule/1>,
'here': <PropertyDivergenceTester at
/erp5dev/portal_rules/default_order_rule/1>,
'loop': <SafeMapping instance at b00032a0>,
<Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at
0xb6a787ac>,
'nothing': None,
'options': {'args': ()},
'repeat': <SafeMapping instance at b00032a0>,
'request': <HTTPRequest, URL=
http://zklphoenix.dyndns.org:9080/erp5dev/portal_rules/default_order_rule/1/view>,
'root': <Application instance at b3839cb0>,
'template': <ERP5Form at /erp5dev/PropertyDivergenceTester_view
used for /erp5dev/portal_rules/default_order_rule/1>}
Module Products.PageTemplates.Expressions, line 174, in __call__
Module Products.PageTemplates.Expressions, line 169, in _eval
Module Products.PageTemplates.Expressions, line 74, in render
Module Products.ERP5Type.Core.Folder , line 715, in
getVisibleAllowedContentTypeList
Module Products.ERP5Type.Cache, line 192, in __call__
Module Products.ERP5Type.Cache, line 109, in __call__
Module Products.ERP5Type.Core.Folder, line 704, in
_getVisibleAllowedContentTypeList
Module Products.ERP5Type.patches.CMFBTreeFolder, line 54, in
CMFBTreeFolder_allowedContentTypes
Module Products.ERP5Type.patches.CMFBTreeFolder, line 52, in <lambda>
AttributeError: 'NoneType' object has no attribute 'isConstructionAllowed'
Is it something from ERP5Type or CMFCore that needs to be imported into
the Tester documents such as Folder? Just guessing.
Thanks in advance for any help or guidance.
Regards,
Shresth
------------------------------------------------------------------------
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://erp5.org/mailman/listinfo/erp5-dev
Rafael Monnerat
2007-05-10 16:30:59 UTC
Permalink
The Project and Project Line (portal types) starts with this problem too. I just
went at portal_types tool an "save" again the Project and Project Line and
everything starts to work again.

I didn't check why works again, but it can be related with portal type
Permissions that should be updated in XML.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Shresth,
Apply the following to the *DivergenceTester.py and the problem will be solved.
Index: ERP5/Document/CategoryDivergenceTester.py
===================================================================
- --- ERP5/Document/CategoryDivergenceTester.py (revision 14268)
+++ ERP5/Document/CategoryDivergenceTester.py (working copy)
@@ -44,7 +44,8 @@
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
- -
+ allowed_types = ()
+
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
Index: ERP5/Document/PropertyDivergenceTester.py
===================================================================
- --- ERP5/Document/PropertyDivergenceTester.py (revision 14268)
+++ ERP5/Document/PropertyDivergenceTester.py (working copy)
@@ -45,7 +45,8 @@
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
- -
+ allowed_types = ()
+
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
Index: ERP5/Document/QuantityDivergenceTester.py
===================================================================
- --- ERP5/Document/QuantityDivergenceTester.py (revision 14268)
+++ ERP5/Document/QuantityDivergenceTester.py (working copy)
@@ -44,7 +44,8 @@
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
- -
+ allowed_types = ()
+
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
Can anyone from Nexedi or more informed souls confirm the same?
Regards,
SB
"I am not intelligent, I only try to observe...."
Post by Shresth K
Hello,
I have been experimenting with ERP5 since the release of rc11 live CD.
I was exploring portal_rules when I ran into some trouble with the
default_order_rule/*_divergence_testers view. The same was the case with
default_order_rule which I have managed to workaround with changing the
portal type of rule tool to 'ERP5 Folder' .
I am currently using revision14268.
Here is the detailed error log when I attempt to access
portal_rules/default_order_rule/1
Time 2007/05/08 14:08:10.551 GMT+0530
User Name (User Id) itcon (itcon)
Request URL
http://localhost:9080/erp5dev/portal_rules/default_order_rule/1/view
Exception Type AttributeError
Exception Value 'NoneType' object has no attribute
'isConstructionAllowed'
Module ZPublisher.Publish, line 101, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 39, in call_object
Module Products.CMFCore.PortalContent, line 117, in view
Module Products.CMFCore.PortalContent, line 109, in __call__
Module Products.ERP5Form.Form, line 364, in __call__
Module Products.ERP5Form.Form, line 402, in __call__
Module Products.PageTemplates.PageTemplate, line 96, in pt_render
- <ZopePageTemplate at /erp5dev/form_view used for
/erp5dev/PropertyDivergenceTester_view>
Module TAL.TALInterpreter, line 190, in __call__
- snip-
Module TAL.TALInterpreter, line 460, in do_setLocal_tal
Module Products.PageTemplates.TALES, line 221, in evaluate
- URL: /erp5dev/context_box_render
- Line 71, Column 6
- Expression: standard:'here/getVisibleAllowedContentTypeList |
python:[]'
{'container': <OrderRule at
/erp5dev/portal_rules/default_order_rule>,
'context': <ERP5Form at /erp5dev/PropertyDivergenceTester_view
used for /erp5dev/portal_rules/default_order_rule/1>,
'default': <Products.PageTemplates.TALES.Default instance at
0xb6a7e18c>,
'form': <ERP5Form at /erp5dev/PropertyDivergenceTester_view used
for /erp5dev/portal_rules/default_order_rule/1>,
'here': <PropertyDivergenceTester at
/erp5dev/portal_rules/default_order_rule/1>,
'loop': <SafeMapping instance at b00032a0>,
<Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at
0xb6a787ac>,
'nothing': None,
'options': {'args': ()},
'repeat': <SafeMapping instance at b00032a0>,
'request': <HTTPRequest, URL=
http://zklphoenix.dyndns.org:9080/erp5dev/portal_rules/default_order_rule/1/view>,
Post by Shresth K
'root': <Application instance at b3839cb0>,
'template': <ERP5Form at /erp5dev/PropertyDivergenceTester_view
used for /erp5dev/portal_rules/default_order_rule/1>}
Module Products.PageTemplates.Expressions, line 174, in __call__
Module Products.PageTemplates.Expressions, line 169, in _eval
Module Products.PageTemplates.Expressions, line 74, in render
Module Products.ERP5Type.Core.Folder , line 715, in
getVisibleAllowedContentTypeList
Module Products.ERP5Type.Cache, line 192, in __call__
Module Products.ERP5Type.Cache, line 109, in __call__
Module Products.ERP5Type.Core.Folder, line 704, in
_getVisibleAllowedContentTypeList
Module Products.ERP5Type.patches.CMFBTreeFolder, line 54, in
CMFBTreeFolder_allowedContentTypes
Module Products.ERP5Type.patches.CMFBTreeFolder, line 52, in <lambda>
AttributeError: 'NoneType' object has no attribute 'isConstructionAllowed'
Is it something from ERP5Type or CMFCore that needs to be imported into
the Tester documents such as Folder? Just guessing.
Thanks in advance for any help or guidance.
Regards,
Shresth
------------------------------------------------------------------------
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://erp5.org/mailman/listinfo/erp5-dev
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFGQGYqwqjb3kq05PgRAut1AKCKsx1I2hEfO4U3EDBMFtFrBakGAACgi7Nf
PqvD9FMfGMwnjnJ2qQ9SN2s=
=oOoO
-----END PGP SIGNATURE-----
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://erp5.org/mailman/listinfo/erp5-dev
Rafael Manhaes Monnerat
ERP5 Developer

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
Romain Courteaud
2007-05-10 12:41:56 UTC
Permalink
I also experimented this problem recently.
It seems that the portal type 'Allowed content types' property had wrong
value inside (as non existing portal type).
type.

Of course, clicking on the 'save' button modify (and fix) 'Allowed
content types', but this does not explain why there were bad values...

Romain
Post by Rafael Monnerat
The Project and Project Line (portal types) starts with this problem too. I just
went at portal_types tool an "save" again the Project and Project Line and
everything starts to work again.
I didn't check why works again, but it can be related with portal type
Permissions that should be updated in XML.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Shresth,
Apply the following to the *DivergenceTester.py and the problem will be solved.
Index: ERP5/Document/CategoryDivergenceTester.py
===================================================================
- --- ERP5/Document/CategoryDivergenceTester.py (revision 14268)
+++ ERP5/Document/CategoryDivergenceTester.py (working copy)
@@ -44,7 +44,8 @@
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
- -
+ allowed_types = ()
+
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
Index: ERP5/Document/PropertyDivergenceTester.py
===================================================================
- --- ERP5/Document/PropertyDivergenceTester.py (revision 14268)
+++ ERP5/Document/PropertyDivergenceTester.py (working copy)
@@ -45,7 +45,8 @@
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
- -
+ allowed_types = ()
+
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
Index: ERP5/Document/QuantityDivergenceTester.py
===================================================================
- --- ERP5/Document/QuantityDivergenceTester.py (revision 14268)
+++ ERP5/Document/QuantityDivergenceTester.py (working copy)
@@ -44,7 +44,8 @@
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
- -
+ allowed_types = ()
+
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(Permissions.AccessContentsInformation)
Can anyone from Nexedi or more informed souls confirm the same?
Regards,
SB
"I am not intelligent, I only try to observe...."
Post by Shresth K
Hello,
I have been experimenting with ERP5 since the release of rc11 live CD.
I was exploring portal_rules when I ran into some trouble with the
default_order_rule/*_divergence_testers view. The same was the case with
default_order_rule which I have managed to workaround with changing the
portal type of rule tool to 'ERP5 Folder' .
I am currently using revision14268.
Here is the detailed error log when I attempt to access
portal_rules/default_order_rule/1
Time 2007/05/08 14:08:10.551 GMT+0530
User Name (User Id) itcon (itcon)
Request URL
http://localhost:9080/erp5dev/portal_rules/default_order_rule/1/view
Exception Type AttributeError
Exception Value 'NoneType' object has no attribute
'isConstructionAllowed'
Module ZPublisher.Publish, line 101, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 39, in call_object
Module Products.CMFCore.PortalContent, line 117, in view
Module Products.CMFCore.PortalContent, line 109, in __call__
Module Products.ERP5Form.Form, line 364, in __call__
Module Products.ERP5Form.Form, line 402, in __call__
Module Products.PageTemplates.PageTemplate, line 96, in pt_render
- <ZopePageTemplate at /erp5dev/form_view used for
/erp5dev/PropertyDivergenceTester_view>
Module TAL.TALInterpreter, line 190, in __call__
- snip-
Module TAL.TALInterpreter, line 460, in do_setLocal_tal
Module Products.PageTemplates.TALES, line 221, in evaluate
- URL: /erp5dev/context_box_render
- Line 71, Column 6
- Expression: standard:'here/getVisibleAllowedContentTypeList |
python:[]'
{'container': <OrderRule at
/erp5dev/portal_rules/default_order_rule>,
'context': <ERP5Form at /erp5dev/PropertyDivergenceTester_view
used for /erp5dev/portal_rules/default_order_rule/1>,
'default': <Products.PageTemplates.TALES.Default instance at
0xb6a7e18c>,
'form': <ERP5Form at /erp5dev/PropertyDivergenceTester_view used
for /erp5dev/portal_rules/default_order_rule/1>,
'here': <PropertyDivergenceTester at
/erp5dev/portal_rules/default_order_rule/1>,
'loop': <SafeMapping instance at b00032a0>,
<Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance at
0xb6a787ac>,
'nothing': None,
'options': {'args': ()},
'repeat': <SafeMapping instance at b00032a0>,
'request': <HTTPRequest, URL=
http://zklphoenix.dyndns.org:9080/erp5dev/portal_rules/default_order_rule/1/view>,
Post by Shresth K
'root': <Application instance at b3839cb0>,
'template': <ERP5Form at /erp5dev/PropertyDivergenceTester_view
used for /erp5dev/portal_rules/default_order_rule/1>}
Module Products.PageTemplates.Expressions, line 174, in __call__
Module Products.PageTemplates.Expressions, line 169, in _eval
Module Products.PageTemplates.Expressions, line 74, in render
Module Products.ERP5Type.Core.Folder , line 715, in
getVisibleAllowedContentTypeList
Module Products.ERP5Type.Cache, line 192, in __call__
Module Products.ERP5Type.Cache, line 109, in __call__
Module Products.ERP5Type.Core.Folder, line 704, in
_getVisibleAllowedContentTypeList
Module Products.ERP5Type.patches.CMFBTreeFolder, line 54, in
CMFBTreeFolder_allowedContentTypes
Module Products.ERP5Type.patches.CMFBTreeFolder, line 52, in <lambda>
AttributeError: 'NoneType' object has no attribute 'isConstructionAllowed'
Is it something from ERP5Type or CMFCore that needs to be imported into
the Tester documents such as Folder? Just guessing.
Thanks in advance for any help or guidance.
Regards,
Shresth
------------------------------------------------------------------------
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://erp5.org/mailman/listinfo/erp5-dev
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFGQGYqwqjb3kq05PgRAut1AKCKsx1I2hEfO4U3EDBMFtFrBakGAACgi7Nf
PqvD9FMfGMwnjnJ2qQ9SN2s=
=oOoO
-----END PGP SIGNATURE-----
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://erp5.org/mailman/listinfo/erp5-dev
Rafael Manhaes Monnerat
ERP5 Developer
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://erp5.org/mailman/listinfo/erp5-dev
Shresth K
2007-05-10 13:26:50 UTC
Permalink
Isn't the solution proposed about adding allowed_types = () the correct
solution?

At least it did work smooth after I did that. Thanks Shrenik.

Shresth
Post by Romain Courteaud
I also experimented this problem recently.
It seems that the portal type 'Allowed content types' property had wrong
value inside (as non existing portal type).
type.
Of course, clicking on the 'save' button modify (and fix) 'Allowed
content types', but this does not explain why there were bad values...
Romain
Post by Rafael Monnerat
The Project and Project Line (portal types) starts with this problem
too. I just
Post by Rafael Monnerat
went at portal_types tool an "save" again the Project and Project Line
and
Post by Rafael Monnerat
everything starts to work again.
I didn't check why works again, but it can be related with portal type
Permissions that should be updated in XML.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Shresth,
Apply the following to the *DivergenceTester.py and the problem will
be
Post by Rafael Monnerat
solved.
Index: ERP5/Document/CategoryDivergenceTester.py
===================================================================
- --- ERP5/Document/CategoryDivergenceTester.py (revision 14268)
+++ ERP5/Document/CategoryDivergenceTester.py (working copy)
@@ -44,7 +44,8 @@
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
- -
+ allowed_types = ()
+
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(
Permissions.AccessContentsInformation)
Post by Rafael Monnerat
Index: ERP5/Document/PropertyDivergenceTester.py
===================================================================
- --- ERP5/Document/PropertyDivergenceTester.py (revision 14268)
+++ ERP5/Document/PropertyDivergenceTester.py (working copy)
@@ -45,7 +45,8 @@
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
- -
+ allowed_types = ()
+
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(
Permissions.AccessContentsInformation)
Post by Rafael Monnerat
Index: ERP5/Document/QuantityDivergenceTester.py
===================================================================
- --- ERP5/Document/QuantityDivergenceTester.py (revision 14268)
+++ ERP5/Document/QuantityDivergenceTester.py (working copy)
@@ -44,7 +44,8 @@
add_permission = Permissions.AddPortalContent
isPortalContent = 1
isRADContent = 1
- -
+ allowed_types = ()
+
# Declarative security
security = ClassSecurityInfo()
security.declareObjectProtected(
Permissions.AccessContentsInformation)
Post by Rafael Monnerat
Can anyone from Nexedi or more informed souls confirm the same?
Regards,
SB
"I am not intelligent, I only try to observe...."
Post by Shresth K
Hello,
I have been experimenting with ERP5 since the release of rc11 live
CD.
Post by Rafael Monnerat
Post by Shresth K
I was exploring portal_rules when I ran into some trouble with the
default_order_rule/*_divergence_testers view. The same was the case
with
Post by Rafael Monnerat
Post by Shresth K
default_order_rule which I have managed to workaround with changing
the
Post by Rafael Monnerat
Post by Shresth K
portal type of rule tool to 'ERP5 Folder' .
I am currently using revision14268.
Here is the detailed error log when I attempt to access
portal_rules/default_order_rule/1
Time 2007/05/08 14:08:10.551 GMT+0530
User Name (User Id) itcon (itcon)
Request URL
http://localhost:9080/erp5dev/portal_rules/default_order_rule/1/view
Exception Type AttributeError
Exception Value 'NoneType' object has no attribute
'isConstructionAllowed'
Module ZPublisher.Publish, line 101, in publish
Module ZPublisher.mapply, line 88, in mapply
Module ZPublisher.Publish, line 39, in call_object
Module Products.CMFCore.PortalContent, line 117, in view
Module Products.CMFCore.PortalContent, line 109, in __call__
Module Products.ERP5Form.Form, line 364, in __call__
Module Products.ERP5Form.Form, line 402, in __call__
Module Products.PageTemplates.PageTemplate, line 96, in pt_render
- <ZopePageTemplate at /erp5dev/form_view used for
/erp5dev/PropertyDivergenceTester_view>
Module TAL.TALInterpreter, line 190, in __call__
- snip-
Module TAL.TALInterpreter, line 460, in do_setLocal_tal
Module Products.PageTemplates.TALES, line 221, in evaluate
- URL: /erp5dev/context_box_render
- Line 71, Column 6
- Expression: standard:'here/getVisibleAllowedContentTypeList |
python:[]'
{'container': <OrderRule at
/erp5dev/portal_rules/default_order_rule>,
'context': <ERP5Form at
/erp5dev/PropertyDivergenceTester_view
Post by Rafael Monnerat
Post by Shresth K
used for /erp5dev/portal_rules/default_order_rule/1>,
'default': <Products.PageTemplates.TALES.Default instance at
0xb6a7e18c>,
'form': <ERP5Form at /erp5dev/PropertyDivergenceTester_view
used
Post by Rafael Monnerat
Post by Shresth K
for /erp5dev/portal_rules/default_order_rule/1>,
'here': <PropertyDivergenceTester at
/erp5dev/portal_rules/default_order_rule/1>,
'loop': <SafeMapping instance at b00032a0>,
<Products.PageTemplates.ZRPythonExpr._SecureModuleImporter instance
at
Post by Rafael Monnerat
Post by Shresth K
0xb6a787ac>,
'nothing': None,
'options': {'args': ()},
'repeat': <SafeMapping instance at b00032a0>,
'request': <HTTPRequest, URL=
http://zklphoenix.dyndns.org:9080/erp5dev/portal_rules/default_order_rule/1/view
Post by Rafael Monnerat
,
Post by Shresth K
'root': <Application instance at b3839cb0>,
'template': <ERP5Form at
/erp5dev/PropertyDivergenceTester_view
Post by Rafael Monnerat
Post by Shresth K
used for /erp5dev/portal_rules/default_order_rule/1>}
Module Products.PageTemplates.Expressions, line 174, in __call__
Module Products.PageTemplates.Expressions, line 169, in _eval
Module Products.PageTemplates.Expressions, line 74, in render
Module Products.ERP5Type.Core.Folder , line 715, in
getVisibleAllowedContentTypeList
Module Products.ERP5Type.Cache, line 192, in __call__
Module Products.ERP5Type.Cache, line 109, in __call__
Module Products.ERP5Type.Core.Folder, line 704, in
_getVisibleAllowedContentTypeList
Module Products.ERP5Type.patches.CMFBTreeFolder, line 54, in
CMFBTreeFolder_allowedContentTypes
Module Products.ERP5Type.patches.CMFBTreeFolder, line 52, in
<lambda>
Post by Rafael Monnerat
Post by Shresth K
AttributeError: 'NoneType' object has no attribute
'isConstructionAllowed'
Post by Rafael Monnerat
Post by Shresth K
Is it something from ERP5Type or CMFCore that needs to be imported
into
Post by Rafael Monnerat
Post by Shresth K
the Tester documents such as Folder? Just guessing.
Thanks in advance for any help or guidance.
Regards,
Shresth
------------------------------------------------------------------------
Post by Rafael Monnerat
Post by Shresth K
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://erp5.org/mailman/listinfo/erp5-dev
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFGQGYqwqjb3kq05PgRAut1AKCKsx1I2hEfO4U3EDBMFtFrBakGAACgi7Nf
PqvD9FMfGMwnjnJ2qQ9SN2s=
=oOoO
-----END PGP SIGNATURE-----
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://erp5.org/mailman/listinfo/erp5-dev
Rafael Manhaes Monnerat
ERP5 Developer
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://erp5.org/mailman/listinfo/erp5-dev
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://erp5.org/mailman/listinfo/erp5-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20070510/d2d8ec1f/attachment.htm>
Romain Courteaud
2007-05-10 13:44:22 UTC
Permalink
Post by Shresth K
Isn't the solution proposed about adding allowed_types = () the correct
solution?
No, you only need to update erp5_core in your case to bt5 revision 302.
http://svn.erp5.org?rev=14197&view=rev
This revision fixes the Divergence Tester wrong "Allowed Content Type".

More brutally, you can also click on the "Save" button of the portal
type, as Rafael proposed.

Romain
Shresth K
2007-05-10 13:58:23 UTC
Permalink
Thanks for your prompt reply.

A few more queries -
* In the *DivergenceTester_view I notice a field my_solver_list. Shouldn't
that be my_solver_script_list?
* Are the Divergence Testers completely implemented and functional? I see
there is a Discussion active about it and about a new Simulation Model at
wiki.erp5.org but that does not give much clarity. Is the Simulation model
doc at cps.erp5.org relevant even now?
* Do we need these Divergence Testers for the default erp5_trade
functionality to work?

Thanks,
Shresth
Post by Romain Courteaud
Post by Shresth K
Isn't the solution proposed about adding allowed_types = () the correct
solution?
No, you only need to update erp5_core in your case to bt5 revision 302.
http://svn.erp5.org?rev=14197&view=rev
This revision fixes the Divergence Tester wrong "Allowed Content Type".
More brutally, you can also click on the "Save" button of the portal
type, as Rafael proposed.
Romain
_______________________________________________
Erp5-dev mailing list
Erp5-dev at erp5.org
http://erp5.org/mailman/listinfo/erp5-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.tiolive.com/pipermail/erp5-dev/attachments/20070510/3031db95/attachment.htm>
Romain Courteaud
2007-05-21 13:40:58 UTC
Permalink
Post by Shresth K
Thanks for your prompt reply.
A few more queries -
* In the *DivergenceTester_view I notice a field my_solver_list. Shouldn't
that be my_solver_script_list?
You're right.
Post by Shresth K
* Are the Divergence Testers completely implemented and functional? I see
there is a Discussion active about it and about a new Simulation Model at
wiki.erp5.org but that does not give much clarity. Is the Simulation model
doc at cps.erp5.org relevant even now?
Yes, divergence testers are functional and used in production site.
Divergence testers implementation did not change anything in Simulation
model.
Post by Shresth K
* Do we need these Divergence Testers for the default erp5_trade
functionality to work?
Yes, it's required by the causality workflow.

Romain

Loading...