Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
tev
plugin_event
Commits
454f5105
Commit
454f5105
authored
Nov 29, 2016
by
LE GAC Renaud
Browse files
Remove the controller default/documentations and simplify default/index.
parent
1d8583d4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
115 deletions
+11
-115
controllers/default.py
controllers/default.py
+4
-15
modules/plugin_event/ui_viewport.py
modules/plugin_event/ui_viewport.py
+7
-7
views/default/documentations.html
views/default/documentations.html
+0
-93
No files found.
controllers/default.py
View file @
454f5105
""" Controllers """
def
documentations
():
"""Main controller to give access to the documentation.
"""
return
dict
()
# -*- coding: utf-8 -*-
""" Controllers
"""
@
auth
.
requires
(
True
,
requires_login
=
not
request
.
is_local
)
def
index
():
"""Main Controller to run the application launching the plugin dbui.
...
...
@@ -26,13 +21,7 @@ def index():
else
:
session
.
role
=
ADMIN
if
'debug'
in
request
.
vars
:
del
request
.
vars
[
'debug'
]
url
=
URL
(
'plugin_dbui'
,
'debug'
,
args
=
request
.
args
,
vars
=
request
.
vars
)
else
:
url
=
URL
(
'plugin_dbui'
,
'index'
,
args
=
request
.
args
,
vars
=
request
.
vars
)
url
=
URL
(
'plugin_dbui'
,
'index'
,
args
=
request
.
args
,
vars
=
request
.
vars
)
return
redirect
(
url
)
...
...
modules/plugin_event/ui_viewport.py
View file @
454f5105
...
...
@@ -90,27 +90,27 @@ class EvtUiViewport(object):
renderer
=
"html"
,
url
=
URL
(
"plugin_dbui"
,
"about"
))
about
Leaf
=
Panel
(
loader
=
loader
,
autoScroll
=
True
)
about
_panel
=
Panel
(
loader
=
loader
,
autoScroll
=
True
)
loader
=
dict
(
autoLoad
=
True
,
renderer
=
"html"
,
url
=
URL
(
"
default
"
,
"documentations"
))
url
=
URL
(
"
plugin_dbui
"
,
"documentations
_list
"
))
doc
Leaf
=
Panel
(
loader
=
loader
,
plugins
=
[
"pPanelLoaderException"
])
doc
_panel
=
Panel
(
loader
=
loader
,
plugins
=
[
"pPanelLoaderException"
])
loader
=
dict
(
autoLoad
=
True
,
renderer
=
"html"
,
scripts
=
True
,
url
=
URL
(
"plugin_dbui"
,
"versions"
))
version
Leaf
=
Panel
(
loader
=
loader
,
plugins
=
[
"pPanelLoaderException"
])
version
_panel
=
Panel
(
loader
=
loader
,
plugins
=
[
"pPanelLoaderException"
])
node
=
Node
(
T
(
"Help"
))
add_child
=
node
.
add_child
add_child
(
T
(
"about"
),
about
Leaf
)
add_child
(
T
(
"documentations"
),
doc
Leaf
)
add_child
(
T
(
"versions"
),
version
Leaf
)
add_child
(
T
(
"about"
),
about
_panel
)
add_child
(
T
(
"documentations"
),
doc
_panel
)
add_child
(
T
(
"versions"
),
version
_panel
)
node
.
sort_children
()
...
...
views/default/documentations.html
deleted
100644 → 0
View file @
1d8583d4
<h2
class=
"dbui-h2 dbui-small-cap"
>
{{=T("Documentations")}}
</h2>
<p
class=
"dbui-p dbui-small-cap"
style=
"margin-top: 5ex"
>
1. {{=T("For users")}}
</p>
<ul>
<li
class=
"dbui-p"
>
{{=T("User guides")}} (
<a
href=
"/{{=request.application}}/static/docs/user/index.html"
target=
"_blank"
>
html
</a>
,
<a
href=
"/{{=request.application}}/static/docs/pdf/track_events_user.pdf"
target=
"_blank"
>
pdf
</a>
)
</li>
<li
class=
"dbui-p"
>
<a
href=
"/{{=request.application}}/static/docs/database.png"
target=
"_blank"
>
{{=T("Database schema")}}
</a>
</li>
<li
class=
"dbui-p"
>
<a
href=
"/{{=request.application}}/static/CHANGELOG"
target=
"_blank"
>
Change Log
</a>
</li>
</ul>
<p
class=
"dbui-p dbui-small-cap"
style=
"margin-top: 5ex"
>
2. {{=T("For developpers")}}
</p>
<ul>
<li
class=
"dbui-p"
>
<a
href=
"/{{=request.application}}/static/docs/api/index.html"
target=
"_blank"
>
{{=request.application}} python API
</a>
</li>
<li
class=
"dbui-p"
>
<a
href=
"/{{=request.application}}/static/docs/jsduck/index.html"
target=
"_blank"
>
{{=request.application}} javascript API
</a>
</li>
</ul>
<ul>
<li
class=
"dbui-p"
>
<a
href=
"https://marprod.in2p3.fr/plugin_dbui_book"
target=
"_blank"
>
plugin_dbui reference manual
</a>
</li>
<li
class=
"dbui-p"
>
<a
href=
"/{{=request.application}}/static/plugin_dbui/docs/api/index.html"
target=
"_blank"
>
plugin_dbui python API
</a>
</li>
<li
class=
"dbui-p"
>
<a
href=
"/{{=request.application}}/static/plugin_dbui/docs/jsduck/index.html"
target=
"_blank"
>
plugin_dbui javascript API
</a>
</li>
</ul>
<ul>
<li
class=
"dbui-p"
>
<a
href=
"http://web2py.com/book"
target=
"_blank"
>
Web2py reference manual
</a>
</li>
<li
class=
"dbui-p"
>
<a
href=
"http://docs-origin.sencha.com/extjs/4.2.1/#!/api"
target=
"_blank"
>
Ext JS 4.2.1 javasript API
</a>
</li>
<li
class=
"dbui-p"
>
<a
href=
"http://pandas.pydata.org/pandas-docs/stable/"
target=
"_blank"
>
Pandas data analysis toolkit
</a>
</li>
</ul>
<ul>
<li
class=
"dbui-p"
>
<a
href=
"http://sphinx-doc.org/"
target=
"_blank"
>
Sphinx documentation generator
</a>
</li>
</ul>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment