mlhim-specs-dev team mailing list archive
-
mlhim-specs-dev team
-
Mailing list archive
-
Message #00796
[Branch ~cdd-dev/cdd/trunk] Rev 307: Minor correction to open help file.
------------------------------------------------------------
revno: 307
committer: Eduardo Ribeiro <xcesar@xxxxxxxxx>
branch nick: devel
timestamp: Fri 2013-02-01 16:06:52 -0200
message:
Minor correction to open help file.
modified:
src/2.0/cdd.py
src/2.0/info.py
--
lp:cdd
https://code.launchpad.net/~cdd-dev/cdd/trunk
Your team MLHIM Specifications Developers is subscribed to branch lp:cdd.
To unsubscribe from this branch go to https://code.launchpad.net/~cdd-dev/cdd/trunk/+edit-subscription
=== modified file 'src/2.0/cdd.py'
--- src/2.0/cdd.py 2013-01-31 21:50:27 +0000
+++ src/2.0/cdd.py 2013-02-01 18:06:52 +0000
@@ -362,7 +362,9 @@
self.config_dialog.save_config()
def help_users_guide(self, event): # wxGlade: MainFrame.<event_handler>
- doc = '../../docs/cdd-manual.pdf'
+ dir = os.getcwd()
+ doc = dir + '/../../docs/cdd-manual.pdf'
+
if sys.platform == 'linux2':
subprocess.call(["xdg-open", doc])
=== modified file 'src/2.0/info.py'
--- src/2.0/info.py 2013-01-22 02:57:58 +0000
+++ src/2.0/info.py 2013-02-01 18:06:52 +0000
@@ -63,7 +63,7 @@
schema = self.ccd_id + ".xsd"
# CDD version, transformed. ex: 2.x.y -> 2_x_y
- version = self.rm_version.replace('.','_');
+ version = self.rm_version.replace('.','_')
UUID_definition = str(uuid.uuid4())
@@ -78,8 +78,9 @@
######### Header of the ccd #############################################
- xsd_file.write("""<?xml version="1.0" encoding="UTF-8"?>
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xsd_file.write(
+"""<?xml version="1.0" encoding="UTF-8"?>
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:mlhim2="http://www.mlhim.org/xmlns/mlhim2/{version}"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:owl="http://www.w3.org/2002/07/owl#"