-----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          [EMAIL PROTECTED]
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-----

_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to