Project/ProjectFormsBrowser.py

changeset 248
f4561c24989a
parent 245
de5c4effc747
child 253
3ccdf551bde7
--- a/Project/ProjectFormsBrowser.py	Fri May 14 17:23:52 2010 +0200
+++ b/Project/ProjectFormsBrowser.py	Fri May 14 17:26:38 2010 +0200
@@ -550,7 +550,7 @@
         for itm in itmList:
             fn2 = itm.fileName()
             fullNames.append(fn2)
-            fn = fn2.replace(self.project.ppath + os.sep, '')
+            fn = self.project.getRelativePath(fn2)
             files.append(fn)
         
         dlg = DeleteFilesConfirmationDialog(self.parent(),
@@ -744,7 +744,7 @@
         """
         itm = self.model().item(self.currentIndex())
         fn2 = itm.fileName()
-        fn = fn2.replace(self.project.ppath + os.sep, '')
+        fn = self.project.getRelativePath(fn2)
         if self.hooks["compileForm"] is not None:
             self.hooks["compileForm"](fn)
         else:
@@ -786,7 +786,7 @@
         Private method to compile selected forms to source files.
         """
         items = self.getSelectedItems()
-        files = [itm.fileName().replace(self.project.ppath + os.sep, '') \
+        files = [self.project.getRelativePath(itm.fileName()) \
                  for itm in items]
         
         if self.hooks["compileSelectedForms"] is not None:

eric ide

mercurial