Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Dev

Double usage of vocabulary in z3c.form seems to fail

 

 

Zope dev RSS feed   Index | Next | Previous | View Threaded


dusty at qwer

Oct 17, 2008, 9:06 AM

Post #1 of 2 (271 views)
Permalink
Double usage of vocabulary in z3c.form seems to fail

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
_______________________________________________
Zope-Dev maillist - Zope-Dev[at]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 )


dusty at qwer

Oct 17, 2008, 3:18 PM

Post #2 of 2 (253 views)
Permalink
Re: Double usage of vocabulary in z3c.form seems to fail [In reply to]

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

--
hermann[at]qwer.tk
GPG key ID: 299893C7 (on keyservers)
FP: 0124 2584 8809 EF2A DBF9 4902 64B4 D16B 2998 93C7
_______________________________________________
Zope-Dev maillist - Zope-Dev[at]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 )

Zope dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.