Commit aa64b91c authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Polish and remove obsolete code.

Polish and Remove obsolete code.
parent bff135dc
......@@ -8,7 +8,6 @@ import re
from invenio_tools import MONTHS
from plugin_dbui import get_id, get_where_query
from view_tools import compare_html
def change_publisher():
......@@ -40,23 +39,6 @@ def change_publisher():
return '???'
def compare():
"""Compare the publication fields for two ids and show only the difference.
The action is steered via the URL:
http://localhost:8000/track_publications/toolbox/compare?id1=xx&id2=yy
"""
if 'id1' not in request.vars or 'id2' not in request.vars:
return 'Specify id1 or id2 in the url !!!'
id1 = request.vars.id1
id2 = request.vars.id2
return compare_html(id1, id2)
def doublon():
"""Remove duplicate entries for a team, a year and a categories
......
......@@ -614,7 +614,7 @@
'Url': 'Url',
'url': 'url',
'Use (...)&(...) for AND, (...)|(...) for OR, and ~(...) for NOT to build more complex queries.': 'Use (...)&(...) for AND, (...)|(...) for OR, and ~(...) for NOT to build more complex queries.',
'User': 'User',
'User': 'Utilisateur',
'User %(id)s Logged-in': 'User %(id)s Logged-in',
'User %(id)s Logged-out': 'User %(id)s Logged-out',
'User %(id)s Password changed': 'User %(id)s Password changed',
......
......@@ -56,8 +56,6 @@ CONTROLLERS = ['articles',
'theses']
DIRS = ['ASC', 'DESC']
AXES = ['', 'categories', 'projects', 'teams', 'time']
AXES_2 = ['categories', 'projects', 'publishers', 'teams', 'time']
CAT_USUAL = [T('article'),
T('book'),
......
# -*- coding: utf-8 -*-
""" organisations
""" organisation
It defines the relation between teams and projects.
......
......@@ -16,6 +16,9 @@ if not db(db.collaborations).count():
if not db(db.countries).count():
db.countries.insert(id=undef_id, country=undef)
if not db(db.organisation).count():
db.organisation.insert(id=undef_id, id_teams=undef_id, id_projects=undef_id)
if not db(db.projects).count():
db.projects.insert(id=undef_id, project=undef, agencies=undef)
......
/*
* CSS Class definition for application reporting
*/
.my-h2
.my-li,
.my-ol,
.my-p,
.my-table,
.my-td,
.my-th,
.my-li,
.my-ol,
.my-p,
.my-table,
.my-td,
.my-th,
.my-tr,
.my-ul,
.my-ul,
.my-ul-none {font-family: Liberation Sherif, Sherif;
font-size: 11px;}
......@@ -18,6 +17,7 @@
* Body
*/
.my-h2 {font-family: Liberation Sans, Sans;
font-size: 11px;
margin-bottom: 2ex;
margin-left: 3%;
margin-top: 3ex;}
......@@ -32,10 +32,10 @@
/*
* List
*/
*/
.my-li {margin-bottom: 1ex;
margin-left: 9%;
margin-right: 9%;
margin-right: 9%;
text-align: justify;}
.my-ol {list-style-type: decimal;}
......@@ -45,8 +45,8 @@
/*
* Table
*/
.my-td,
.my-th,
.my-td,
.my-th,
.my-tr {outline-style: solid;
outline-width: 1px;
outline-color: LightGray;
......@@ -58,7 +58,6 @@
*/
.my-italic {font-style: italic;}
.my-left {text-align: left;}
.my-right {text-align: right;}
.my-right {text-align: right;}
.my-small-cap {font-variant: small-caps;}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment