Re: [Zope3-Users] Dynamic interfaces ?

2008-03-13 Thread Kevin Teague
The userschema package works in ways similar to what you are describing, and demonstrates how to instantiate new interfaces: http://agendaless.com/Members/tseaver/software/userschema/ ___ Zope3-users mailing list Zope3-users@zope.org

[Zope3-Users] Dynamic interfaces ?

2008-03-10 Thread Thierry Florac
Hi, I'm looking for a way to handle what I've called dynamic interfaces. My problem is quite simple : I have an application where an administrator can define content types ; for each content type, a set of common predefined attributes are used, but the administrator can define for each content

Re: [Zope3-Users] Dynamic interfaces ?

2008-03-10 Thread Gaƫl Pasgrimaud
Hi Jim, Thierry, 2008/3/10, Jim Washington [EMAIL PROTECTED]: (...) myiface = new.classobj(iface_name.encode('utf-8'),(Interface,),definitions) I think you can do this work with the InterfaceClass metaclass See zope.interface.interface.InterfaceClass Regards, -- Gael

Re: [Zope3-Users] Dynamic interfaces ?

2008-03-10 Thread David Pratt
Yes, this is interesting, thank you for sharing this. I had done some things with xml schemas as zope schemas a while back and had also seen other work in this area. Regards, David Jim Washington wrote: Thierry Florac wrote: Hi, I'm looking for a way to handle what I've called dynamic