mlhim-specs-dev team mailing list archive
-
mlhim-specs-dev team
-
Mailing list archive
-
Message #00783
[Branch ~cdd-dev/cdd/trunk] Rev 296: Changed behavior of directory selection dialog to export xsd file.
------------------------------------------------------------
revno: 296
committer: Eduardo Ribeiro <xcesar@xxxxxxxxx>
branch nick: dict_tree
timestamp: Tue 2013-01-08 13:13:10 -0200
message:
Changed behavior of directory selection dialog to export xsd file.
modified:
src/2.0/cdd.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-08 06:59:12 +0000
+++ src/2.0/cdd.py 2013-01-08 15:13:10 +0000
@@ -1898,7 +1898,7 @@
# try:
if len(sys.argv) > 1 and sys.argv[1] == '-g':
info.randomize_uuid()
- info.get_defin_type(self.get_definition_child)
+ info.get_defin_type(self.get_definition_child())
info.generate_file('.')
self.Destroy()
# except:
@@ -2216,6 +2216,7 @@
info.randomize_uuid()
info.get_defin_type(self.get_definition_child())
info.generate_file(path)
+
# Show dialog
popup_message(self, '%s.xsd' % info.ccd_id, _('Generated the file'), wx.OK | wx.ICON_INFORMATION)
@@ -2290,7 +2291,6 @@
self.defin.append(tipo)
def generate_file(self, path):
-
schema = self.ccd_id + ".xsd"
# CDD version, transformed. ex: 2.x.y -> 2_x_y
@@ -2499,7 +2499,7 @@
#wildcard = "CDD files (*.cdd)|*.cdd|" \
# "All files (*.*)|*.*"
dlg = wx.DirDialog(self, _("Choose a directory to put the generated files:"),
- os.getcwd(),
+ os.getcwd() + '/..',
style=wx.DD_DEFAULT_STYLE
)