예제 #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)