def db_update_object(self, obj, **kwargs):
    real_obj = self.db_objects[(obj.vtType, obj.db_id)]
    for (k, v) in kwargs.iteritems():
        if hasattr(real_obj, k):
            setattr(real_obj, k, v)
def db_update_object(self, obj, **kwargs):
    real_obj = self.db_objects[(obj.vtType, obj.db_id)]
    for (k, v) in kwargs.iteritems():
        if hasattr(real_obj, k):
            setattr(real_obj, k, v)