[lxml-dev] Explicit type checking and zope.security
Christian Zagrodnick
cz at gocept.com
Mon Feb 18 14:04:45 CET 2008
Hi,
lxml does quite some explicit type checking. For instance:
object_path.addattr(root, value)
gives me an error if root is security proxied:
File "objectpath.pxi", line 74, in lxml.objectify.ObjectPath.addattr
TypeError: Argument 'root' has incorrect type (expected
lxml.etree._Element, got zope.security._proxy._Proxy)
Is this explicit checking really necessary? It's quite annoying to have
to unwrap everything (and eventually check manually for security)
before putting it into lxml's hands.
Any other ideas?
Regards,
--
Christian Zagrodnick
gocept gmbh & co. kg · forsterstrasse 29 · 06112 halle/saale
www.gocept.com · fon. +49 345 12298894 · fax. +49 345 12298891
More information about the lxml-dev
mailing list