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

Add rules to Check & Validate.

parent 7486522e
......@@ -476,7 +476,9 @@
'The name of the speaker: P.-Y. Smith': "Nom de l'orateur : P.-Y. Smith",
'The name of the web2py controller running the search: articles, proceedings,...': 'Nom du controller web2py qui effectut la recherche : articles, proceedings,...',
'The name of the web2py controller to run a search: articles, proceedings,...': 'The name of the web2py controller to run a search: articles, proceedings,...',
'The project is undefined': "Le projet n'est pas défini",
'The status is ???': 'Le status est "???"',
'The team is undefined': "L'équipe n'est pas défini",
'The title of the conference. Use the latex syntax for symbol: $\\alpha$': 'Le titre de la conférence. Utilisez la syntax Latex pour les symbols: $\\alpha$',
'The title of the publication. Use the latex syntax for symbol: $\\alpha$': 'Le titre de la publication. Utilisez la syntax Latex pour les symbols: $\\alpha$',
'The URL of conference: http://....': "L'URL de la conférence : http://....",
......
......@@ -44,7 +44,17 @@ def check_publication(row):
if row.categories.code == UNDEF:
text = T("The category is undefined")
li.append(text)
# team
if row.publications.id_teams == UNDEF_ID:
text = T("The team is undefined")
li.append(text)
# project
if row.publications.id_projects == UNDEF_ID:
text = T("The project is undefined")
li.append(text)
# authors list
if 'et al' in row.publications.authors:
text = T("'et al.' in authors")
......
--------------------------------- CHANGELOG ----------------------------------
HEAD
- Add rules to Check & Validate. Teams and projects have to be defined.
0.8.6 (Jun 2014)
- Bugs fixed.
......
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