[Zope3-dev] Re: SchemaUtility and base classes

Tres Seaver tseaver at palladion.com
Fri Jul 15 09:51:24 EDT 2005


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

Santi Camps wrote:
> Hi all,
> 
> I'm just playing with an SchemaUtility that extends another file system
> defined schema, and I think I've found a little bug.   Here's the case:
> 
> from zope.app.schema.schema import SchemaUtility
> from kmkey.interfaces.economics import IProduct
> p = SchemaUtility()
> p = SchemaUtility(bases=(IProduct,))
> p.getBases()
> []
> p.names(all=True)
> []
> 
> Applying the patch I attach then it works as expected:
> 
> p.getBases()
> [<InterfaceClass kmkey.interfaces.economics.IProduct>]
> p.names(all=True)
> ['selling_price', 'description', 'name']
> 
> 
> I'm certain, is this a bug, or I'm doing something wrong ?  If first
> case, I will add an entry to the bugs collector.

Looks like a bug to me.  Please include your testcase as a patch to the
doctest for SchemaUtility, as well, in the bug report.

Tres.
- --
===================================================================
Tres Seaver          +1 202-558-7113          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC179c+gerLs4ltQ4RApaTAKCx5AepDftuwUvnN+qbCzERChTgEACgw34R
hfTQXa3bUVlvgItiSAA1RjY=
=H0zb
-----END PGP SIGNATURE-----



More information about the Zope3-dev mailing list