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

2007-09-04 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] Re: How to assign a role or permission to users programatically?

2007-09-04 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

[Zope3-Users] Re: Confirming member generated objects?

2007-09-04 Thread Christian Klinger
Hi Maken, maybe the hurry.workflow fits in your usecase. See the documentation here http://codespeak.net/svn/z3/hurry.workflow/trunk/src/hurry/workflow/workflow.txt Christian Hi! In many applications members can add content but with the restriction that it needs to be confirmed by a

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

2007-09-04 Thread Markus Leist
Hi, here the following modules/components are used (from my site.zcml): --- [...] include package=zope.sendmail/ include package=zope.contentprovider / include package=zope.viewlet / include package=zope.app.apidoc/ include package=zope.app.onlinehelp/ include

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

2007-09-04 Thread Adam Groszer
Hello Christophe, Something like this was proposed by Stephan some 1.5 year ago. He did some quite detailed specs for it. Tuesday, September 4, 2007, 8:45:15 AM, you wrote: Carlos de la Guardia a écrit : Hi, the other day I commented on my blog [1] about the lack of information on the

Re: [Zope3-Users] Confirming member generated objects?

2007-09-04 Thread Stephan Richter
On Monday 03 September 2007 17:59, Maken Seteva wrote: Any thoughts on my idea/code or any other things related to   confirming member generated content are very much appreciated! Your use case is usually solved using a workflow framework. There are two workflow frameworks for Zope 3:

Re: [Zope3-Users] Database authentication service

2007-09-04 Thread Stephan Richter
On Friday 24 August 2007 11:33, Yuan HOng wrote: Is there a package providing relational database based authentication service for zope 3 already lying around somewhere or do I have write one? As far as I know there is no SQL-based authentication plugin. But since the authentication system is

Re: [Zope3-Users] z3c.form, style-attribute of TextWidget, TextAreaWidget

2007-09-04 Thread Stephan Richter
On Thursday 30 August 2007 08:50, Andreas Reuleaux wrote: The widgets do have a style-Attribute after all and this used to work in formlib. - However this has no effect when rendering: Forget formlib and the other older form stuff. ;-) z3c.form does not use that at all. Note that we usually

[Zope3-Users] Re: Confirming member generated objects?

2007-09-04 Thread Jeff Kowalczyk
Stephan Richter wrote: Your use case is usually solved using a workflow framework. There are two workflow frameworks for Zope 3: zope.wfmc/zope.app.wfmc and hurry.workflow (as Christian pointed out). WfMC is a very advanced workflow engine based on design by a workflow coalition.

Re: [Zope3-Users] z3c.form, checkboxes for Bool fields - thanks a lot, now: z3c.form egg from svn

2007-09-04 Thread Andreas Reuleaux
On Tue, Sep 04, 2007 at 06:35:29PM -0400, Stephan Richter wrote: On Saturday 01 September 2007 19:36, Andreas Reuleaux wrote: Is there a way to have only one checkbox generated? - like this:    [ ] Invitation That's what I want. I have implemented this widget now. It is available in

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

2007-09-04 Thread Stephan Richter
On Tuesday 04 September 2007 02:00, Baiju M wrote: When I click 'Preview' or 'Save' button, the actions are called two times, any idea ? You should use z3c.form. :-) (Sorry, I would love to help, but I am just not supporting formlib anymore. ;-) Regards, Stephan -- Stephan Richter CBU

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

2007-09-04 Thread Stephan Richter
On Sunday 02 September 2007 15:39, Florian Lindner wrote: I have also tried some variations of the above like not using z3c:pagelet but an normal page directive, registered it without an layer directive and so on. So please... whats wrong there? Do you have z3c.formui installed and the ZCML

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

2007-09-04 Thread Stephan Richter
On Monday 03 September 2007 22:43, Carlos de la Guardia wrote: Could some of you please mention your favorite or most useful libraries for Zope 3? I will research some of those mentioned and create a wiki page based on this information. Here are some that I think are cool and/or I use a lot: