seth vidal wrote:
On Tue, 2007-08-14 at 11:26 +0200, Tim Lauridsen wrote:
I have made a RPMBaseCallback class in rpmtrans.py to reduce duplicated code and make it easier to a lazy yum api user to create a
RPMCallback handler. :-)


Hi Tim,
 that looks good - go ahead and commit it.

thanks,
-sv


_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel
Committed.
I have some problems with the importing from yum.rpmtrans from a yum api program.
if is caused by the 'from i18n import _' line.
The i18n is not available from the yum module, only if running in yum-cli directory will make it work, because it contains a i18n.py.

[EMAIL PROTECTED] yumguicore]$ python
Python 2.5 (r25:51908, Apr 10 2007, 10:27:40)
[GCC 4.1.2 20070403 (Red Hat 4.1.2-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from yum.rpmtrans import RPMTransaction
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "/data/udv/git/yumguicore/yum/rpmtrans.py", line 25, in <module>
   from i18n import _
ImportError: No module named i18n
>>>


how do we solve this one ?

1) move the i18n.py into the yum module and fix imports ( from i18n import _ to from yum.i18n import _). 2) remove the 'from i18n import _' line from rpmtrans.py (it is not used yet).
3) Something else.

Tim
_______________________________________________
Yum-devel mailing list
[email protected]
https://lists.dulug.duke.edu/mailman/listinfo/yum-devel

Reply via email to