[Zope3-Users] RE: principal folder subclassing
Pete Taylor
baldtrol at gmail.com
Wed Apr 12 03:33:17 EDT 2006
yessir, it was documented well... i was just up too late, and the
error was being thrown from a place i didn't expect... i had done my
principal info class a few days before, and hadn't used it in a way
that would cause that error until then. threw me for a loop, albeit
one of my own (flawed) design ;)
On 4/12/06, Stephan Richter <srichter at cosmos.phy.tufts.edu> wrote:
> On Tuesday 11 April 2006 04:07, Pete Taylor wrote:
> > if you create your own principal info like i did for these principals,
> > you have to make sure you don't set title or description to None. if
> > they're set to none, attempting to grant on them fails because it
> > attempts to "lower()" the NoneType.
>
> Thanks for the follow up. Note that at least title is a required field, so you
> must provide one. If you implement your own component, always study the
> required interfaces carefully! We tries hard to always provide good
> documentation in those interfaces on how to implement them.
>
> Regards,
> Stephan
> --
> Stephan Richter
> CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
> Web2k - Web Software Design, Development and Training
>
--
"All guilt is relative, loyalty counts, and never let your conscience
be your guide."
- Lucas Buck, American Gothic
More information about the Zope3-users
mailing list