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

2007-05-02 Thread Rupert Redington
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.fromIte

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

2007-04-27 Thread Hermann Himmelbauer
Am Donnerstag, 26. April 2007 18:50 schrieb Rupert Redington: > Hermann Himmelbauer wrote: > > Hi, > > As already mentioned before, I use interfaces that contain lists of other > > interfaces via the following syntax: > > > > emails = List(value_type=Object(schema=IEmail)) > > > > In my formlib-bas

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

2007-04-26 Thread Rupert Redington
Hermann Himmelbauer wrote: > Hi, > As already mentioned before, I use interfaces that contain lists of other > interfaces via the following syntax: > > emails = List(value_type=Object(schema=IEmail)) > > In my formlib-based class, I have use the following, so that the widgets are > displayed co

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

2007-04-23 Thread Hermann Himmelbauer
Hi, As already mentioned before, I use interfaces that contain lists of other interfaces via the following syntax: emails = List(value_type=Object(schema=IEmail)) In my formlib-based class, I have use the following, so that the widgets are displayed correctly: email_widget = CustomWidgetFactor