[Zope] re: Meta Type Registry

Steve Alexander steve@cat-box.net
Sat, 22 Jul 2000 23:30:31 +0100


Andrew Kenneth Milton wrote:
> 
> Is there a Product Builders meta-type registry somewhere?
> 
> I can see things getting messed up in the near future as the number of
> products proliferates and meta-types start to clash.

I just tried adding a new ZClass in a new Product in my Zope 2.2 final
installation.

The multiple-selection widgit for choosing the base-classes has all the
available meta-types prefixed with the name of their product, followed
by a colon.

For example, here's the list I get:

  AccessControl: User
  AccessControl: UserFolder
  OFS: DTMLDocument
  OFS: DTMLMethod
  OFS: Folder
  OFS: File
  OFS: Image
  ZCatalog: CatalogAware
  ZCatalog: ZCatalog
  ZPatterns: DataSkin
  ZPatterns: PlugInBase
  ZPatterns: PlugInContainer
  ZPatterns: Rack
  ZPatterns: Specialist
  ZClasses: ObjectManager

So, it looks to me like the problem of meta-types clashing is taken care
of, at least in principle.
I note that the management screens' "add" drop-down list doesn't have
the "product:" namespace qualification, and I guess that's where the
problems lie. I doubt this would be much of a problem to patch, and it
probably counts as a bug, if anyone is passing the Collector in the near
future.

Now, we might want to consider a product naming registry to address the
problem of product names that clash...

--
Steve Alexander
Software Engineer
Cat-Box limited
http://www.cat-box.net