Fix too long line in soc.cache.logic module.
Patch by: Pawel Solyga
Reviewed by: to-be-reviewed
--- a/app/soc/cache/logic.py Wed Apr 15 16:05:29 2009 +0000
+++ b/app/soc/cache/logic.py Wed Apr 15 19:13:16 2009 +0000
@@ -35,7 +35,10 @@
new_filter = {}
for filter_key, value in filter.iteritems():
- new_value = value.key().id_or_name() if isinstance(value, db.Model) else value
+ if isinstance(value, db.Model):
+ new_value = value.key().id_or_name()
+ else:
+ new_value = value
new_filter[filter_key] = new_value
return 'query_for_%(kind)s_%(filter)s_%(order)s' % {