[Zope3-dev] Managing via Component Interfaces TTW
Leonardo Rochael Almeida
leo@hiper.com.br
17 Jan 2002 15:13:31 -0200
Hi,
I like very much what I read below. In several Zope projects I'm
involved I use folders as collection objects, much like tables in a
database, and I would very much like to be able to do like this in
PythonScripts
objectlist = SomeFolder.objectItems(interface=SomeProduct.SomeInterface)
or maybe even
objectlist = SomeFolder.objectItems(interface="SomeInterfaceName")
which would be much more functional than the selection thru meta-types
due to their inherent limitations.
Being able to ZCatalog that would be even cooler.
I think we should take the decoupling of interface from implementation
as far as we can inside Zope.
Cheers, Leo
On Thu, 2002-01-17 at 14:37, Shane Hathaway wrote:
> Gary Poster wrote:
>
> > I imagine there are others. Any ideas? A string, like the metatype, is
> > limiting in many regards, but its simplicity is very convenient for web
> > work.
>
>
> I've been thinking we'll probably use "label interfaces". Label
> interfaces are like marker interfaces with the distinction that they are
> identifiable by a simple string name.
>
> The exact details of how label interfaces are created and stored have
> not been decided, but I did a little proof of concept that let you
> create and use label interfaces through the web using a CVS version of
> Zope. The UI was a little too complex, but we should be able to improve
> upon it.
--
Ideas don't stay in some minds very long because they don't like
solitary confinement.