[Zope3-Users] Use of Viewlet from a ZMI Page Template

2007-04-12 Thread Kevin Gill (Newaddress)
The background I have created a simple skin. I have a viewlet in this skin. The viewlet populates a Sidebar. If I create a page template in the file system and configure it via ZCML, the viewlet works. I also want to create some pages through the ZMI and I am using page templates and my ski

[Zope3-Users] Using 'if object' evaluates false even if object exists

2007-04-12 Thread Giovannetti, Mark
Hi list, Hope everyone's having a splendid day/evening/whatever. I've encountered a strange error. I have two chunks of nearly identical code below. The only difference is the first "if" statement. One has: if context: the other has: if context is not None The first fails to be tru

Re: [Zope3-Users] Use of Viewlet from a ZMI Page Template

2007-04-12 Thread Stephan Richter
On Thursday 12 April 2007 14:10, Kevin Gill (Newaddress) wrote: > Can you use a skin containing viewlets in page templates created through > the ZMI (and if so is it wise)? No, because page tempaltes within ZMI are not views. Note that the Zope 3 community does not support ZMI development at all.

Re: [Zope3-Users] Using 'if object' evaluates false even if object exists

2007-04-12 Thread Benji York
Giovannetti, Mark wrote: Hope everyone's having a splendid day/evening/whatever. My whatever is going quite well, thanks! I've encountered a strange error. I have two chunks of nearly identical code below. The only difference is the first "if" statement. This is related to how Python eval

Re: [Zope3-Users] Using 'if object' evaluates false even if object exists

2007-04-12 Thread Aleksander Kowalczyk
On 4/12/07, Giovannetti, Mark <[EMAIL PROTECTED]> wrote: Hi list, Hope everyone's having a splendid day/evening/whatever. I've encountered a strange error. I have two chunks of nearly identical code below. The only difference is the first "if" statement. One has: if context: the other

RE: [Zope3-Users] Using 'if object' evaluates false even if objectexists

2007-04-12 Thread Giovannetti, Mark
Hi Aleksander, Thanks for your response. And thanks to Benji, too, for replying with the informative link. More below... > From zope3-users On Behalf Of Aleksander Kowalczyk > > On 4/12/07, Giovannetti, Mark <[EMAIL PROTECTED]> wrote: > > Hi list, > > Hope everyone's havin

[Zope3-Users] Can interfaces be mutated cleanly?

2007-04-12 Thread Christian Theune
Hi, I didn't find anything in the documentation or google on this: I want to define an interface like: class IMySchema(zope.interface.Interface): pass Later, I want to use ore.alchemist which currently is able to take a SQLAlchemy table description and turn it into a new interface/schema. I

Re: [Zope3-Users] Can interfaces be mutated cleanly?

2007-04-12 Thread Hermann Himmelbauer
Am Donnerstag, 12. April 2007 17:22 schrieb Christian Theune: > Hi, > > I didn't find anything in the documentation or google on this: > > I want to define an interface like: > > class IMySchema(zope.interface.Interface): >pass > > Later, I want to use ore.alchemist which currently is able to t

Re: [Zope3-Users] Can interfaces be mutated cleanly?

2007-04-12 Thread Stephan Richter
On Thursday 12 April 2007 11:22, Christian Theune wrote: > While looking into it, we found that interfaces do not offer a public > way to modify the attributes they have, and modifying the internal data > structures would be both evil and cumbersome. It is a violation of the interface contract tha