Changeset 51878 for OOo/ooo2dbk/trunk
- Timestamp:
- 06/26/07 15:31:21 (1 year ago)
- Files:
-
- OOo/ooo2dbk/trunk/CHANGES (modified) (1 diff)
- OOo/ooo2dbk/trunk/ooo2dbk (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
OOo/ooo2dbk/trunk/CHANGES
r50742 r51878 7 7 Bug fixes 8 8 ~~~~~~~~~ 9 - 9 - Fixed reference in the comments and messages to config.xml file which is now a 10 constant that may change. 10 11 New internal features 11 12 ~~~~~~~~~~~~~~~~~~~~~ OOo/ooo2dbk/trunk/ooo2dbk
r50612 r51878 1 1 #!/usr/bin/python 2 # (C) Copyright 2003-200 6Nuxeo SAS <http://nuxeo.com>2 # (C) Copyright 2003-2007 Nuxeo SAS <http://nuxeo.com> 3 3 # (C) Copyright 2002 Eric Bellot <ebellot@netcourrier.com> 4 4 # … … 271 271 def getXSLfile(oooVersion): 272 272 273 # Using the XSLT stylesheets specified in the config.xmlfile273 # Using the XSLT stylesheets specified in the CONF_FILE_NAME file 274 274 stylesheet_file_name = getConfigValue('xslt-stylesheet', 275 275 'stylesheetPath', … … 277 277 stylesheet_file_name = verifPath(stylesheet_file_name) 278 278 if stylesheet_file_name == None: 279 print "Bad filename %s for 'xslt-stylesheet' %s in ' config.xml'" % (279 print "Bad filename %s for 'xslt-stylesheet' %s in '%s'" % ( 280 280 stylesheet_file_name, 281 oooVersion ) 281 oooVersion, 282 CONF_FILE_NAME, 283 ) 282 284 283 285 xsltfile = os.path.join(getModulePath(), stylesheet_file_name) … … 327 329 verifPathIRD = re.match(r"^[a-zA-Z0-9]+$", imgRelDir) 328 330 if verifPathIRD == None: 329 msg = ("Only one depth relative directory (no '" + os.sep + "') " 330 "and only alphanum chars for 'imagesRelativeDirectory' in 'config.xml'\n" 331 "Actual name is : '" + imgRelDir + "'") 331 msg = ("Only one depth relative directory (no '%s') " 332 "and only alphanum chars for 'imagesRelativeDirectory' in '%s'\n" 333 "Actual name is : '%s'" 334 % (os.sep, CONF_FILE_NAME, imgRelDir)) 332 335 print msg 333 336 sys.exit(1) … … 336 339 verifPathIR = re.match(r"^[a-zA-Z0-9]+$", imgRootName) 337 340 if verifPathIR == None: 338 print "Only alphanum chars for 'imageNameRoot' in ' config.xml'"341 print "Only alphanum chars for 'imageNameRoot' in '%s'" % CONF_FILE_NAME 339 342 print "Actual name is :", imgRootName 340 343 sys.exit(1) … … 349 352 def getConfigValue(element, attribute, name=''): 350 353 """ 351 Return from the config.xmlfile the value of the specified attribute354 Return from the CONF_FILE_NAME file the value of the specified attribute 352 355 ('command', 'param-syntax', etc.) for the specified element type 353 356 'xslt-command', 'xslt-stylesheet', etc.) with its 'name' attribute having … … 372 375 if name != '': 373 376 print ("There isn't any value for this parameter. " 374 "There should be an error in your config.xml.")377 "There should be an error in your %s." % CONF_FILE_NAME) 375 378 sys.exit(1) 376 379
