Hi Klaus,
Sorry to interrupt you again, I encounter another issue about libzypp-bindings.
Here's our python code:
for item in self.Z.pool():
kind = "%s" % item.kind()
if kind == "package":
resolvable = item.resolvable()
provides = resolvable.provides()
for cap in provides: # Don't work, with error " 'Capabilities' object is not iterable"
print cap.c_str() # This should be the Capability name, right?
and I have checked the code and found it's not implemented.
Could you please help to implement the iterate function? And perl and ruby already have this feature.
Thanks in advance.
Qiang
-----Original Message-----
From: Klaus Kaempf [mailto:kkaempf@suse.de]
Sent: Tuesday, August 30, 2011 10:43 PM
To: Zhang, Qiang Z
Cc: zypp-devel@opensuse.org
Subject: Re: [zypp-devel] Re: libzypp-bindings: callbacks support Python
* Zhang, Qiang Z
We are trying to use call back feature in micng (next generation of mic2), so could you please feel free to help to implement install call back, which has not been implemented yet.
The install callbacks are implemented now. Please "git pull" from github.com:openSUSE/libzypp-bindings.git Klaus --- SUSE LINUX Products GmbH, GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg) Maxfeldstraße 5, 90409 Nürnberg, Germany