Re: [Zope3-Users] Principal annotations

2006-03-09 Thread Tom Dossis
Shane Hathaway wrote: Alternatively, it may possible to setup an adapter for IInternalPrincipal to IPrincipal ? I tried that first, but it got messy. IPrincipal needs an id, but InternalPrincipal doesn't know its own id; only the folder that contains it knows. However, the folder has no

Re: [Zope3-Users] Principal annotations

2006-03-09 Thread Tom Dossis
Shane Hathaway wrote: Your idea of annotating InternalPrincipals rather than Principals seems to work, but I apparently did something wrong, because edited annotations don't persist! I can save edits, but when I reload the page, they're gone. I don't know why. A quick test, hope it helps...

[Zope3-Users] Losely or rather, less loosely coupled objects.

2006-03-09 Thread Max M
When doing sites in Zope 2 I often have the need to couple/contain two or more fixed objects. When an object needs to have some specific properites and logic, many developers choose to subclass an existing object and change that. Eg. a member folder needs to *allways* have a 'contact_info'

Re: [Zope3-Users] Losely or rather, less loosely coupled objects.

2006-03-09 Thread Tom Dossis
Max M wrote: When doing sites in Zope 2 I often have the need to couple/contain two or more fixed objects. When an object needs to have some specific properites and logic, many developers choose to subclass an existing object and change that. Eg. a member folder needs to *allways* have a

Re: [Zope3-Users] Principal annotations

2006-03-09 Thread Shane Hathaway
Tom Dossis wrote: Shane Hathaway wrote: Thanks for helping me over a hurdle. You'd think a Zope 2 veteran like me would have little trouble with Zope 3 Maybe that has something to do with it. We switched from zope2/cmf/plone to zope3 early on in the development of a new application.

[Zope3-Users] Problem running examples from Zope3 book Weiterhausen

2006-03-09 Thread Rijgersberg, T.J. (Tom)
Hi, I'm a newbie to Zope and taking my first steps into this wonderful world by going through the book 'Web Component Development with Zope 3' from Philipp von Weitershausen. Up to page 94 I have had little difficulties reproducing the examples. I'm using the downloaded example code as