[Zope3-Users] Re: How to assign a role or permission to users programatically?

2007-09-03 Thread Christian Klinger
Hi Yuan, iirc you can subscribe to the zope.app.authentication.interfaces.IAuthenticatedPrincipalCreated event. In your event you can do something like this: def authenticated_principal_created(event): principal = event.principal principal.groups.append('zope.Manager') hth Christian

Re: [Zope3-Users] most useful zope 3 libraries

2007-09-03 Thread Christophe Combelles
Carlos de la Guardia a écrit : Hi, the other day I commented on my blog [1] about the lack of information on the Zope3 wiki about popular/important libraries or modules (I wanted to say products but I hear that's passé). Since I brought this up, I though the least I could do was to create a p

[Zope3-Users] zope.formlib view action is calling two times ?

2007-09-03 Thread Baiju M
Hi, I have a view class like this: class EditTestPage(form.EditForm): form_fields = form.Fields(ITestPage) template = namedtemplate.NamedTemplate('page_edit') output = "" actions = form.Actions( form.Action('Save', success='handle_save_action'), form.Action('Preview',

[Zope3-Users] How to assign a role or permission to users programatically?

2007-09-03 Thread Yuan HOng
Dear list, I have written a custom authenticator plugin to authenticate users against a Postgres database. The question is, once a user is authenticated, what role or permission does she/he get? If I would like to give the permission 'site.MemberPermission' to all users when they log in. I don't

[Zope3-Users] most useful zope 3 libraries

2007-09-03 Thread Carlos de la Guardia
Hi, the other day I commented on my blog [1] about the lack of information on the Zope3 wiki about popular/important libraries or modules (I wanted to say products but I hear that's passé). Since I brought this up, I though the least I could do was to create a page about this myself, but I need he

Re: [Zope3-Users] Still trying am to build an EditForm

2007-09-03 Thread Andreas Reuleaux
I should add that in order to do something useful you should log in with mngr, password: mngr - or adjust app.zcml. -Andreas ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

[Zope3-Users] Confirming member generated objects?

2007-09-03 Thread Maken Seteva
Hi! In many applications members can add content but with the restriction that it needs to be confirmed by a manager before it becomes "active" and accessible to anybody else. I'm trying to accomplish this with an idea of mine, but I'm very open to other ideas of course :) Basically, lets sa

Re: [Zope3-Users] Basic question about catalogs

2007-09-03 Thread Tobias Kräntzer
Am Montag 03 September 2007 schrieb Frank Burkhardt: > Hi, > > On Sun, Sep 02, 2007 at 11:03:47PM +0200, Tobias Kräntzer wrote: > > Hello everybody, > > > > While figuring out catalogs in zope3 (3.3.1 on ubuntu 7.04), i ran into a > > problem. I think it is just a basic configuration thing, but

Re: [Zope3-Users] z3c.form / TextLine-Schema in List-Schema

2007-09-03 Thread Markus Leist
Hi some addition to my mail: this is an object-instance from http://trac.ict-ok.org/browser/trunk/org/ict_ok/components/net/interfaces.py : http://demo1.ict-ok.org/243cc85c808da990a939a4ae361c67a12/edit.html all works great this is an object-instance from http://trac.ict-ok.org/browser/trunk/o

Re: [Zope3-Users] z3c.form / TextLine-Schema in List-Schema

2007-09-03 Thread Markus Leist
Hello, i've tried out diffenrent parts of z3c.formdemo, but there is noch schema.List from schema.Textline example in the demo. when omitting the osList-attribute by: > 109 fields = field.Fields(IHost).omit(*HostDetails.omit_editfields) > [see > http://trac.ict-ok.org/browser/trunk/org/ic

Re: [Zope3-Users] Basic question about catalogs

2007-09-03 Thread Frank Burkhardt
Hi, On Sun, Sep 02, 2007 at 11:03:47PM +0200, Tobias Kräntzer wrote: > Hello everybody, > > While figuring out catalogs in zope3 (3.3.1 on ubuntu 7.04), i ran into a > problem. I think it is just a basic configuration thing, but I could not find > what I'm doing wrong. > > In "/++etc++site/def

Re: [Zope3-Users] z3c.form / TextLine-Schema in List-Schema

2007-09-03 Thread Hermann Himmelbauer
Am Sonntag, 2. September 2007 18:26 schrieb Markus Leist: > Hi list, > > z3c.form has a very generic, well approach - but at the moment it's to > complicated to me. > > I have an interface defined like: > > 100 osList = List ( > 101 title = _("operating systems"), > 103 va