server/session.py
changeset 10355 60b8204fcca3
parent 10352 bab2befaac9b
child 10359 8e4ba1028f55
equal deleted inserted replaced
10354:635cfac73d28 10355:60b8204fcca3
   525             self.user = session.user
   525             self.user = session.user
   526             self.set_language(self.user.prefered_language())
   526             self.set_language(self.user.prefered_language())
   527         else:
   527         else:
   528             self._set_user(session.user)
   528             self._set_user(session.user)
   529 
   529 
   530     # session bw compat
       
   531 
       
   532     @property
       
   533     def _session(self):
       
   534         return self.session
       
   535 
       
   536     @_open_only
   530     @_open_only
   537     def source_defs(self):
   531     def source_defs(self):
   538         """Return the definition of sources used by the repository."""
   532         """Return the definition of sources used by the repository."""
   539         return self._session.repo.source_defs()
   533         return self.session.repo.source_defs()
   540 
   534 
   541     @_open_only
   535     @_open_only
   542     def get_schema(self):
   536     def get_schema(self):
   543         """Return the schema currently used by the repository."""
   537         """Return the schema currently used by the repository."""
   544         return self._session.repo.source_defs()
   538         return self.session.repo.source_defs()
   545 
   539 
   546     @_open_only
   540     @_open_only
   547     def get_option_value(self, option):
   541     def get_option_value(self, option):
   548         """Return the value for `option` in the configuration."""
   542         """Return the value for `option` in the configuration."""
   549         return self._session.repo.get_option_value(option)
   543         return self.session.repo.get_option_value(option)
   550 
   544 
   551     # transaction api
   545     # transaction api
   552 
   546 
   553     @_open_only
   547     @_open_only
   554     def undoable_transactions(self, ueid=None, req=None, **actionfilters):
   548     def undoable_transactions(self, ueid=None, req=None, **actionfilters):