comparison MoinMoin/config/multiconfig.py @ 1929:aa6aa944246b

introduce per-user and per-session secrets that are used for the cookie signature to avoid cookies being stolen and re-used after logging out
author Johannes Berg <johannes AT sipsolutions DOT net>
date Tue, 03 Apr 2007 18:19:24 +0200
parents b06ef2a53efa
children 3b25f0f60ede
comparison
equal deleted inserted replaced
1928:57cbc30bfa31 1929:aa6aa944246b
553 data_dir = os.path.normpath(self.data_dir) 553 data_dir = os.path.normpath(self.data_dir)
554 self.data_dir = data_dir 554 self.data_dir = data_dir
555 for dirname in ('user', 'cache', 'plugin'): 555 for dirname in ('user', 'cache', 'plugin'):
556 name = dirname + '_dir' 556 name = dirname + '_dir'
557 if not getattr(self, name, None): 557 if not getattr(self, name, None):
558 setattr(self, name, os.path.join(data_dir, dirname)) 558 setattr(self, name, os.path.abspath(os.path.join(data_dir, dirname)))
559 559
560 # Try to decode certain names which allow unicode 560 # Try to decode certain names which allow unicode
561 self._decode() 561 self._decode()
562 562
563 # After that, pre-compile some regexes 563 # After that, pre-compile some regexes