← Back to team overview

mlhim-specs-dev team mailing list archive

[Branch ~cdd-dev/cdd/trunk] Rev 243: Changed single quote to use the escape code ' in data_name.

 

------------------------------------------------------------
revno: 243
committer: Timothy W. Cook <timothywayne.cook@xxxxxxxxx>
branch nick: cdd
timestamp: Fri 2012-08-31 10:19:46 -0300
message:
  Changed single quote to use the escape code &#39; in data_name.
modified:
  src/xls2ccd/xls2ccd.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/xls2ccd/xls2ccd.py'
--- src/xls2ccd/xls2ccd.py	2012-08-30 22:29:40 +0000
+++ src/xls2ccd/xls2ccd.py	2012-08-31 13:19:46 +0000
@@ -86,7 +86,7 @@
     resource_format = "text/xml"
     identifier = ccd_id
 
-    data_name = title.replace("'",'')
+    data_name = title.replace("'",'&#39;')
     dt = ccd_dict[k][5]
 
     f = open(schema,'w')