예제 #1
0
 def __init__(self, config):
   Configurable.__init__(self, config)
   defaults = {"name":"", "id":None, "scheduling":None}
   self.__defaults__(defaults)
   #create a shortcut
   self.name = self.config.name
   self.id = self.config.id
예제 #2
0
  def __init__(self, config={}):
    Configurable.__init__(self, config)
    defaults = {"folder" : None, "filename" : None}
    self.__defaults__(defaults)
    self._loadedconfig = None
    self.__clazzs__ = {}

    self.agents = []
예제 #3
0
  def __init__(self, config={}):
    Configurable.__init__(self, config)
    defaults = {
        "host":"localhost",
        "port":6600,
        "password":None
        }
    self.__defaults__(defaults)

    self.client = mpd.MPDClient()
예제 #4
0
  def __init__(self, config={}):
    Configurable.__init__(self, config)
    defaults = {
        "host":"localhost",
        "port":5672,
        "user":"******",
        "password":"******"
        }
    self.__defaults__(defaults)

    self._connection = None
    self._channel = None
예제 #5
0
 def __init__(self, config={}):
   Configurable.__init__(self, config)
   defaults = {"host":"localhost", "port":23}
   self.__defaults__(defaults)
   self.client = telnetlib.Telnet()
예제 #6
0
 def __init__(self, config={}):
   Configurable.__init__(self, config)
   defaults={"host":"localhost", "port":8080, "user":"******", "password":"******"}
   self.__defaults__(defaults)
   self.client=XBMC(self.get_json_rpc(self.config.host), self.config.user, self.config.password)
예제 #7
0
 def __init__(self, *args, **kwargs):
     Configurable.__init__(self, *args, **kwargs)
     self.__neededs__(("two",))
예제 #8
0
 def __init__(self, *args, **kwargs):
     Configurable.__init__(self, *args, **kwargs)
     self.__defaults__({"two": None, "three": 3})
예제 #9
0
 def __init__(self, *args, **kwargs):
     Configurable.__init__(self, *args, **kwargs)