Ignore:
Timestamp:
03/28/13 11:44:36 (11 years ago)
Author:
jripsl
Message:
  • add static class initialisation function.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Monitoring/smon/smon.py

    r840 r841  
    1515 
    1616        @classmethod 
    17         def init(self): 
    18                 self.smon_home=os.environ['SMON_HOME'] 
    19                 self.log_dir="%s/log"%self.smon_home 
    20                 self.dbfile="%s/db/smon.db"%self.smon_home 
     17        def init(cls): 
     18                cls.smon_home=os.environ['SMON_HOME'] 
     19                cls.log_dir="%s/log"%cls.smon_home 
     20                cls.dbfile="%s/db/smon.db"%cls.smon_home 
     21 
     22        @classmethod 
     23        def init_singleton(cls): 
     24                pass 
     25 
     26        @classmethod 
     27        def free_singleton(cls): 
     28                pass 
Note: See TracChangeset for help on using the changeset viewer.