Re: [Zope3-Users] RE: principal folder subclassing

2006-04-12 Thread Stephan Richter
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
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users


[Zope3-Users] RE: principal folder subclassing

2006-04-11 Thread Pete Taylor
thought i'd answer my own question.  i apologize, one of those i'm
going to bed so of course my brain figures it out moments happen,
making me get up to write more code.

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.

sorry to send a question and a retraction on one another's heels.
--
All guilt is relative, loyalty counts, and never let your conscience
be your guide.
  - Lucas Buck, American Gothic
___
Zope3-users mailing list
Zope3-users@zope.org
http://mail.zope.org/mailman/listinfo/zope3-users