change value to True/False

This commit is contained in:
Armin Köhler 2011-02-23 20:48:37 +01:00
parent 557d5a9d27
commit b4b6fef70a
1 changed files with 3 additions and 3 deletions

View File

@ -420,13 +420,13 @@ class FoilPresenter(object):
text = self._child(strophe.text_)
verse_name = self._child(strophe.key)
children = strophe.getchildren()
sortnr = 0
sortnr = False
for child in children:
if child.tag == u'sortnr':
verse_sortnr = self._child(strophe.sortnr)
sortnr = 1
sortnr = True
# In older Version there is no sortnr, but we need one
if sortnr == 0:
if sortnr == False:
verse_sortnr = unicode(temp_sortnr_backup)
temp_sortnr_backup += 1
# Foilpresenter allows e. g. "Ref" or "1", but we need "C1" or "V1".