~chris.foo/lolram/torwuf.git

« back to all changes in this revision

Viewing changes to torwuf/src/py3/torwuf/controllers/base.py

  • Committer: Christopher Foo
  • Date: 2012-12-25 03:06:44 UTC
  • Revision ID: git-v1:300beaf3050a2a3ca72ec2c9bdeecdeceb249a66
Allows running locally. Refreshes front face website content.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
        == self.application.testing_key:
33
33
            return 'test:localhost'
34
34
 
 
35
        if not hasattr(self.application, '_session_controller'):
 
36
            return
 
37
 
35
38
        with self.application.session(self, save=False) as s:
36
39
            if 'user_email' in s:
37
40
                return 'email:{}'.format(s['user_email'])