|
|
|
|
Ken Winter
()
|
|
||||||||||||
|
I'm building a Plone site that is a forest (that is, a bunch of copies) of a "standard tree". Each node of the standard tree is an instance of a different one of my Archetypes content types. The different content types are identical except for the fields in their respective schemas. They all use the same page templates, which are basically the Archetypes base_view.pt and base_edit.cpt and all the macros they use, and the same controller scripts, which basically get data out of and update data back into a relational database. All the trees in the forest are identical except for identifiers.
They all worked fine - until recently, when one of them started throwing an "insufficient privileges" error when I try to bring up either the "view" or the "edit" version from the end user interface. Also, when I try to look at the ZMI pages for the problem content objects, I get this AttributeError: "'NoneType' object has no attribute 'setHeader' ". (Full tracebacks below.) All instances of this one content type present these same problems. All instances of all the other content types still work fine. I have compared the content type definitions of the bad type with the good types, but I can't see any difference that would account for the problem. I'm out of ideas for where to look. I'm hoping that someone can check out the tracebacks below and suggest where to look. ~ TIA ~ Ken Traceback from the ZMI error: 2009-03-24T20:20:03 ERROR Zope.SiteErrorLog http://c.05.luxor.highspeedrails.com/groups/glda/practical-matters/events/event/event-session/manage_main Traceback (innermost last): Module ZPublisher.Publish, line 115, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 41, in call_object Module Shared.DC.Scripts.Bindings, line 311, in __call__ Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec Module App.special_dtml, line 176, in _exec Module Shared.DC.Scripts.Bindings, line 325, in __render_with_namespace__ Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec Module App.special_dtml, line 176, in _exec Module DocumentTemplate.DT_Util, line 196, in eval - __traceback_info__: RESPONSE Module <string>, line 0, in ? AttributeError: 'NoneType' object has no attribute 'setHeader' The "insufficient privileges" error occurs when the controller script that reads from the RDB first tries to access the problem object, 'event-session'. Here's the traceback: 2009-03-24T16:30:13 ERROR Zope.SiteErrorLog http://c.05.luxor.highspeedrails.com/groups/dhr3/practical-matters/events/rdb_read Traceback (innermost last): Module ZPublisher.Publish, line 115, in publish Module ZPublisher.mapply, line 88, in mapply Module ZPublisher.Publish, line 41, in call_object Module Products.CMFFormController.FSControllerPythonScript, line 104, in __call__ Module Products.CMFFormController.Script, line 145, in __call__ Module Products.CMFCore.FSPythonScript, line 108, in __call__ Module Shared.DC.Scripts.Bindings, line 311, in __call__ Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec Module Products.CMFCore.FSPythonScript, line 164, in _exec Module None, line 40, in rdb_read - <FSControllerPythonScript at /groups/rdb_read used for /groups/dhr3/practical-matters/events> - Line 40 Module Products.CMFCore.FSPythonScript, line 108, in __call__ Module Shared.DC.Scripts.Bindings, line 311, in __call__ Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec Module Products.CMFCore.FSPythonScript, line 164, in _exec Module None, line 69, in rdb_read_one_recordset - <FSPythonScript at /groups/rdb_read_one_recordset used for /groups/dhr3/practical-matters/events> - Line 69 Module AccessControl.ImplPython, line 729, in guarded_getattr Module AccessControl.ImplPython, line 671, in aq_validate Module AccessControl.ImplPython, line 565, in validate Module AccessControl.ImplPython, line 445, in validate Module AccessControl.ImplPython, line 810, in raiseVerbose Unauthorized: The object is marked as private. Access to 'event-session' of (RDBEvent at /groups/dhr3/practical-matters/events/event) denied. Plone version overview: Plone 2.5.4-2, CMF-1.6.4, Zope (Zope 2.9.8-final, python 2.4.4, freebsd6), Five 1.4.2, Python 2.4.4 (#2, Sep 26 2007, 13:07:27) [GCC 3.4.6 [FreeBSD] 20060305], PIL 1.1.5 |
||||||||||||||
|
|
Larry Pitcher
()
|
|
||||||||||||
|
Ken Winter wrote:
> I'm building a Plone site that is a forest (that is, a bunch of copies) of a "standard tree". Each node of the standard tree is an instance of a different one of my Archetypes content types. The different content types are identical except for the fields in their respective schemas. They all use the same page templates, which are basically the Archetypes base_view.pt and base_edit.cpt and all the macros they use, and the same controller scripts, which basically get data out of and update data back into a relational database. All the trees in the forest are identical except for identifiers. > > They all worked fine - until recently, when one of them started throwing an "insufficient privileges" error when I try to bring up either the "view" or the "edit" version from the end user interface. Also, when I try to look at the ZMI pages for the problem content objects, I get this AttributeError: "'NoneType' object has no attribute 'setHeader' ". (Full tracebacks below.) > > All instances of this one content type present these same problems. All instances of all the other content types still work fine. I have compared the content type definitions of the bad type with the good types, but I can't see any difference that would account for the problem. I'm out of ideas for where to look. > > I'm hoping that someone can check out the tracebacks below and suggest where to look. > > ~ TIA > ~ Ken > > Traceback from the ZMI error: > > 2009-03-24T20:20:03 ERROR Zope.SiteErrorLog http://c.05.luxor.highspeedrails.com/groups/glda/practical-matters/events/event/event-session/manage_main > Traceback (innermost last): > Module ZPublisher.Publish, line 115, in publish > Module ZPublisher.mapply, line 88, in mapply > Module ZPublisher.Publish, line 41, in call_object > Module Shared.DC.Scripts.Bindings, line 311, in __call__ > Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec > Module App.special_dtml, line 176, in _exec > Module Shared.DC.Scripts.Bindings, line 325, in __render_with_namespace__ > Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec > Module App.special_dtml, line 176, in _exec > Module DocumentTemplate.DT_Util, line 196, in eval > - __traceback_info__: RESPONSE > Module <string>, line 0, in ? > AttributeError: 'NoneType' object has no attribute 'setHeader' > > The "insufficient privileges" error occurs when the controller script that reads from the RDB first tries to access the problem object, 'event-session'. Here's the traceback: > > 2009-03-24T16:30:13 ERROR Zope.SiteErrorLog http://c.05.luxor.highspeedrails.com/groups/dhr3/practical-matters/events/rdb_read > Traceback (innermost last): > Module ZPublisher.Publish, line 115, in publish > Module ZPublisher.mapply, line 88, in mapply > Module ZPublisher.Publish, line 41, in call_object > Module Products.CMFFormController.FSControllerPythonScript, line 104, in __call__ > Module Products.CMFFormController.Script, line 145, in __call__ > Module Products.CMFCore.FSPythonScript, line 108, in __call__ > Module Shared.DC.Scripts.Bindings, line 311, in __call__ > Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec > Module Products.CMFCore.FSPythonScript, line 164, in _exec > Module None, line 40, in rdb_read > - <FSControllerPythonScript at /groups/rdb_read used for /groups/dhr3/practical-matters/events> > - Line 40 > Module Products.CMFCore.FSPythonScript, line 108, in __call__ > Module Shared.DC.Scripts.Bindings, line 311, in __call__ > Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec > Module Products.CMFCore.FSPythonScript, line 164, in _exec > Module None, line 69, in rdb_read_one_recordset > - <FSPythonScript at /groups/rdb_read_one_recordset used for /groups/dhr3/practical-matters/events> > - Line 69 > Module AccessControl.ImplPython, line 729, in guarded_getattr > Module AccessControl.ImplPython, line 671, in aq_validate > Module AccessControl.ImplPython, line 565, in validate > Module AccessControl.ImplPython, line 445, in validate > Module AccessControl.ImplPython, line 810, in raiseVerbose > Unauthorized: The object is marked as private. Access to 'event-session' of (RDBEvent at /groups/dhr3/practical-matters/events/event) denied. > > Plone version overview: > Plone 2.5.4-2, > CMF-1.6.4, > Zope (Zope 2.9.8-final, python 2.4.4, freebsd6), > Five 1.4.2, > Python 2.4.4 (#2, Sep 26 2007, 13:07:27) [GCC 3.4.6 [FreeBSD] 20060305], > PIL 1.1.5 Ken, Have you made any changes in your schema, and if so, have you updated the schema in archetype_tool Update Schema tab? You may need to post your type definition before anyone can really help you. -- Larry Pitcher Catapult Solutions Web: www.catapultsolutions.net Email: [hidden email] Skype: larry.pitcher Phone: 509.849.2660 ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Archetypes-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/archetypes-users |
||||||||||||||
|
|
Raphael Ritz
()
|
|
||||||||||||
|
In reply to this post
by Ken Winter
Ken Winter wrote:
> I'm building a Plone site that is a forest (that is, a bunch of copies) of a "standard tree". Each node of the standard tree is an instance of a different one of my Archetypes content types. The different content types are identical except for the fields in their respective schemas. They all use the same page templates, which are basically the Archetypes base_view.pt and base_edit.cpt and all the macros they use, and the same controller scripts, which basically get data out of and update data back into a relational database. All the trees in the forest are identical except for identifiers. > > They all worked fine - until recently, when one of them started throwing an "insufficient privileges" error when I try to bring up either the "view" or the "edit" version from the end user interface. Also, when I try to look at the ZMI pages for the problem content objects, I get this AttributeError: "'NoneType' object has no attribute 'setHeader' ". (Full tracebacks below.) > > All instances of this one content type present these same problems. All instances of all the other content types still work fine. I have compared the content type definitions of the bad type with the good types, but I can't see any difference that would account for the problem. I'm out of ideas for where to look. > > I'm hoping that someone can check out the tracebacks below and suggest where to look. Do you by any chance have a field called 'header' or 'time' in the schema? Other than that: can you post your schema and class definition? Raphael > > ~ TIA > ~ Ken > > Traceback from the ZMI error: > > 2009-03-24T20:20:03 ERROR Zope.SiteErrorLog http://c.05.luxor.highspeedrails.com/groups/glda/practical-matters/events/event/event-session/manage_main > Traceback (innermost last): > Module ZPublisher.Publish, line 115, in publish > Module ZPublisher.mapply, line 88, in mapply > Module ZPublisher.Publish, line 41, in call_object > Module Shared.DC.Scripts.Bindings, line 311, in __call__ > Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec > Module App.special_dtml, line 176, in _exec > Module Shared.DC.Scripts.Bindings, line 325, in __render_with_namespace__ > Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec > Module App.special_dtml, line 176, in _exec > Module DocumentTemplate.DT_Util, line 196, in eval > - __traceback_info__: RESPONSE > Module <string>, line 0, in ? > AttributeError: 'NoneType' object has no attribute 'setHeader' > > The "insufficient privileges" error occurs when the controller script that reads from the RDB first tries to access the problem object, 'event-session'. Here's the traceback: > > 2009-03-24T16:30:13 ERROR Zope.SiteErrorLog http://c.05.luxor.highspeedrails.com/groups/dhr3/practical-matters/events/rdb_read > Traceback (innermost last): > Module ZPublisher.Publish, line 115, in publish > Module ZPublisher.mapply, line 88, in mapply > Module ZPublisher.Publish, line 41, in call_object > Module Products.CMFFormController.FSControllerPythonScript, line 104, in __call__ > Module Products.CMFFormController.Script, line 145, in __call__ > Module Products.CMFCore.FSPythonScript, line 108, in __call__ > Module Shared.DC.Scripts.Bindings, line 311, in __call__ > Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec > Module Products.CMFCore.FSPythonScript, line 164, in _exec > Module None, line 40, in rdb_read > - <FSControllerPythonScript at /groups/rdb_read used for /groups/dhr3/practical-matters/events> > - Line 40 > Module Products.CMFCore.FSPythonScript, line 108, in __call__ > Module Shared.DC.Scripts.Bindings, line 311, in __call__ > Module Shared.DC.Scripts.Bindings, line 348, in _bindAndExec > Module Products.CMFCore.FSPythonScript, line 164, in _exec > Module None, line 69, in rdb_read_one_recordset > - <FSPythonScript at /groups/rdb_read_one_recordset used for /groups/dhr3/practical-matters/events> > - Line 69 > Module AccessControl.ImplPython, line 729, in guarded_getattr > Module AccessControl.ImplPython, line 671, in aq_validate > Module AccessControl.ImplPython, line 565, in validate > Module AccessControl.ImplPython, line 445, in validate > Module AccessControl.ImplPython, line 810, in raiseVerbose > Unauthorized: The object is marked as private. Access to 'event-session' of (RDBEvent at /groups/dhr3/practical-matters/events/event) denied. > > Plone version overview: > Plone 2.5.4-2, > CMF-1.6.4, > Zope (Zope 2.9.8-final, python 2.4.4, freebsd6), > Five 1.4.2, > Python 2.4.4 (#2, Sep 26 2007, 13:07:27) [GCC 3.4.6 [FreeBSD] 20060305], > PIL 1.1.5 ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ Archetypes-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/archetypes-users |
||||||||||||||
|
|
Ken Winter
()
|
|
||||||||||||
|
In reply to this post
by Ken Winter
Larry & Raphael ~
Thanks for your suggestions, and I apologize for not responding sooner - somehow I didn't get e-mail notifications of your replies. I especially appreciate your willingness to respond to the increasingly quirky and obscure problems that I find myself posting to this list as time goes on (and I get better at solving the easier ones myself) ... Anyway, I (more or less inadvertently) solved the problem by re-executing a script I have that (re-)executes the PopulatorTool, which is what creates (and recreates) the forest of "standard trees". I don't know what was wrong with my type definition before, but it works now, so all is well enough. ~ Thanks again ~ Ken |
||||||||||||||
| Free Embeddable Forum Powered by Nabble | Help |