Beispiel #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
Beispiel #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 = []
Beispiel #3
0
  def __init__(self, config={}):
    Configurable.__init__(self, config)
    defaults = {
        "host":"localhost",
        "port":6600,
        "password":None
        }
    self.__defaults__(defaults)

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

    self._connection = None
    self._channel = None
Beispiel #5
0
 def __init__(self, config={}):
   Configurable.__init__(self, config)
   defaults = {"host":"localhost", "port":23}
   self.__defaults__(defaults)
   self.client = telnetlib.Telnet()
Beispiel #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)
 def __init__(self, *args, **kwargs):
     Configurable.__init__(self, *args, **kwargs)
     self.__neededs__(("two",))
 def __init__(self, *args, **kwargs):
     Configurable.__init__(self, *args, **kwargs)
     self.__defaults__({"two": None, "three": 3})
 def __init__(self, *args, **kwargs):
     Configurable.__init__(self, *args, **kwargs)