[Zope-dev] Bad idiom to access optional attributes

2004-06-07 Thread Dieter Maurer
I just analysed why AccessControl.Role.RoleManager.get_valid_userids raised an unexpected AttributeError. It uses the wrong idiom to access optional attribute: aclu = getattr(aq_base(item), '__allow_groups__', _notfound) This means, that aclu is only partially acquisition wrapped and does

[Zope-dev] Re: Zope-Dev Digest, Vol 11, Issue 7

2004-06-07 Thread Willie Martin
This is not about zope but the email itself. The date of the email shows up as 12/31/1969 in my netscape mail client [EMAIL PROTECTED] wrote: Send Zope-Dev mailing list submissions to [EMAIL PROTECTED] To subscribe or unsubscribe via the World Wide Web, visit

[Zope-dev] Re: Bad idiom to access optional attributes

2004-06-07 Thread Casey Duncan
On Mon, 7 Jun 2004 07:46:41 +0200 Dieter Maurer [EMAIL PROTECTED] wrote: [..] Meanwhile, the best way to access optional attributes seems to be if getattr(aq_base(obj), attrname, notFound) is not notFound: attr = getattr(obj, attrname) ... Ahhh, the miracle of

[Zope-dev] Re: Update Zope Site With Unix Python Scripts

2004-06-07 Thread sureshvv
Sure. Use Client.py. Adriana Monti [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I am looking for a way to run custom python scripts in Unix, scheduled through cron, that will update the ZODB of our Zope site. The requirement is that our site cannot be shut down to

Re: [Zope-dev] Re: Bad idiom to access optional attributes

2004-06-07 Thread Dieter Maurer
Casey Duncan wrote at 2004-6-7 09:16 -0400: On Mon, 7 Jun 2004 07:46:41 +0200 Dieter Maurer [EMAIL PROTECTED] wrote: [..] Meanwhile, the best way to access optional attributes seems to be if getattr(aq_base(obj), attrname, notFound) is not notFound: attr = getattr(obj,

[Zope-dev] Re: Product Testing

2004-06-07 Thread sureshvv
Go to the Control Panel and click on your broken Product. You will see a traceback. Marshall Powers [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm somewhat new to zope in general, and I've been having some trouble developing products. Im running 2.7 on WinXP as a windows