0 votes

Wasn’t sure where to report this bug fix for the Show Project Plan Html script, found in the project Custom Tools > Admin menu. I noticed that only the last stage was showing the icon for “When previous stage is complete”. In stage 6 you get the hamburger-like icon:

image

But in stage 5, where there should be the icon, it is blank:

image

It looks like this is because there is an additional text value in the tag that isn’t being handled (maybe a new one in later versions of Paratext?). The code in ProjectPlanHtml.py needs to add the line with WhenStageIsCompleteByChapter below (around line 171):

def symbolFor(strTerm):
aDict = {'WhenProjectStarts':'▒',
         'WhenStageIsComplete':'Ξ',
         'WhenStageIsCompleteByChapter':'Ξ',
         'WhenBookStarts':'□',
         'AfterPreviousTaskForChapter':'↑',
         'AfterPreviousTaskForBook':'↑',
         'ManualByChapter':'C',
         'ManualByProject':'P',
         'Manual':'B',
         'Auto' : '∞'}

There is another mistake in the ProjectPlanImport.py module, around line 51. What was:

            elif (strToken, enumType) == ('EditingRequired',parser.BEGIN):
            self.availability = 'Yes'
            parser.parseSkipUntil('EditingRequired', parser.END)

should be changed to:

            elif (strToken, enumType) == ('EditingRequired',parser.BEGIN):
            self.editingRequired = 'Yes'
            parser.parseSkipUntil('EditingRequired', parser.END)

I’m not sure if this last change is necessary to fix the problem at hand, but it was obviously the original author’s intention to modify the editingRequired variable instead of the availability variable, and I thought originally that that error might be causing the problem. Probably best to change it as well…

Paratext by (1.3k points)

Please log in or register to answer this question.

Related questions

0 votes
0 answers
Paratext Nov 12, 2021 asked by [Moderator]
dhigby
(1.3k points)
0 votes
5 answers
Paratext May 14, 2019 asked by Iver Larsen (869 points)
0 votes
1 answer
Paratext Apr 25, 2022 asked by listentwice (1.2k points)
Welcome to Support Bible, where you can ask questions and receive answers from other members of the community.
For just as each of us has one body with many members, and these members do not all have the same function, so in Christ we, though many, form one body, and each member belongs to all the others.
Romans 12:4-5
2,479 questions
5,174 answers
4,872 comments
1,283 users