Hi
> Betreff: Re: [Zope3-Users] Cloning interfaces/interface fields - how?
[...]
> > > So yes, you need to change it on the widget level; here
> is what you
> > > have to do in your form:
> > >
> > > class MyForm(Form):
> > >
> >
Am Donnerstag, 21. Februar 2008 17:34 schrieb Marius Gedminas:
> On Wed, Feb 20, 2008 at 01:12:18PM -0500, Stephan Richter wrote:
> > On Wednesday 20 February 2008, Hermann Himmelbauer wrote:
> > > Yes, I also use z3c.form, but my problem is that the field has the
> > > "required" flag set to "True
On Wed, Feb 20, 2008 at 01:12:18PM -0500, Stephan Richter wrote:
> On Wednesday 20 February 2008, Hermann Himmelbauer wrote:
> > Yes, I also use z3c.form, but my problem is that the field has the
> > "required" flag set to "True", which is appropriate for an add/edit form
> > but may not be appropr
On Wednesday 20 February 2008, Hermann Himmelbauer wrote:
> Yes, I also use z3c.form, but my problem is that the field has the
> "required" flag set to "True", which is appropriate for an add/edit form
> but may not be appropriate for a search form.
>
> If I change the "required" flag on the field
On Wed, Feb 20, 2008 at 08:12:29AM +0100, Hermann Himmelbauer wrote:
> Am Dienstag, 19. Februar 2008 20:13 schrieb Marius Gedminas:
> > We don't modify fields, ever. We use the power of zope.formlib (or
> > z3c.form) to get dynamic forms.
>
> Yes, I also use z3c.form, but my problem is that the f
Am Dienstag, 19. Februar 2008 20:13 schrieb Marius Gedminas:
> On Tue, Feb 19, 2008 at 04:46:29PM +0100, Hermann Himmelbauer wrote:
> > class SearchFrom(z3c.form.EditForm):
> >fields = z3c.form.field.Fields(copy.deepcopy(IPerson).select('name'))
>
> Strike out the deepcopy and you've got the co
On Tue, Feb 19, 2008 at 04:46:29PM +0100, Hermann Himmelbauer wrote:
> I'm over and over confronted with a simple pattern, where I need to clone
> interface field. For instance, I have the content object, which has an
> interface, e.g.:
>
> class IPerson(Interface):
> name = TextLine()
> add
Hello Hermann,
Tuesday, February 19, 2008, 4:46:29 PM, you wrote:
HH> Hi,
HH> I'm over and over confronted with a simple pattern, where I need to clone
HH> interface field. For instance, I have the content object, which has an
HH> interface, e.g.:
HH> class IPersonSearch(Interface):
HH> name =
Hi,
I'm over and over confronted with a simple pattern, where I need to clone
interface field. For instance, I have the content object, which has an
interface, e.g.:
class IPerson(Interface):
name = TextLine()
address = TextLine()
Then, I have for instance a search form, which consists of f