Author: croberts
Date: 2012-04-11 14:56:35 +0000 (Wed, 11 Apr 2012)
New Revision: 5291
Modified:
branches/play_plumage/rosemary/python/rosemary/model.py
Log:
Added get_sample_filters_by_signature to the base RosemaryClass. It just returns an empty
list and should probably be overridden by derived classes.
Modified: branches/play_plumage/rosemary/python/rosemary/model.py
===================================================================
--- branches/play_plumage/rosemary/python/rosemary/model.py 2012-04-11 14:17:47 UTC (rev
5290)
+++ branches/play_plumage/rosemary/python/rosemary/model.py 2012-04-11 14:56:35 UTC (rev
5291)
@@ -606,6 +606,10 @@
columns = self.sql_table._columns
self.sql_samples_insert.execute(cursor, obj.__dict__, columns=columns)
+
+ def get_sample_filters_by_signature(self, sig):
+ # by default, there are no sample_filters, if you need them, please override
this
+ return []
def delete_object(self, cursor, obj):
assert isinstance(obj, RosemaryObject)
@@ -817,7 +821,7 @@
if not values:
raise RosemaryNotFound()
self._set_object_attributes(obj, self.sql_table._columns, values)
-
+
class RosemaryAttribute(object):
def __init__(self, cls, name):
self.cls = cls
Show replies by date