|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /proc/22697/root/usr/lib64/python2.4/site-packages/sabayon/ |
Upload File : |
mò
»fEOc @ s d k Z d k Z d k Z d k Z e i d ƒ d k Z d k Td k Z d k Z d k Z d „ Z
d f d „ ƒ YZ d a
d „ Z d e i f d „ ƒ YZ e i e ƒ d f d
„ ƒ YZ d e i f d „ ƒ YZ e i e ƒ d
e i f d „ ƒ YZ e i e ƒ d „ Z d S( Ns 2.0( t *c G s t i t i | | ƒ d S( N( t utilt debug_printt DEBUG_USERPROFILEt fmtt args( R R ( ( t9 /usr/lib64/python2.4/site-packages/sabayon/userprofile.pyt dprint s t ModuleLoaderc B s; t Z d Z d „ Z d „ Z d „ Z d „ Z d „ Z RS( s– Loads all python modules from a directory allows objects
to be constructed from said modules using specific constructors
for each object type.c C s | | _ g | _ | i ƒ d S( sg Construct a ModuleLoader and will load all available
python modules from @module_path.
N( t module_patht selft modulest _ModuleLoader__load_modules( R
R ( ( R t __init__% s c B so e d | ƒ d | } y | d UWn5 e i d | | f IJe i d e i ƒ d Sn X| i i | ƒ d S( s# Load a python module named @module.s Loading module: %ss from sources import %sNs% Failed to import module '%s' cmd="%s"t file(
R t modulet cmdt syst stderrt tracebackt print_excR
R t append( R
R R ( ( R t
__load_module- s
c C s™ t d | i ƒ t i i | i ƒ xo t i | i ƒ D][ } | d d j o q6 n | d d j o q6 n | d j o q6 n | i | d ƒ q6 Wd S( s1 Load all available modules from self.module_path.s Loading modules from %si t .iýÿÿÿs .pys __init__.pyN(
R R
R R t pathR t ost listdirR t _ModuleLoader__load_module( R
R ( ( R t __load_modules9 s
c B s“ e d | | ƒ d | | | | | f } y | d UWn3 d | | e i f GHe i d e i ƒ d Sn Xy
| } Wn e j
o d Sn X| S( s‡ Construct an object by invoking a function named @constructor,
with @arg as an argument, in the module called @module.
s2 Constructing object from loaded module using %s.%ssJ from sources import %s
if %s.__dict__.has_key ('%s'): ret = %s.%s (arg)Ns% Failed to invoke function '%s.%s': %sR ( R R t constructorR R t exc_typeR R R t Nonet rett NameError( R
R R t argR R ( ( R t __construct_objectF s
c C sQ g } xD | i D]9 } | i | | | ƒ } | d j o | i | ƒ q q W| S( så Construct and return a list of objects by invoking a function
named @constructor, with @arg as an argument, in each of the
python modules in self.module_path which contain a function
by that name.
N(
t objectsR
R R t _ModuleLoader__construct_objectR R"