[Zope3-Users] How to persist an attribute of list type

2007-11-30 Thread Yuan HOng
Hi, It seems that I can not get list attribute of an persistent object changed. I have the following class, which has a list as one of its attributes: class Cart(Persistent): items = [] amount = 0 In the debug console, I find that only with direct attribute assignment can I change the

[Zope3-Users] Browsing zope3 interfaces

2007-11-30 Thread Roman Budzianowski
Please bear with me - I am still trying to get a handle on zope 3 in my spare time. What's the best way to discover zope functionality? I am using http:// apidoc.zope.org/++apidoc++/Code/zope/. However, when in Web Component... book I ran into 'canAccess' and 'canWrite' methods I couldn't

Re: [Zope3-Users] Browsing zope3 interfaces

2007-11-30 Thread Darryl Cousins
On Fri, 2007-11-30 at 14:00 -0800, Roman Budzianowski wrote: Please bear with me - I am still trying to get a handle on zope 3 in my spare time. What's the best way to discover zope functionality? I am using http://apidoc.zope.org/++apidoc++/Code/zope/. However, when in Web

Re: [Zope3-Users] How to persist an attribute of list type

2007-11-30 Thread Thierry Florac
Le samedi 01 décembre 2007 à 02:34 +0800, Yuan HOng a écrit : Hi, It seems that I can not get list attribute of an persistent object changed. I have the following class, which has a list as one of its attributes: class Cart(Persistent): items = [] amount = 0 In the debug

[Zope3-Users] how can I call standard publisher if my PluggableBrowserTraverser don't resolve my request ?

2007-11-30 Thread KLEIN Stéphane
I've declared browser page for my IMyTest type content browser:page for=projet1.interfaces.IMyTest name=hello class=.browser.HelloPage permission=zope.Public / I use PluggableBrowserTraverser like in http://thread.gmane.org/

[Zope3-Users] Re: How can I register a simple content provider (i.e.not viewlet)

2007-11-30 Thread Philipp von Weitershausen
Yuan HOng wrote: On Nov 29, 2007 1:07 PM, Roger Ineichen [EMAIL PROTECTED] wrote: You can use the adapter directive for this. class IHeaderProvider(zope.contentprovider.interfaces.IContentProvider): Header provider. class HeaderProvider(object): Header content provider.

Re: [Zope3-Users] How to persist an attribute of list type

2007-11-30 Thread Yuan HOng
On Dec 1, 2007 10:49 AM, Paul Winkler [EMAIL PROTECTED] wrote: On Sat, Dec 01, 2007 at 02:34:49AM +0800, Yuan HOng wrote: Hi, It seems that I can not get list attribute of an persistent object changed. I have the following class, which has a list as one of its attributes: class