[repo] restore python 2.6 compatibility
Broken in 12dfce15c8ea.
--- a/server/repository.py Tue Jan 28 18:24:29 2014 +0100
+++ b/server/repository.py Mon Feb 03 19:00:52 2014 +0100
@@ -598,11 +598,12 @@
This is a public method, not requiring a session id.
"""
- with self.internal_cnx() as cnx, cnx.ensure_cnx_set:
- # don't use cnx.execute, we don't want rset.req set
- return self.querier.execute(cnx, 'Any K,V WHERE P is CWProperty,'
- 'P pkey K, P value V, NOT P for_user U',
- build_descr=False)
+ with self.internal_cnx() as cnx:
+ with cnx.ensure_cnx_set:
+ # don't use cnx.execute, we don't want rset.req set
+ return self.querier.execute(cnx, 'Any K,V WHERE P is CWProperty,'
+ 'P pkey K, P value V, NOT P for_user U',
+ build_descr=False)
# XXX protect this method: anonymous should be allowed and registration
# plugged