* Michael Andres <ma@suse.de> [Oct 14. 2010 13:22]:
On Thursday 14 October 2010 09:22:03 Yi Yang wrote:
Traceback (most recent call last): File "list_resolvables.py", line 6, in <module> zypp.KeyRing.setDefaultAccept( zypp.KeyRing.ACCEPT_UNSIGNED_FILE | zypp.KeyRing.ACCEPT_VERIFICATION_FAILED ) TypeError: in method 'KeyRing_setDefaultAccept', argument 1 of type 'zypp::KeyRing::DefaultAccept'
That's a bug in the bindings, we try to fix this ASAP.
Here libzypps strict typing gets into the way. zypp.KeyRing.ACCEPT_UNSIGNED_FILE refers to the DefaultAcceptBits enum and appears as Integer in Python. However, zypp.KeyRing.setDefaultAccept() expects a 'DefaultAccept' type and swig cannot sufficiently decode zypp/KeyRing.h to provide an automatic type conversion. Klaus --- SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org