%template(ArchCompatFun) std::unary_function<zypp::Arch, bool>;
%include <zypp/Arch.h>
+
+%extend zypp::Arch
+{
+#ifdef SWIGPYTHON
+%rename ("__str__") string();
+#endif
+#ifdef SWIGRUBY
+%rename ("to_s") string();
+#endif
+
+ std::string string() const
+ {
+ std::ostringstream str;
+ str << *self;
+ return str.str();
+ }
+}
%extend zypp::PoolItem
{
- std::string asString() const
+#ifdef SWIGPYTHON
+%rename ("__str__") string();
+#endif
+#ifdef SWIGRUBY
+%rename ("to_s") string();
+#endif
+
+ std::string string() const
{
std::ostringstream str;
str << *self;