forgotten fixes for bug 2027

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10494 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2005-09-28 14:29:23 +00:00
parent be94e5691a
commit aba9a83f22
4 changed files with 15 additions and 5 deletions

View File

@ -1,3 +1,7 @@
2005-09-28 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* doc_toc.py: make it work again with builddir == srcdir
2005-09-28 Georg Baum <Georg.Baum@post.rwth-aachen.de> 2005-09-28 Georg Baum <Georg.Baum@post.rwth-aachen.de>
* de_UserGuide.lyx, it_UserGuide.lyx: repair invalid syntax, maybe * de_UserGuide.lyx, it_UserGuide.lyx: repair invalid syntax, maybe

View File

@ -25,7 +25,11 @@
import sys import sys
import os import os
sys.path.insert(0, os.path.dirname(sys.argv[0]) + "/../lyx2lyx") srcdir = os.path.dirname(sys.argv[0])
if srcdir == '':
srcdir = '.'
sys.path.insert(0, srcdir + "/../lyx2lyx")
import parser_tools import parser_tools
import LyX import LyX
import depend import depend
@ -105,8 +109,6 @@ def main(argv):
if lang not in info: if lang not in info:
lang = 'en' lang = 'en'
srcdir = os.path.dirname(sys.argv[0])
# Determine existing translated documents for that language. # Determine existing translated documents for that language.
toc_general = [] toc_general = []
for file in depend.documents(srcdir, pref): for file in depend.documents(srcdir, pref):

View File

@ -1,3 +1,7 @@
2005-09-28 José Matos <jamatos@lyx.org>
* LyX.py: fix relation_format reversion
2005-09-28 Jürgen Spitzmüller <j.spitzmueller@gmx.de> 2005-09-28 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* LyX.py: enlarge range to current format (244). * LyX.py: enlarge range to current format (244).

View File

@ -284,7 +284,7 @@ class LyX_Base:
" Set the value of the header parameter." " Set the value of the header parameter."
i = find_token(self.header, '\\' + param, 0) i = find_token(self.header, '\\' + param, 0)
if i == -1: if i == -1:
self.warning(3, 'Parameter not found in the header: %s' % param) self.warning('Parameter not found in the header: %s' % param, 3)
return return
self.header[i] = '\\%s %s' % (param, str(value)) self.header[i] = '\\%s %s' % (param, str(value))
@ -375,7 +375,7 @@ class LyX_Base:
steps.append(step[0]) steps.append(step[0])
else: else:
mode = "revert" mode = "revert"
relation_format = format_relation relation_format = format_relation[:]
relation_format.reverse() relation_format.reverse()
last_step = None last_step = None