--- a/Beremiz.py Mon Aug 13 17:22:39 2007 +0200
+++ b/Beremiz.py Tue Aug 14 15:11:27 2007 +0200
@@ -408,10 +408,9 @@
dialog = ProjectDialog(self)
if dialog.ShowModal() == wx.ID_OK:
values = dialog.GetValues()
- projectname = values.pop("projectName")
values["creationDateTime"] = datetime(*localtime()[:6])
- self.PLCManager.CreateNewProject(projectname)
- self.PLCManager.SetProjectProperties(values)
+ self.PLCManager.CreateNewProject(values.pop("projectName"))
+ self.PLCManager.SetProjectProperties(properties=values)
self.PLCManager.SaveXMLFile(plc_file)
self.CurrentProjectPath = projectpath
dialog.Destroy()