[Zope3-Users] Group membership based on authenticator

2006-01-31 Thread Marko Mikulicic
Hello, I've created a pluggable authentication utility instance with a principal folder and a group folder. I've managed to manually map users created in the principal folder to a single group and then grant roles to this group Is it possible to assign membership to the group based only on

[Zope3-Users] Re: generations and utilities

2006-01-31 Thread Paolo Invernizzi
Gary Poster wrote: Heh, ok, I'll try just one more one-second diagnosis then. ;-) :-P Are you setting the site? old_site = zope.app.component.hooks.getSite() zope.app.component.hooks.setSite(object) try: # ...add the utilities and indexes in here... finally: zope.app.component.hooks

Re: [Zope3-Users] Re: generations and utilities

2006-01-31 Thread Gary Poster
On Jan 31, 2006, at 12:23 PM, Paolo Invernizzi wrote: Gary Poster wrote: Your recipe looks fine. If I were in your shoes my next lazy attempt would be to try committing the transaction with the intids and catalog before adding the indexes. Ok, I added the transaction... still bangs, the

[Zope3-Users] Re: generations and utilities

2006-01-31 Thread Paolo Invernizzi
Gary Poster wrote: Your recipe looks fine. If I were in your shoes my next lazy attempt would be to try committing the transaction with the intids and catalog before adding the indexes. Ok, I added the transaction... still bangs, the full traceback is at the end... Note that if I don't ad

Re: [Zope3-Users] Re: generations and utilities

2006-01-31 Thread Gary Poster
On Jan 31, 2006, at 11:48 AM, Paolo Invernizzi wrote: Do you mean if there's a zope.app.keyreference-configure.zcml in the instance/etc? Yes, it's a standard zope 3.2.0 created instance... Ah well, sorry. Your recipe looks fine. If I were in your shoes my next lazy attempt would be to

[Zope3-Users] Re: generations and utilities

2006-01-31 Thread Paolo Invernizzi
Do you mean if there's a zope.app.keyreference-configure.zcml in the instance/etc? Yes, it's a standard zope 3.2.0 created instance... --- Paolo Gary Poster wrote: On Jan 31, 2006, at 11:16 AM, Paolo Invernizzi wrote: Hello, I've developed a content object for zope and I'm using the insta

Re: [Zope3-Users] generations and utilities

2006-01-31 Thread Gary Poster
On Jan 31, 2006, at 11:16 AM, Paolo Invernizzi wrote: Hello, I've developed a content object for zope and I'm using the install.py script in a generation package to install some prebuild content instances in a folder, and everything works well. I'm now trying to add a Catalog plus IntIds

[Zope3-Users] generations and utilities

2006-01-31 Thread Paolo Invernizzi
Hello, I've developed a content object for zope and I'm using the install.py script in a generation package to install some prebuild content instances in a folder, and everything works well. I'm now trying to add a Catalog plus IntIds to do some search... but I'm doing something wrong...