示例#1
0
 def from_json(path_abs, identifier=None):
     """Instantiates a File object from specified *.json.
     
     @param path_abs: Absolute path to .json file.
     @returns: DDRFile
     """
     return from_json(DDRFile, path_abs, identifier)
示例#2
0
 def from_identifier(identifier):
     """Instantiates an Entity object, loads data from entity.json.
     
     @param identifier: Identifier
     @returns: Entity
     """
     return from_json(Entity, identifier.path_abs('json'), identifier)
示例#3
0
 def from_identifier(identifier):
     """Instantiates a Collection object using data from Identidier.
     
     @param identifier: Identifier
     @returns: Collection
     """
     return from_json(Collection, identifier.path_abs('json'), identifier)
示例#4
0
 def from_json(path_abs, identifier=None):
     """Instantiates an Entity object from specified entity.json.
     
     @param path_abs: Absolute path to .json file.
     @param identifier: [optional] Identifier
     @returns: Entity
     """
     return from_json(Entity, path_abs, identifier)
示例#5
0
 def from_json(path_abs, identifier=None):
     """Instantiates a Collection object from specified collection.json.
     
     @param path_abs: Absolute path to .json file.
     @param identifier: [optional] Identifier
     @returns: Collection
     """
     return from_json(Collection, path_abs, identifier)