zope.schema/fromlib - Choice required=True keine wirkung.

Vladislav Vorobiev <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
Hallo,

bei einer Auswahl scheint der Parameter required keine eingabe zu erzwingen.

class MeinFormular(interface)
    ref1=Set(
            title=u"reference1",
            description=u"",
            required=True,
            value_type=Choice(
                    title=u"Staff member",
                    vocabulary='ref1ValueFactory',
                    )
            )

es scheint nichts auszuwirken ob jetzt required=True oder False bei
Choice feldern angegeben ist.
Ich möchte schon eine Auswahl erzwingen. Gibt es dafür eine Lösung?

So etwas

    cost  = Float(
        title=u"cost per day in €",
        description=u"Please anter the description.",
        required = True
        )

funktioniert wunderbar nur die Choice Felder nicht, Ist es ein bekannter Bug?

Gruß
Vladislav

-- 
Best Regards
Vlad Vorobiev


_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.