[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, debian, updated. upstream/0.9.5.5-717-g0f98819
Sebastian Krzyszkowiak
seba.dos1 at gmail.com
Sat Aug 6 08:17:57 UTC 2011
The following commit has been merged in the debian branch:
commit 78a42cd9409f356cbc8334642d972001d257cd21
Author: Sebastian Krzyszkowiak <seba.dos1 at gmail.com>
Date: Thu Aug 20 14:07:18 2009 +0200
opimd: Dates: fix quering in Dates domain. (more love is still needed)
diff --git a/framework/subsystems/opimd/pimd_dates.py b/framework/subsystems/opimd/pimd_dates.py
index fa74c7b..fa034b3 100644
--- a/framework/subsystems/opimd/pimd_dates.py
+++ b/framework/subsystems/opimd/pimd_dates.py
@@ -78,13 +78,13 @@ class Date(GenericEntry):
try:
begin = query_obj["Begin"]
- query_obj.remove(query_obj["Begin"])
+ del query_obj["Begin"]
except KeyError:
begin = None
try:
end = query_obj["End"]
- query_obj.remove(query_obj["End"])
+ del query_obj["End"]
except KeyError:
end = None
@@ -92,7 +92,7 @@ class Date(GenericEntry):
return 0.0
if (begin != None and end != None):
- if begin > self._field_idx["End"] or end < self._field_idx["Begin"]:
+ if begin > self["End"] or end < self["Begin"]:
return 0.0
for field_name in query_obj.keys():
--
FSO frameworkd Debian packaging
More information about the pkg-fso-commits
mailing list