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
dc5fa65b
Commit
dc5fa65b
authored
Mar 21, 2015
by
LE GAC Renaud
Browse files
Revert "Migrate to plugin_dbui 0.6.1.0 (lazy_tables, about, documentations,"
This reverts commit
aeb72ea0
.
parent
289e5ce3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
13 deletions
+38
-13
controllers/default.py
controllers/default.py
+31
-0
languages/fr-fr.py
languages/fr-fr.py
+1
-2
models/access.py
models/access.py
+2
-2
models/widgets_viewport.py
models/widgets_viewport.py
+3
-3
static/ABOUT.html
static/ABOUT.html
+1
-6
No files found.
controllers/default.py
View file @
dc5fa65b
""" Controllers """
import
os
def
about
():
fn
=
os
.
path
.
join
(
"applications"
,
request
.
application
,
"static"
,
"ABOUT.html"
)
return
open
(
fn
,
'rb'
).
read
()
def
documentations
():
di
=
{}
di
[
"epydoc_dbui"
]
=
URL
(
'static'
,
'plugin_dbui/docs/epydoc/index.html'
)
di
[
"epydoc_application"
]
=
URL
(
'static'
,
'docs/epydoc/index.html'
)
di
[
"js_mathjax"
]
=
URL
(
'static'
,
'plugin_mathjax/docs/html/index.html'
)
di
[
"jsduck_dbui"
]
=
URL
(
'static'
,
'plugin_dbui/docs/jsduck/index.html'
)
di
[
"png_db"
]
=
URL
(
'static'
,
'docs/database.png'
)
return
di
@
auth
.
requires_login
()
def
index
():
"""Main Controller to run the application launching the plugin dbui.
...
...
@@ -36,3 +59,11 @@ def user():
to decorate functions that need access control
"""
return
dict
(
form
=
auth
())
def
versions
():
""" expose http://.../default/versions and show software versions.
"""
import
plugin_dbui
return
plugin_dbui
.
get_versions
()
languages/fr-fr.py
View file @
dc5fa65b
...
...
@@ -112,7 +112,6 @@
'History'
:
'Historique'
,
'Id'
:
'Id'
,
'Initials'
:
'Initiales'
,
'install'
:
'installé'
,
'Invalid email'
:
'Invalid email'
,
'Invalid login'
:
'Invalid login'
,
'Is Active'
:
'Is Active'
,
...
...
@@ -176,7 +175,7 @@
'Phd Date'
:
'Phd Date'
,
'Phd defense date'
:
'Date de la soutenance de la thèse'
,
'please input your password again'
:
'please input your password again'
,
'plugin not install'
:
'
greffon pas
install
é
'
,
'plugin not install'
:
'
plugin not
install'
,
'Profile'
:
'Profile'
,
'Project'
:
'Projet'
,
'project leader,...'
:
'project leader,...'
,
...
...
models/access.py
View file @
dc5fa65b
...
...
@@ -18,7 +18,7 @@ ID_USER, USER, DEF_USER = 2, 'user', 'project leader,...'
#-------------------------------------------------------------------------------
# connection to the database
try
:
db
=
DAL
(
DB_MYSQL
,
lazy_tables
=
True
,
migrate_enabled
=
MIGRATE
,
pool_size
=
10
)
db
=
DAL
(
DB_MYSQL
,
migrate_enabled
=
MIGRATE
,
pool_size
=
10
)
except
:
raise
HTTP
(
500
,
T
(
"Can't access the MySQL database !!!"
))
...
...
@@ -27,7 +27,7 @@ except:
# SQLITE database (test)
#
#-------------------------------------------------------------------------------
# db = DAL('sqlite://storage.sqlite',
lazy_tables=True,
migrate_enabled=MIGRATE)
# db = DAL('sqlite://storage.sqlite', migrate_enabled=MIGRATE)
#-------------------------------------------------------------------------------
#
...
...
models/widgets_viewport.py
View file @
dc5fa65b
...
...
@@ -66,9 +66,9 @@ dataPeopleNode.add_child(T('history'), to_grid('history'))
# HELP NODE
#
#-------------------------------------------------------------------------------
aboutLeaf
=
Panel
(
autoLoad
=
URL
(
'
plugin_dbui
'
,
'about'
),
autoScroll
=
True
)
documentationsLeaf
=
Panel
(
autoLoad
=
URL
(
'
plugin_dbui
'
,
'documentations'
),
autoScroll
=
True
)
versionLeaf
=
Panel
(
autoLoad
=
URL
(
'
plugin_dbui
'
,
'versions'
))
aboutLeaf
=
Panel
(
autoLoad
=
URL
(
'
default
'
,
'about'
),
autoScroll
=
True
)
documentationsLeaf
=
Panel
(
autoLoad
=
URL
(
'
default
'
,
'documentations'
),
autoScroll
=
True
)
versionLeaf
=
Panel
(
autoLoad
=
URL
(
'
default
'
,
'versions'
))
helpNode
=
Node
(
T
(
'Help'
))
helpNode
.
add_child
(
T
(
'about'
),
aboutLeaf
)
...
...
static/ABOUT.html
View file @
dc5fa65b
...
...
@@ -41,12 +41,6 @@
<p
class=
"my-p"
>
Ce logiciel s'appuit sur les logiciels open source suivant :
</p>
<ul
class=
"my-ul"
>
<li
class=
"my-li"
>
<a
href=
"http://ace.c9.io/"
target=
"_blank"
>
Ace
</a>
</li>
<li
class=
"my-li"
>
<a
href=
"http://www.sencha.com/"
target=
"_blank"
>
Ext JS
...
...
@@ -79,6 +73,7 @@
<h3
class=
"my-h3 my-small-cap"
>
Licence
</h3>
<p
class=
"my-p"
>
Ce logiciel est distribué sous la licence opence source
<a
href=
"http://www.cecill.info/"
target=
"_blank"
>
CeCILL
</a>
.
</p>
<br>
<p
class=
"my-p"
>
©
2010 - 2014 Renaud Le Gac
</p>
</body>
...
...
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