Пример #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)