Esempio n. 1
0
 def pre_save(self, obj, data):
     try:
         point = PointSaleService.point_save(
             obj=obj, name=obj.name, address=obj.address,
             is_central=obj.is_central)
     except PointSaleService.PointSaleServiceException as exc:
         raise BaseCanoniseResource.CanonException(unicode(exc))
     return point