def delete(self):
        """Deletes the object."""
        # set 'loaded' first ... so if we have to bail, we know we tried.
        self.loaded = True
        if not hasattr(self.manager, "delete"):
            return
        self.manager.delete(self)
def delete ( self ) : self . loaded = True if not hasattr ( self . manager , "delete" ) : return self . manager . delete ( self )
Deletes the object.