[Zope3-Users] Computed default in zope schema

2007-10-12 Thread Piotr Chamera
at attribute access time. How to do it? Piotr Chamera ___ Zope3-users mailing list Zope3-users@zope.org http://mail.zope.org/mailman/listinfo/zope3-users

[Zope3-Users] Re: Vocabularies beyond SimpleVocabulary

2006-06-13 Thread Piotr Chamera
Philipp von Weitershausen wrote: Piotr Chamera wrote: I have removed proxies because I stored selected objects in attribute of another object with forms generated from schema. But I probably can remove proxy in set method of that attribute (property) or ... what else can I store as reference

[Zope3-Users] Vocabularies beyond SimpleVocabulary

2006-06-12 Thread Piotr Chamera
= removeAllProxies(oobj) list.append( SimpleTerm( obj, str(obj.__dict__[title_field]), obj.__dict__[title_field])) return SimpleVocabulary( list ) def AuthorsVocabulary(context): return getVocabulary(context, authors, name) -- Piotr Chamera

Re: [Zope3-Users] Re: Vocabularies beyond SimpleVocabulary

2006-06-12 Thread Piotr Chamera
Philipp von Weitershausen wrote: Piotr Chamera wrote: def getVocabulary(context, items_container, title_field): list = [] root=zapi.getRoot(context) for (oid, oobj) in root.get(books).get(items_container).items(): obj = removeAllProxies(oobj) Don't remove (security) proxies