Пример #1
0
 def __init__(self, raw, db=None):
     DictData.__init__(self, raw)
     self._db = db
     self.AudioProps = ParseEnum(self, 'audio_props', AUDIO_PROPS, False)
     self.VideoProps = ParseEnum(self, 'video_props', VIDEO_PROPS, False)
     self.SubtitleType = ParseEnum(self, 'subtitle_type', SUBTITLE_TYPES,
                                   False)
Пример #2
0
 def __init__(self, raw, db=None):
     DictData.__init__(self, raw)
     self._db = db
     self.AudioProps = ParseEnum(self, 'audio_props', AUDIO_PROPS, False)
     self.VideoProps = ParseEnum(self, 'video_props', VIDEO_PROPS, False)
     self.SubtitleType = ParseEnum(self, 'subtitle_type', SUBTITLE_TYPES, False)
Пример #3
0
 def __init__(self, raw):
     DictData.__init__(self, raw)
     self.freespace = self.totalspace - self.usedspace
Пример #4
0
 def __init__(self, raw):
     DictData.__init__(self, raw)
     self.totalspace = self.joinInt(self.ts_high, self.ts_low)
     self.usedspace = self.joinInt(self.us_high, self.us_low)
     self.freespace = self.totalspace - self.usedspace
Пример #5
0
 def _fillNone(self):
     DictData._fillNone(self)
Пример #6
0
 def _fillNone(self):
     DictData._fillNone(self)
     for subgroup in self._groups:
         self.__dict__[subgroup] = \
             getattr(self, subgroup.capitalize())(None)
Пример #7
0
 def _fillNone(self): DictData._fillNone(self)
 def _process(self, xml):
Пример #8
0
 def _fillNone(self):
     DictData._fillNone(self)
     for subgroup in self._groups:
         self.__dict__[subgroup] = \
             getattr(self, subgroup.capitalize())(None)
Пример #9
0
 def __init__(self, raw):
     DictData.__init__(self, raw)
     self.freespace = self.totalspace - self.usedspace
Пример #10
0
 def __init__(self, raw):
     DictData.__init__(self, raw)
     self.totalspace = self.joinInt(self.ts_high, self.ts_low)
     self.usedspace = self.joinInt(self.us_high, self.us_low)
     self.freespace = self.totalspace - self.usedspace
Пример #11
0
 def _fillNone(self):
     DictData._fillNone(self)
     for subgroup in self._groups:
         self.__dict__[subgroup] = \
             eval('self.%s(None)' % subgroup.capitalize())
Пример #12
0
 def _fillNone(self): DictData._fillNone(self)
 def _process(self, xml):
Пример #13
0
 def _fillNone(self):
     DictData._fillNone(self)
     for subgroup in self._groups:
         self.__dict__[subgroup] = \
             eval('self.%s(None)' % subgroup.capitalize())
Пример #14
0
 def __init__(self, raw, db=None):
     DictData.__init__(self, raw)
     self._db = db