Пример #1
0
 def __init__(self, data=None, session=None):
     super(ResourceItem, self).__init__(session=session)
     if data is not None:
         self._prop_dict = parse_resource_dict(self._prop_defs, data)
     else:
         self._prop_dict = {}
Пример #2
0
 def __init__(self, data=None, session=None):
     super(ResourceItem, self).__init__(session=session)
     if data is not None:
         self._prop_dict = parse_resource_dict(self._prop_defs, data)
     else:
         self._prop_dict = {}
Пример #3
0
 def _parse_data(self, data):
     return parse_resource_dict(self._prop_defs, data)
Пример #4
0
 def _parse_data(self, data):
     return parse_resource_dict(self._prop_defs, data)