[Zope3-Users] "Wrong contained type" - why?

Rupert Redington rupert at neontribe.co.uk
Wed May 2 09:16:34 EDT 2007


For me it was a problem with my vocabulary which works in this form...

class ClipboardVocabFactory(object):
    implements(IVocabularyFactory)

    def __call__(self, context):

        terms = [(x.title, x) for x in \
Session().query(ArchiveObject).select()]
        voc = SimpleVocabulary.fromItems(terms)
        return voc

I clearly need to understand vocabulary construction better.

Did you ever figure out how to omit fields from a subwidget?

Rupert


More information about the Zope3-users mailing list