Re: [Zope3-dev] RFC: The browser:page compromise

2006-04-25 Thread Philipp von Weitershausen
Jim Fulton wrote: The browser2:pageTemplate and browser2:pagesFromClass directives don't really gain anything, because they still generate classes. They don't have to generate classes. They could just do clever factory construction to avoid class creation. I don't think they can.

Re: [Zope3-dev] RFC: The browser:page compromise

2006-04-25 Thread Jim Fulton
Philipp von Weitershausen wrote: Jim Fulton wrote: The browser2:pageTemplate and browser2:pagesFromClass directives don't really gain anything, because they still generate classes. They don't have to generate classes. They could just do clever factory construction to avoid class creation. I

Re: [Zope3-dev] RFC: The browser:page compromise

2006-04-25 Thread Lennart Regebro
At https://svn.z3lab.org/z3lab/hello/trunk there is now a page implementation that is easy to use and doens't do class generation. In fact, there are two versions, one that sets the __call__ attribute during instantiation, and one that uses browserDefault() and publishTraverse(). There is also

[Zope3-dev] getInterface()'s context parameter

2006-04-25 Thread Jean-Marc Orliaguet
Hi, zope.component.getInterface takes a 'context' as a parameter, which is unused practically or set to None. def getInterface(context, id): iface = queryInterface(id, None) if iface is None: raise ComponentLookupError(id) return iface is it a relic from an old API? why not

Re: [Zope3-dev] RFC: The browser:page compromise

2006-04-25 Thread Bernd Dorn
On 25.04.2006, at 20:27, Lennart Regebro wrote: At https://svn.z3lab.org/z3lab/hello/trunk there is now a page this url seems to be broken implementation that is easy to use and doens't do class generation. In fact, there are two versions, one that sets the __call__ attribute during

[Zope3-dev] ClientStorage vs DemoStorage broken in Zope 3.2?

2006-04-25 Thread Christian Theune
Hi, I'm preparing a presentation and marketing campaign for Zope 3 for the next weeks linux fair in here in Germany. I'm demonstrating a couple of things and was trying to use DemoStorage with ClientStorage on a Zope 3.2 server today. However, it didn't work and crashed with this message and

[Zope3-dev] Re: ClientStorage vs DemoStorage broken in Zope 3.2?

2006-04-25 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christian Theune wrote: Hi, I'm preparing a presentation and marketing campaign for Zope 3 for the next weeks linux fair in here in Germany. I'm demonstrating a couple of things and was trying to use DemoStorage with ClientStorage on a Zope 3.2