[Zope] zope 2.7: Unauthorized "in this context"

2005-06-07 Thread John Hunter
I recently upgraded my zope server to 2.7 and a product I wrote which makes heavy use of Z-Classes is now broken. This is a workflow site for a course, and there are Course, Section, Student, ProjectSubmission, etc as ZClasses. To view the page at all students undergo basic authentication. When

Re: [Zope] zope 2.7: Unauthorized "in this context"

2005-06-08 Thread Dieter Maurer
John Hunter wrote at 2005-6-7 09:52 -0500: > ... >Traceback (innermost last): > ... > URL: > http://srp.uchicago.edu/2005/Sections/B1/Amrita%20Arora/ProjectSubmission_addForm/manage_main > Physical Path:/srp/2005/Sections/B1/Amrita > Arora/ProjectSubmission_addForm >* Module Documen

Re: [Zope] zope 2.7: Unauthorized "in this context"

2005-06-15 Thread John Hunter
> "Dieter" == Dieter Maurer <[EMAIL PROTECTED]> writes: Dieter> John Hunter wrote at 2005-6-7 09:52 -0500: >> ... Traceback (innermost last): ... URL: >> http://srp.uchicago.edu/2005/Sections/B1/Amrita%20Arora/ProjectSubmission_addForm/manage_main >> Physical Path:/srp/2005/

Re: [Zope] zope 2.7: Unauthorized "in this context"

2005-06-15 Thread John Hunter
> "John" == John Hunter <[EMAIL PROTECTED]> writes: John> I installed VerboseSecurity and now get a more helpful error John> message in the log (to refresh your memory, this is a pure John> ZClass based product which stopped working on an upgrade to John> 2.7). Here is the upd

Re: [Zope] zope 2.7: Unauthorized "in this context"

2005-06-15 Thread Dieter Maurer
John Hunter wrote at 2005-6-15 09:48 -0500: > ... >I installed VerboseSecurity and now get a more helpful error message >in the log (to refresh your memory, this is a pure ZClass based >product which stopped working on an upgrade to 2.7). Here is the >updated message > > Exception Type Unau

Re: [Zope] zope 2.7: Unauthorized "in this context"

2005-06-15 Thread John Hunter
> "Dieter" == Dieter Maurer <[EMAIL PROTECTED]> writes: Dieter> Note that this is only a hack! Dieter> All objects in the "FactoryDispatcher" should provide Dieter> their own security declarations. Then, they would not Dieter> depend on that of the container. Dieter>

Re: [Zope] zope 2.7: Unauthorized "in this context"

2005-06-16 Thread Dieter Maurer
John Hunter wrote at 2005-6-15 14:42 -0500: > ... >Dieter> Thus, the primary problem is that "mentor" magically >Dieter> does not have a "__roles__" attribute or (maybe) that it >Dieter> was never expected to be accessed via the >Dieter> "FactoryDispatcher". > >My classes are all