def __init__(self, commands): Borg.__init__(self) self._commands = commands self._serializer_id_to_index = {} self._serializer_type_to_id = {} self._serializers = [] self._deserializer_id_to_index = {} self._deserializers = []
def __init__(self, writeResponseFn): Borg.__init__(self) self._writeResponseFn = writeResponseFn self._serializer_id_to_index = {} self._serializer_type_to_id = {} self._serializers = [] self._deserializer_id_to_index = {} self._deserializers = []
def __init__(self, a_file=None): Borg.__init__(self) if not hasattr(self, '_file'): try: if a_file is None: a_file = inspect.getframeinfo(inspect.currentframe())[0] self._file = os.path.join( os.path.split(a_file)[0], os.path.splitext(os.path.split(a_file)[1])[0] + '.json') self.__mixin_config(self._file) elif a_file is not None: # mixin config self.__mixin_config(a_file) except Exception: raise RuntimeError("Cannot load application configuration") elif a_file is not None: # mixin config self.__mixin_config(a_file)