[Zope3-Users] Cannot view the instances after I refresh the product in ZMI

2007-02-26 Thread Alex Cheng
Hello, I have modified my product code and click refresh in ZMI to update the product. Unfortunately when I view its instance in zope. The error message is follows: *Error Type: TypeError* *Error Value: 'NoneType' object is not callable Could you help me? Thanks. *-- powered by python

Re: [Zope3-Users] Re: NotYet error when creating content during container creation

2007-02-26 Thread Tom Dossis
> > Yes, this is what I'd recommend. A handler for an ObjectAddedEvent will > always see the object already as part of the object hierarchy (which is, > after all, what ObjectAddedEvent is about). > I found myself doing this quite often. I use a decorator to make the code read nicer.. class My

Re: [Zope3-Users] External content with ZPT

2007-02-26 Thread Marius Gedminas
On Mon, Feb 26, 2007 at 01:08:17PM -0500, Sam Young wrote: > Is there a simple way to use ZPT to include external content? Assuming that your ZPT is a template used for a view, where your view class has a method called 'whatever' that reads/downloads/acquires by whatever means necessary the e

Re: [Zope3-Users] External content with ZPT

2007-02-26 Thread Maciej Wisniowski
> Is there a simple way to use ZPT to include external content? > Something that resembles Apache SSI--I was hoping there is something > along the lines of tal:include="addr" but it does not appear to be > quite this easy. The content in question is a script that I'd rather > not rewrite. The 'scr

Re: [Zope3-Users] Problem with macro

2007-02-26 Thread Florian Lindner
Am Montag, 26. Februar 2007 18:14 schrieb Marius Gedminas: > On Mon, Feb 26, 2007 at 02:40:13PM +0100, Florian Lindner wrote: > > Am Sonntag, 25. Februar 2007 15:03 schrieb Marius Gedminas: > > > On Sun, Feb 25, 2007 at 02:02:43PM +0100, Florian Lindner wrote: > > > > I have a simple problem. A tem

[Zope3-Users] External content with ZPT

2007-02-26 Thread Sam Young
Hello, Is there a simple way to use ZPT to include external content? Something that resembles Apache SSI--I was hoping there is something along the lines of tal:include="addr" but it does not appear to be quite this easy. The content in question is a script that I'd rather not rewrite. Search ha

Re: [Zope3-Users] Question about IOrderedContainer interface

2007-02-26 Thread Marius Gedminas
On Mon, Feb 26, 2007 at 05:28:12PM +0100, Thierry Florac wrote: > I have a little question about the "IOrderedContainer" interface. > > Actually, this interface is derived from "IContainer", and only contains > a single method, "updateOrder()" which is an updating method. > > When I create a subc

Re: [Zope3-Users] Problem with macro

2007-02-26 Thread Marius Gedminas
On Mon, Feb 26, 2007 at 02:40:13PM +0100, Florian Lindner wrote: > Am Sonntag, 25. Februar 2007 15:03 schrieb Marius Gedminas: > > On Sun, Feb 25, 2007 at 02:02:43PM +0100, Florian Lindner wrote: > > > I have a simple problem. A template: > > > > > > > > i18n:domain="xgm.de/Blog"> > > > ...

Re: [Zope3-Users] Question about IOrderedContainer interface

2007-02-26 Thread Martin Aspeli
Thierry FLORAC wrote: > > > Hi, > > I have a little question about the "IOrderedContainer" interface. > > Actually, this interface is derived from "IContainer", and only contains > a single method, "updateOrder()" which is an updating method. > That's pretty silly, it should probably be

[Zope3-Users] Question about IOrderedContainer interface

2007-02-26 Thread Thierry Florac
Hi, I have a little question about the "IOrderedContainer" interface. Actually, this interface is derived from "IContainer", and only contains a single method, "updateOrder()" which is an updating method. When I create a subclass of "OrderedContainer" for which I'd like only a limited set of

Re: [Zope3-Users] Problem with macro

2007-02-26 Thread Florian Lindner
Am Sonntag, 25. Februar 2007 15:03 schrieb Marius Gedminas: > On Sun, Feb 25, 2007 at 02:02:43PM +0100, Florian Lindner wrote: > > I have a simple problem. A template: > > > > > i18n:domain="xgm.de/Blog"> > > > > > > > > > > [...] > > > > > > > >