# HG changeset patch # User lbessard # Date 1187097087 -7200 # Node ID 56bae4ff53c4d41bba2f97e7d44f0eecad42e140 # Parent e20fa7257d4166641e14fdcd603178d6b141634a Bug on new project fixed diff -r e20fa7257d41 -r 56bae4ff53c4 Beremiz.py --- 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()