During followings days I prepared patch which move python modules from package spacewalk-backend from directory /usr/share/rhn to python site-packages (e.g. /usr/lib/python2.4/site-packages). I also moved them into spacewalk dir, to prevent pollution of standard python libs with our common namespace...

I tested it a lot. It should have no visible impact (and no bugs). If you find some bug, feel free to hit me with long stick.

Consequence for you is that instead of:
 from satellite_tools import satsync
you have to use:
 from spacewalk.satellite_tools import satsync

or instead of:
 from common import rhnConfig
you have to use:
 from spacewalk.common import rhnConfig
etc.

Only one exception is apache handlers for /XP, /APP ..., which I kept in /usr/share/rhn as this seem right to me, because they are not modules you can import in ordinary script.

This change is only about spacewalk-backend. Although I had to change imports in packages which depends on modules from spacewalk-backend.

Other packages still have their modules in /usr/share/rhn and I will focus my attention to them in near future.

--
Miroslav Suchy
Red Hat Satellite Engineering

_______________________________________________
Spacewalk-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to