[Zope3-Users] Re: view vs page confused

2007-03-29 Thread Philipp von Weitershausen
FB wrote: On Tue, Mar 27, 2007 at 06:03:54PM +0200, Dominique Lederer wrote: so if i create a class which inherits from BrowserView, and then register it via zcml as browser:page, it becomes adaptes to IBrowserRequest an turns to a BrowserPage (via the on-the-fly created class)? so inheriting fr

[Zope3-Users] The Zope3 Collector has been moved to launchpad.

2007-03-29 Thread Jim Fulton
New bugs can be filed at: https://bugs.launchpad.net/zope3/+filebug Users can view their personal bugs at: https://bugs.launchpad.net/~USER Using the menu on the left, they can pick between assigned, reported and subscribed bug reports (in future, the page will default to showing all

Re: [Zope3-Users] Re: Formlib - handleSubmit, custom validator on action

2007-03-29 Thread Darryl Cousins
Cheers all. On Thu, 2007-03-29 at 09:24 -0400, Fred Drake wrote: > On 3/29/07, Darryl Cousins <[EMAIL PROTECTED]> wrote: > > OK. Then what I'm missing is how to assign a value to that variable > > `data` because in my code > ... > > So I am always getting an empty dictionary back to my action meth

Re: [Zope3-Users] Re: Formlib - handleSubmit, custom validator on action

2007-03-29 Thread Fred Drake
On 3/29/07, Darryl Cousins <[EMAIL PROTECTED]> wrote: OK. Then what I'm missing is how to assign a value to that variable `data` because in my code ... So I am always getting an empty dictionary back to my action method. Don't set the `data` variable; add values to it: data["myfield"] = som

[Zope3-Users] Re: Formlib - handleSubmit, custom validator on action

2007-03-29 Thread Philipp von Weitershausen
On 29 Mar 2007, at 15:11 , Darryl Cousins wrote: On Thu, 2007-03-29 at 14:44 +0200, Philipp von Weitershausen wrote: Darryl Cousins wrote: On Thu, 2007-03-29 at 05:52 -0400, Fred Drake wrote: On 3/29/07, Darryl Cousins [EMAIL PROTECTED]> wrote: but the line previous says data = {} So my va

Re: [Zope3-Users] Re: Formlib - handleSubmit, custom validator on action

2007-03-29 Thread Maciej Wisniowski
> So I am always getting an empty dictionary back to my action method. > > Sorry for the noise. In the meantime I've just gone back to creating an > interface with and @interface.invariant which is working for me. I was > just keen to find out if validator could be used. > I used validation dir

[Zope3-Users] Re: Formlib - handleSubmit, custom validator on action

2007-03-29 Thread Darryl Cousins
Hi, On Thu, 2007-03-29 at 14:44 +0200, Philipp von Weitershausen wrote: > Darryl Cousins wrote: > > On Thu, 2007-03-29 at 05:52 -0400, Fred Drake wrote: > >> On 3/29/07, Darryl Cousins <[EMAIL PROTECTED]> wrote: > >>> but the line previous says > >>> > >>> data = {} > >>> > >>> So my validator

[Zope3-Users] Re: Formlib - handleSubmit, custom validator on action

2007-03-29 Thread Philipp von Weitershausen
Darryl Cousins wrote: On Thu, 2007-03-29 at 05:52 -0400, Fred Drake wrote: On 3/29/07, Darryl Cousins <[EMAIL PROTECTED]> wrote: but the line previous says data = {} So my validator always receives an empty dictionary to validate. The validator is responsible for populating `data` with the

Re: [Zope3-Users] Formlib - handleSubmit, custom validator on action

2007-03-29 Thread Darryl Cousins
Hi, On Thu, 2007-03-29 at 05:52 -0400, Fred Drake wrote: > On 3/29/07, Darryl Cousins <[EMAIL PROTECTED]> wrote: > > but the line previous says > > > > data = {} > > > > So my validator always receives an empty dictionary to validate. > > The validator is responsible for populating `data` with

Re: [Zope3-Users] Formlib - handleSubmit, custom validator on action

2007-03-29 Thread Fred Drake
On 3/29/07, Darryl Cousins <[EMAIL PROTECTED]> wrote: but the line previous says data = {} So my validator always receives an empty dictionary to validate. The validator is responsible for populating `data` with the valid values. That's definitely covered in the docs somewhere. -Fred -

[Zope3-Users] Re: Disabling the Zope 3 Collector today

2007-03-29 Thread Philipp von Weitershausen
Jim Fulton wrote: Assuming that I can figure out how to do so, I'm going to disable the Zope 3 collector today in preparation for switching to Launchpad. It seems like the import in Launchpad is done, yay! Thanks to everybody who contributed to the switch! -- http://worldcookery.com -- Prof