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

Hermann Himmelbauer dusty at qwer.tk
Fri Oct 17 12:06:34 EDT 2008


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

-- 
hermann at qwer.tk
GPG key ID: 299893C7 (on keyservers)
FP: 0124 2584 8809 EF2A DBF9  4902 64B4 D16B 2998 93C7


More information about the Zope-Dev mailing list