def get_relation_by_name(cls, relation_name):
     """
     Get the class name by file extension.
     """
     try:
         return rules.RELATIONS.get(relation_name)
     except KeyError:
         raise exceptions.NotSupportedException("No Relation class found for name %s" % relation_name)
 def truncate(self,size=0):
     raise exceptions.NotSupportedException()
 def dump(self,ConeObject,res,indent=True):
     raise exceptions.NotSupportedException()
 def dumps(self,ConeObject):
     raise exceptions.NotSupportedException()
 def load(self,res):
     raise exceptions.NotSupportedException()
 def loads(self,data):
     raise exceptions.NotSupportedException()
Пример #7
0
 def has_ref(self, refs):
     """
     Return True if the implementation uses the given ref as input value. Otherwise return False.
     """
     raise exceptions.NotSupportedException()