annotate src/__init__.py @ 875:d9b98b8a1847

server: handling of dict and "file:" urls in url_redirections_dict: - file: urls can be specified, they can redirect to a directory or of file. In the case of directory, all the hierarchy with subdirectories will be available - a dict can be used instead of plain string url, to specify options - if a dict is used, either "url" or "path" must be specified. "url" has the same meaning as the plain string url, "path" is used to construct a file: url - for file: redirections, there is a "protected" option which can be specified in the dict (JSON boolean). If true (default) the directories listings will not be displayed.
author Goffi <goffi@goffi.org>
date Wed, 02 Mar 2016 17:14:02 +0100
parents 5cefc6ab302f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
861
5cefc6ab302f server: moved APP_VERSION to common.constants + avoid __init__ import in browser side, which was the source of a crash
Goffi <goffi@goffi.org>
parents: 856
diff changeset
1 try:
5cefc6ab302f server: moved APP_VERSION to common.constants + avoid __init__ import in browser side, which was the source of a crash
Goffi <goffi@goffi.org>
parents: 856
diff changeset
2 from common.constants import Const as C
5cefc6ab302f server: moved APP_VERSION to common.constants + avoid __init__ import in browser side, which was the source of a crash
Goffi <goffi@goffi.org>
parents: 856
diff changeset
3 except ImportError:
5cefc6ab302f server: moved APP_VERSION to common.constants + avoid __init__ import in browser side, which was the source of a crash
Goffi <goffi@goffi.org>
parents: 856
diff changeset
4 pass # import doesn't work at this stage with pyjamas
5cefc6ab302f server: moved APP_VERSION to common.constants + avoid __init__ import in browser side, which was the source of a crash
Goffi <goffi@goffi.org>
parents: 856
diff changeset
5 else:
5cefc6ab302f server: moved APP_VERSION to common.constants + avoid __init__ import in browser side, which was the source of a crash
Goffi <goffi@goffi.org>
parents: 856
diff changeset
6 __version__ = C.APP_VERSION