equal
deleted
inserted
replaced
596 def properties(self): |
596 def properties(self): |
597 """Return a result set containing system wide properties. |
597 """Return a result set containing system wide properties. |
598 |
598 |
599 This is a public method, not requiring a session id. |
599 This is a public method, not requiring a session id. |
600 """ |
600 """ |
601 with self.internal_session() as session: |
601 with self.internal_cnx() as cnx, cnx.ensure_cnx_set: |
602 # don't use session.execute, we don't want rset.req set |
602 # don't use cnx.execute, we don't want rset.req set |
603 return self.querier.execute(session, 'Any K,V WHERE P is CWProperty,' |
603 return self.querier.execute(cnx, 'Any K,V WHERE P is CWProperty,' |
604 'P pkey K, P value V, NOT P for_user U', |
604 'P pkey K, P value V, NOT P for_user U', |
605 build_descr=False) |
605 build_descr=False) |
606 |
606 |
607 # XXX protect this method: anonymous should be allowed and registration |
607 # XXX protect this method: anonymous should be allowed and registration |
608 # plugged |
608 # plugged |