server/repository.py
changeset 8239 c6cdd060212e
parent 8236 cc70da744f43
parent 8238 087bb529035c
child 8268 c9babe49c1c1
equal deleted inserted replaced
8237:f854cf9b089e 8239:c6cdd060212e
   820 
   820 
   821     def get_shared_data(self, sessionid, key, default=None, pop=False, txdata=False):
   821     def get_shared_data(self, sessionid, key, default=None, pop=False, txdata=False):
   822         """return value associated to key in the session's data dictionary or
   822         """return value associated to key in the session's data dictionary or
   823         session's transaction's data if `txdata` is true.
   823         session's transaction's data if `txdata` is true.
   824 
   824 
   825         If pop is True, value will be removed from the dictionnary.
   825         If pop is True, value will be removed from the dictionary.
   826 
   826 
   827         If key isn't defined in the dictionnary, value specified by the
   827         If key isn't defined in the dictionary, value specified by the
   828         `default` argument will be returned.
   828         `default` argument will be returned.
   829         """
   829         """
   830         session = self._get_session(sessionid, setcnxset=False)
   830         session = self._get_session(sessionid, setcnxset=False)
   831         return session.get_shared_data(key, default, pop, txdata)
   831         return session.get_shared_data(key, default, pop, txdata)
   832 
   832