[Zope3-Users] Re: Traversal Tricks (was Seeking Reference Guide on TAL/TALES/METAL)

2006-04-01 Thread Jeff Rush
Jeff Rush wrote: My specific question is how evaluation of the path expression "X/Z" is handled. It *seems* to be: X.__getitem__('Y')# X['Y'] whereas I'm trying to get: X.__getattr__('Y')# X.Y Under Zope 2, as I recall, it would try several algorithms; attribute, mapping,

[Zope3-Users] Re: Traversal Tricks (was Seeking Reference Guide on TAL/TALES/METAL)

2006-04-01 Thread Jeff Rush
Jeff Rush wrote: My specific question is how evaluation of the path expression "X/Z" is handled. It *seems* to be: X.__getitem__('Y')# X['Y'] whereas I'm trying to get: X.__getattr__('Y')# X.Y Under Zope 2, as I recall, it would try several algorithms; attribute, mapping,

[Zope3-Users] Multiple containers in one object - how to implement in Zope3?

2006-04-01 Thread Alek Kowalczyk
Hello, I have a simple (on the first sight) problem, which I don't know how to resolve in zope3'ish way. I have a single object, which can contain many objects of 2 another types (IType1, IType2). My intention is to have those objects contained in separate collections (because they are very diff

Re: [Zope3-Users] Multiple containers in one object - how to implement in Zope3?

2006-04-01 Thread Florian Lindner
Am Samstag, 1. April 2006 15:15 schrieb Alek Kowalczyk: > Hello, > > I have a simple (on the first sight) problem, which I don't know how to > resolve in zope3'ish way. > > I have a single object, which can contain many objects of 2 another > types (IType1, IType2). My intention is to have those ob

Re: [Zope3-Users] Multiple containers in one object - how to implement in Zope3?

2006-04-01 Thread Cliff Ford
Is this much different from a folder containing either ZPTPages or Folders (not to mention other things)? Have you thought of filtering the views that show lists of one or the other types? for name, object in folder.items(): if IType1.providedBy(object): ... Cliff Alek Kowalczyk w

Re: [Zope3-Users] Multiple containers in one object - how to implement in Zope3?

2006-04-01 Thread Alek Kowalczyk
Florian Lindner napisał(a): Am Samstag, 1. April 2006 15:15 schrieb Alek Kowalczyk: Hello, I have a simple (on the first sight) problem, which I don't know how to resolve in zope3'ish way. I have a single object, which can contain many objects of 2 another types (IType1, IType2).

Re: [Zope3-Users] Multiple containers in one object - how to implement in Zope3?

2006-04-01 Thread Jeff Rush
Alek Kowalczyk wrote: Florian Lindner napisał(a): Am Samstag, 1. April 2006 15:15 schrieb Alek Kowalczyk: I have a single object, which can contain many objects of 2 another types (IType1, IType2). My intention is to have those objects contained in separate collections (because they are very

[Zope3-Users] ILoginPassword and Unauthorized Exception

2006-04-01 Thread David Johnson
I have created and am using a custom ILoginPassword (an updated version of what’s in Phillip’s book - cookieauth), and Zope does not seem to raise the Unauthorized exception for unauthorized users.   In otherwords, if a user who is not authenticated tries to access a page they are not aut