[Zope-dev] Double usage of vocabulary in z3c.form seems to fail

2008-10-17 Thread Hermann Himmelbauer
Hi,
I currently have two schema.Choice() fields in my z3c.form - based form, that 
references the same vocabulary. 

runjobs = Choice(
title = u'Job',
vocabulary=('cronjobsVocabulary'),
required = False)
cronjobs = Choice(
title = u'Periodic Jobs',
vocabulary=('cronjobsVocabulary'),
required = False)

However, when trying to get data from this field in my ActionHandler, strange 
things happen: It seems that one choice field conflicts with the other, 
especially it seems, that only one field is used.

Any clue why?

How can I solve that - perhaps I should register the same vocabulary a second 
time under a different name?

Best Regards,
Hermann

-- 
[EMAIL PROTECTED]
GPG key ID: 299893C7 (on keyservers)
FP: 0124 2584 8809 EF2A DBF9  4902 64B4 D16B 2998 93C7
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Double usage of vocabulary in z3c.form seems to fail

2008-10-17 Thread Hermann Himmelbauer
Am Freitag 17 Oktober 2008 18:06:34 schrieb Hermann Himmelbauer:
 Hi,
 I currently have two schema.Choice() fields in my z3c.form - based form,
 that references the same vocabulary.

Aeh, sorry, forget about it - I had a mistake in my page template, which 
referenced the same widget for two times, hence the failure...

Best Regards,
Hermann

-- 
[EMAIL PROTECTED]
GPG key ID: 299893C7 (on keyservers)
FP: 0124 2584 8809 EF2A DBF9  4902 64B4 D16B 2998 93C7
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )