Re: [Zope3-Users] Principal annotations

2006-03-20 Thread Stephan Richter
On Wednesday 08 March 2006 03:32, Shane Hathaway wrote: Chapter 27 of the Zope 3 book and the docstring for IPrincipal in Zope 3.2 both suggest Zope has the ability to provide a browser view of principal annotations. That would be a really great bit of functionality to have! Unfortunately,

Re: [Zope3-Users] Principal annotations

2006-03-11 Thread Gary Poster
On Mar 11, 2006, at 3:14 AM, Thierry FLORAC wrote: On Thu, 2006-03-09 at 01:14 -0700, 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

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...

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] Principal annotations

2006-03-08 Thread Shane Hathaway
Chapter 27 of the Zope 3 book and the docstring for IPrincipal in Zope 3.2 both suggest Zope has the ability to provide a browser view of principal annotations. That would be a really great bit of functionality to have! Unfortunately, AFAICT, the system doesn't work at all in Zope 3.2. The Zope

Re: [Zope3-Users] Principal annotations

2006-03-08 Thread Shane Hathaway
Shane Hathaway wrote: Was this an accident? Did it work at one time? Are there plans to make principal annotation views work again? And how can I edit user annotations in the meanwhile? No one knows, I guess. After spending many days on a seemingly simple problem, I've drawn a blank.

Re: [Zope3-Users] Principal annotations

2006-03-08 Thread Tom Dossis
Shane Hathaway wrote: Shane Hathaway wrote: Was this an accident? Did it work at one time? Are there plans to make principal annotation views work again? And how can I edit user annotations in the meanwhile? No one knows, I guess. After spending many days on a seemingly simple problem,

Re: [Zope3-Users] Principal annotations

2006-03-08 Thread Tom Dossis
Tom Dossis wrote: Shane Hathaway wrote: Shane Hathaway wrote: Was this an accident? Did it work at one time? Are there plans to make principal annotation views work again? And how can I edit user annotations in the meanwhile? No one knows, I guess. After spending many days on a