On Wednesday 13 August 2008, Hermann Himmelbauer wrote:
The problem is, that if the dictionary does not contain all fields, an
error is raised. The reason for this error lies in line 97 in
z3c.form.widget: The value is retrieved via the get() function (which does
a dict.get()) and thus fails.
Hi Herman
Betreff: Re: AW: [Zope3-Users] z3c.form: Data Manager -
getting value via dm.query() instead of dm.get()
[...]
But I would nevertheless suggest to implement some kind of
switch that decides if an error is raised or NOVALUE is
returned in case a value is missing
Hi Hermann
Betreff: Re: AW: AW: [Zope3-Users] z3c.form: Data Manager -
getting value via dm.query() instead of dm.get()
Hi Herman
Betreff: Re: AW: [Zope3-Users] z3c.form: Data Manager -
getting value
via dm.query() instead of dm.get()
[...]
But I would nevertheless
Hi Hermann
So, it may happen, that not all fields are filled out,
therefore key/value pairs may be missing. If that happens,
the widget routine throws an error.
If I manage to overcome this error (e.g. by replacing the
get() through
query() routine in z3c.form.widget), my form works.
I
Hi Hermann
Hi Hermann
Betreff: Re: AW: AW: AW: [Zope3-Users] z3c.form: Data Manager
- getting value via dm.query() instead of dm.get()
[...]
Such a search session object could look like:
class ISearchSession(ISession):
Message filter session.
searchText
Hi,
I'm developing a z3c.form based form, which should store it's form values
in the session. To accomplish that, the form needs to retrieve it's values
from the session.
My idea was to simply store the form data in the button handler method
into the session as a dictionary. z3c.form then offers
Hi Herman, Stephan
Betreff: [Zope3-Users] z3c.form: Data Manager - getting value
via dm.query() instead of dm.get()
Hi,
I'm developing a z3c.form based form, which should store it's
form values in the session. To accomplish that, the form
needs to retrieve it's values from the session
Hi Herman, Stephan
Betreff: [Zope3-Users] z3c.form: Data Manager - getting value
via dm.query() instead of dm.get()
Hi,
I'm developing a z3c.form based form, which should store it's
form values in the session. To accomplish that, the form
needs to retrieve it's values from the session
Hi Herman
Betreff: Re: AW: [Zope3-Users] z3c.form: Data Manager -
getting value via dm.query() instead of dm.get()
[...]
But I would nevertheless suggest to implement some kind of
switch that decides if an error is raised or NOVALUE is
returned in case a value is missing