]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Temporary commit
authorSalvatore Orlando <salvatore.orlando@eu.citrix.com>
Mon, 4 Jul 2011 17:50:45 +0000 (18:50 +0100)
committerSalvatore Orlando <salvatore.orlando@eu.citrix.com>
Mon, 4 Jul 2011 17:50:45 +0000 (18:50 +0100)
quantum/db/models.py

index 2a0845386a92d5c63205fcc25b8d4adff7af33e0..547ea106ce1fd3f8f0edeb7e70df23db819c1cc7 100644 (file)
@@ -20,6 +20,7 @@
 import uuid
 
 from sqlalchemy import Column, Integer, String, ForeignKey
+from sqlalchemy.exc import IntegrityError
 from sqlalchemy.ext.declarative import declarative_base
 from sqlalchemy.orm import relation
 
@@ -44,8 +45,7 @@ class QuantumBase(object):
 
     def delete(self, session=None):
         """Delete this object."""
-        self.deleted = True
-        self.deleted_at = utils.utcnow()
+        # TODO: this method does not do anything at the moment
         self.save(session=session)
 
     def __setitem__(self, key, value):