[Zope-dev] z3c.form 2.0 release

Tres Seaver tseaver at palladion.com
Wed Dec 10 12:59:42 EST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Brian Sutherland wrote:
> On Wed, Dec 10, 2008 at 11:05:06AM +0100, Hermann Himmelbauer wrote:
>> Someone recently suggested to rename it to z3c.schema.iban, which sounds a 
>> good idea to me, however, in this case my package would use another package, 
>> namely z3c.schema, as namespace.
>>
>> So what's your suggestion in this case?
> 
> There's no problem as long as z3c.schema is truly empty, i.e. there are
> no other packages that put any files in it.
> 
> The problem with z3c.pt.compat is that z3c.pt is not empty (see
> http://svn.zope.org/z3c.pt/trunk/src/z3c/pt/). That's what causes the
> problems I've been seeing.

The issue comes not from having modules inside the namespace package
(which is fine:  the __path__ of namespacee packages is extended to
include all eggs which use it).  Rather, the problem is having a
non-empty __init__.py in a namespace package (specifically, one which
does anything else than declare that it is a namespace).  The problem
arises because only one of the __init__.py files will be imported (the
first one found).


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJQAOO+gerLs4ltQ4RAq7iAJ9u2qd+iBHh3NMMGtO/pdPuNbcHAgCgqQxQ
3Sixt5Nslc7Lzw2CKjJrkaA=
=DQvL
-----END PGP SIGNATURE-----



More information about the Zope-Dev mailing list