comparison Sphinx/source/plugins/python/authorization-1.py @ 704:ba2403ebd4b7

moving python samples in separate files (3)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 11 Jun 2021 10:24:08 +0200
parents
children
comparison
equal deleted inserted replaced
703:a589668768d7 704:ba2403ebd4b7
1 import orthanc
2 import pprint
3
4 def Filter(uri, **request):
5 print('User trying to access URI: %s' % uri)
6 pprint.pprint(request)
7 return True # False to forbid access
8
9 orthanc.RegisterIncomingHttpRequestFilter(Filter)