R [session] property for quick access to repo.schema
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Sat, 01 Aug 2009 16:18:14 +0200
changeset 2630 b3f997bc8c26
parent 2629 0d445c2171e4
child 2631 90dd26e61361
R [session] property for quick access to repo.schema
server/session.py
--- a/server/session.py	Sat Aug 01 16:17:47 2009 +0200
+++ b/server/session.py	Sat Aug 01 16:18:14 2009 +0200
@@ -74,6 +74,10 @@
         return '<%ssession %s (%s 0x%x)>' % (self.cnxtype, self.user.login,
                                              self.id, id(self))
 
+    @property
+    def schema(self):
+        return self.repo.schema
+
     def add_relation(self, fromeid, rtype, toeid):
         if self.is_super_session:
             self.repo.glob_add_relation(self, fromeid, rtype, toeid)