X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FEvents.py;fp=PLC%2FEvents.py;h=0d319cf22a780e87fc317e82362e79b60d635798;hb=a0e131a2893c75df786c94997370b01cb623dee0;hp=7eaaed77a6a442e8a62a3703bc88a01f2ef9d648;hpb=5a4c1b1278ffa01e630fde47f7c54888ed20a576;p=plcapi.git diff --git a/PLC/Events.py b/PLC/Events.py index 7eaaed7..0d319cf 100644 --- a/PLC/Events.py +++ b/PLC/Events.py @@ -4,7 +4,7 @@ # Tony Mack # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: Events.py,v 1.13 2007/04/11 20:29:10 tmack Exp $ +# $Id: Events.py 5574 2007-10-25 20:33:17Z thierry $ # from PLC.Faults import * @@ -73,6 +73,7 @@ class Events(Table): event_filter = Filter(Event.fields, {'event_id': event_filter}) elif isinstance(event_filter, dict): event_filter = Filter(Event.fields, event_filter) - sql += " AND (%s)" % event_filter.sql(api) - sql += " ORDER BY %s" % Event.primary_key + sql += " AND (%s) %s" % event_filter.sql(api) +# with new filtering, caller needs to set this explicitly +# sql += " ORDER BY %s" % Event.primary_key self.selectall(sql)