Re: [Zope3-Users] Design question (object or interface for category implementation?)

2007-03-09 Thread Christophe Combelles
Garanin Michael a écrit : Christophe Combelles wrote: Christophe Combelles a écrit : Hi, I'm playing again with the notion of categories of objects. I have two main goals: - 1) I must let the user choose the category of an object added to the zodb. For this, I must be abl

Re[2]: [Zope3-Users] Design question (object or interface for category implementation?)

2007-03-09 Thread Adam Groszer
Hello, directlyProvides is surely persistent. "Make a site" works like this. zope.interface.directlyProvides( self, interfaces.ISite, zope.interface.directlyProvidedBy(self)) Friday, March 9, 2007, 3:30:46 PM, you wrote: GM> Christophe Combelles wrote: >> Christophe Comb

Re: [Zope3-Users] Design question (object or interface for category implementation?)

2007-03-09 Thread Garanin Michael
Christophe Combelles wrote: Christophe Combelles a écrit : Hi, I'm playing again with the notion of categories of objects. I have two main goals: - 1) I must let the user choose the category of an object added to the zodb. For this, I must be able to retrieve the list of c

Re: [Zope3-Users] Design question (object or interface for category implementation?)

2007-03-09 Thread Christophe Combelles
Christophe Combelles a écrit : Hi, I'm playing again with the notion of categories of objects. I have two main goals: - 1) I must let the user choose the category of an object added to the zodb. For this, I must be able to retrieve the list of categories and present them i

Re: [Zope3-Users] Design question (object or interface for category implementation?)

2007-03-07 Thread Garanin Michael
Christophe Combelles wrote: . I want to define objects that represent Companies. A company can be either a client, or a provider, or both, or in the future it could be of another type. When the user creates a company, it must choose "client", "provider", or both. The choice would assign a

Re: [Zope3-Users] Design question (object or interface for category implementation?)

2007-03-07 Thread Christophe Combelles
Bernd Dorn a écrit : >> But with 4), I guess I won't be able to assign two categories onto an >> object, >> An object can have only one ContentType > > this is not true an object can implement many interfaces so why shouldnt > it be possible to assign many subclasses of IInterface (or did i m iss

Re: [Zope3-Users] Design question (object or interface for category implementation?)

2007-03-06 Thread Bernd Dorn
On 07.03.2007, at 01:32, Christophe Combelles wrote: Bernd Dorn a écrit : On 06.03.2007, at 18:54, Christophe Combelles wrote: Hi, I'm playing again with the notion of categories of objects. I have two main goals: - 1) I must let the user choose the category of an object

Re: [Zope3-Users] Design question (object or interface for category implementation?)

2007-03-06 Thread Christophe Combelles
Bernd Dorn a écrit : On 06.03.2007, at 18:54, Christophe Combelles wrote: Hi, I'm playing again with the notion of categories of objects. I have two main goals: - 1) I must let the user choose the category of an object added to the zodb. For this, I must be able to retri

Re: [Zope3-Users] Design question (object or interface for category implementation?)

2007-03-06 Thread Bernd Dorn
On 06.03.2007, at 18:54, Christophe Combelles wrote: Hi, I'm playing again with the notion of categories of objects. I have two main goals: - 1) I must let the user choose the category of an object added to the zodb. For this, I must be able to retrieve the list of cat

[Zope3-Users] Design question (object or interface for category implementation?)

2007-03-06 Thread Christophe Combelles
Hi, I'm playing again with the notion of categories of objects. I have two main goals: - 1) I must let the user choose the category of an object added to the zodb. For this, I must be able to retrieve the list of categories and present them in a form field managed by a voca