[Zope3-dev] namespaces for my source

Steve Alexander steve@cat-box.net
Wed, 28 May 2003 11:54:29 +0300


Ulrich Schreiner wrote:
> hi,
> 
> it seems that most of the source for components on top of zope3 is in 
> "zopeproducts". is this the official place where *all* should appear? or 
> is this the name of products which are official supported by zope corp?

Use the package 'zopeproducts' if you are writing a product for Zope 3 
that you would like people to be able to install easily.

There will be some "magic" in the zopeproducts' package's __init__.py 
file that takes into account the contents of all the 'zopeproducts' 
packages on your PYTHONPATH.


> so is there (somtehing like a domain specific) convention where i should 
> place my code?

That's a good question.

Zope 3 products live in packages. These packages are just regular Python 
packages. So, where the "ease of installation" concerns don't apply, 
name your own zope 3 products just as you'd name your own Python products.


> what is the prefered way to avoid nameclashes?

Personally, I use a top-level package that is related to my company's name.

This is more of a concern if you expect your product to be widely used, 
for example, as Free software, or as successful commercial software.

--
Steve Alexander