[Zope3-Users] problem Z3+cpsskins

2005-12-31 Thread Hector Miuler Malpica Gallegos
Hi friends, i have a problem actually use cpsskins of svn.z3lab.org and the zope3 of svn (svn.zope.org), whenever I want to create a subject shows the following error: AttributeError: 'NoneType' object has no attribute 'newIdentifier' after looking for, the error occurs in this file http://svn

Re: [Zope3-Users] Container Constraints

2005-12-31 Thread Jeff Shell
First - you can use ``from zope.app.container.constraints import contains``. It's a bit easier to write. Anyways, in Python you can't reference the class you're in because that name, 'ILinkContainer' does not exist **until the end of the class statement** (after all of the things indented within t

Re: [Zope3-Users] Specialized URL traversal.. Best way?

2005-12-31 Thread Jeff Shell
On 12/31/05, Marius Gedminas <[EMAIL PROTECTED]> wrote: > On Thu, Dec 29, 2005 at 11:22:28PM -0700, Jeff Shell wrote: > > Again, this is to have URLs like: > > > > myapp/@@tags/zope/viewlet > > > > And turn that into a catalog search for anyof {'zope', 'viewlet'} > > > > def publishTraverse(sel

Re: [Zope3-Users] Re: Get classes implementing Interface

2005-12-31 Thread Florian Lindner
Does anyone got this mail? I've not received a copy from the mailinglists neither it shows up in the archives... Am Freitag, 30. Dezember 2005 20:57 schrieb Jeff Shell: > On 12/30/05, Florian Lindner <[EMAIL PROTECTED]> wrote: > > Am Freitag, 30. Dezember 2005 17:45 schrieb Jim Fulton: > > > Phil

[Zope3-Users] Confused by ITraversable

2005-12-31 Thread Wade Leftwich
I guess I don't understand traversal at all. I am trying to come up with the simplest possible class to exercise the ITraversable interface. Here's what I have: ### from zope.interface import implements from zope.app.traversing.interfaces import ITraversable class TravTestFlag(Exception): ""

[Zope3-Users] Container Constraints

2005-12-31 Thread Marcus J. Ertl
Hi! I want to have container, witch should contain links and others containers of his own type! What I did is this in my interface-definition: class ILinkContainer(IContainer): """Basic folder, containing only links and other link folders.""" def __setitem__(name, object): """

Re: [Zope3-Users] Re: Get classes implementing Interface

2005-12-31 Thread Florian Lindner
Am Freitag, 30. Dezember 2005 20:57 schrieb Jeff Shell: > On 12/30/05, Florian Lindner <[EMAIL PROTECTED]> wrote: > > Am Freitag, 30. Dezember 2005 17:45 schrieb Jim Fulton: > > > Philipp von Weitershausen wrote: > > > > So, what you want is not a list of classes but a list of factories > > > > tha

Re: [Zope3-Users] Specialized URL traversal.. Best way?

2005-12-31 Thread Marius Gedminas
On Thu, Dec 29, 2005 at 11:22:28PM -0700, Jeff Shell wrote: > Again, this is to have URLs like: > > myapp/@@tags/zope/viewlet > > And turn that into a catalog search for anyof {'zope', 'viewlet'} > > def publishTraverse(self, request, name): > namestack = request.getTraversalStack()