Exemplo n.º 1
0
 def update(self, **kwargs):
     """
     Update is not allowed for this resource
     """
     raise exceptions.MethodNotImplemented(
         method=self.update,
         details='The method update is not available for this resource')
Exemplo n.º 2
0
 def create(self, **kwargs):
     """Raise error since guid cannot be duplicated
     """
     raise exceptions.MethodNotImplemented(
         method=self.create,
         url=self.url,
         details='GUID cannot be duplicated, '
         'to create a new GUID use the relationship resource')