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