45 |
45 |
|
46 |
46 |
import wcs.forms.root
|
47 |
47 |
from wcs.workflows import Workflow
|
|
48 |
from wcs.forms.preview import PreviewDirectory
|
48 |
49 |
|
49 |
50 |
from saml2 import Saml2Directory
|
50 |
51 |
|
... | ... | |
750 |
751 |
return OldIdentDirectory._q_traverse(self, path)
|
751 |
752 |
|
752 |
753 |
|
|
754 |
class AlternatePreviewDirectory(PreviewDirectory):
|
|
755 |
def _q_traverse(self, path):
|
|
756 |
get_response().filter['bigdiv'] = 'rub_service'
|
|
757 |
return super(AlternatePreviewDirectory, self)._q_traverse(path)
|
|
758 |
|
|
759 |
|
753 |
760 |
class AlternateRootDirectory(OldRootDirectory):
|
754 |
761 |
_q_exports = ['', 'admin', 'backoffice', 'forms', 'login', 'logout',
|
755 |
762 |
'token', 'saml', 'register', 'ident', 'afterjobs',
|
... | ... | |
759 |
766 |
'myspace', 'services', 'agenda', 'categories', 'user',
|
760 |
767 |
('tmp-upload', 'tmp_upload'), 'json', '__version__',
|
761 |
768 |
'themes', 'pages', 'payment', 'invoices', 'accesscode', 'roles',
|
762 |
|
'msp', 'api', 'code', 'fargo', 'tryauth', 'auth']
|
|
769 |
'msp', 'api', 'code', 'fargo', 'tryauth', 'auth', 'preview']
|
763 |
770 |
|
764 |
771 |
admin = admin.AdminRootDirectory()
|
765 |
772 |
announces_dir = AnnouncesDirectory()
|
... | ... | |
774 |
781 |
msp = msp_ui.MSPDirectory()
|
775 |
782 |
fargo = fargo_ui.FargoDirectory()
|
776 |
783 |
code = wcs.forms.root.TrackingCodesDirectory()
|
|
784 |
preview = AlternatePreviewDirectory()
|
777 |
785 |
|
778 |
786 |
def get_substitution_variables(self):
|
779 |
787 |
d = {}
|
780 |
|
-
|