Skip to content
Snippets Groups Projects
Commit ffc976e8 authored by John Swinbank's avatar John Swinbank
Browse files

Updated PaperCheck.py

parent ecf37f39
No related branches found
No related tags found
No related merge requests found
......@@ -473,7 +473,7 @@ def CheckPaperName(Paper,Problems) :
NumChars = len(Number)
if (Letter == 'B' or Letter == 'F' or Letter == 'D' or Letter == 'T') :
if not CapeTownPosters:
# BoFs, Focus Demos, Demo booths, and Tutorials just have a number,
# with no leading zeros.
......@@ -524,7 +524,7 @@ def CheckPaperName(Paper,Problems) :
ValidSoFar = False
if (Letter == 'I' or Letter == 'O' or \
(Letter == ('X' if CapeTownPosters else 'P') and TriestePosters)) :
(Letter == ('X' if CapeTownPosters else 'P') or (CapeTownPosters and Letter in "BFDT") and TriestePosters)) :
# Oral presentation numbers (and posters using the Trieste convention)
# have the form S-N where S is the session and N the number. Go
......@@ -691,9 +691,9 @@ def CheckSubjectIndexEntries(Paper, Problems, TexFileName = "") :
# Read the total list of keywords from subjectKeywords.txt and newKeywords.txt
# Is there a better way to use AdassConfig.* methods to point at relative file paths?
Entries = compose(set, Reduce(__add__), Map(AdassIndex.ReadIndexList))(
['../Author_Template/subjectKeywords.txt', '../Author_Template/newKeywords.txt'] )
[AdassConfig.MainSubjectIndexFile(), AdassConfig.NewSubjectIndexFile()])
if not Entries:
Problems.append( "No subject keywords found **at all**?! (../Author_Template/{subject|new}Keywords.txt missing?" )
Problems.append( "No subject keywords found **at all**?! (../Author_template/{subject|new}Keywords.txt missing?" )
return False
# ssindex entries that are not in Entries pose a problem!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment