Project

General

Profile

Download (1.03 KB) Statistics
| Branch: | Tag: | Revision:

root / auquotidien / modules / root.py @ 280c79a9

1
import wcs
2
import wcs.root
3
from wcs import qommon
4

    
5
import wcs.forms.root
6
from wcs.forms.preview import PreviewDirectory
7

    
8
from .saml2 import Saml2Directory
9

    
10
OldRootDirectory = wcs.root.RootDirectory
11

    
12

    
13
class AlternateRootDirectory(OldRootDirectory):
14
    _q_exports = [
15
        '',
16
        'admin',
17
        'backoffice',
18
        'forms',
19
        'login',
20
        'logout',
21
        'saml',
22
        'register',
23
        'ident',
24
        'afterjobs',
25
        'myspace',
26
        'services',
27
        'categories',
28
        'user',
29
        ('tmp-upload', 'tmp_upload'),
30
        'json',
31
        '__version__',
32
        'roles',
33
        'api',
34
        'code',
35
        'fargo',
36
        'tryauth',
37
        'auth',
38
        'preview',
39
        ('reload-top', 'reload_top'),
40
        'static',
41
        ('i18n.js', 'i18n_js'),
42
        'actions',
43
    ]
44

    
45
    saml = Saml2Directory()
46
    code = wcs.forms.root.TrackingCodesDirectory()
47

    
48

    
49
from qommon.publisher import get_publisher_class
50

    
51
get_publisher_class().after_login_url = 'myspace/'
52
get_publisher_class().use_sms_feature = True
(6-6/8)