##// END OF EJS Templates
pytest: Fix the user login function....
pytest: Fix the user login function. - Pyramid doesn't expose the session as pylons does it as `response.session` - Therefore we have to look it up in the environ.

File last commit:

r1:854a839a default
r41:6cf4cae4 default
Show More
svn_pre_commit_hook.py.tmpl
19 lines | 254 B | application/x-cheetah | CheetahLexer
#!_ENV_
import os
import sys
RC_HOOK_VER = '_TMPL_'
def main():
if os.environ.get('SSH_READ_ONLY') == '1':
sys.stderr.write('Only read-only access is allowed')
sys.exit(1)
sys.exit(0)
if __name__ == '__main__':
main()