diff Gtk/importFiebdc.py @ 6:2fc6b47dbe70

rename module globals to globalVars
author Miguel Ángel Bárcena Rodríguez <miguelangel@obraencurso.es>
date Sat, 06 Nov 2010 22:33:32 +0100
parents 6502bfdaa84d
children 0359329a1c26
line wrap: on
line diff
--- a/Gtk/importFiebdc.py	Sat Nov 06 21:30:33 2010 +0100
+++ b/Gtk/importFiebdc.py	Sat Nov 06 22:33:32 2010 +0100
@@ -32,7 +32,7 @@
 
 # pyArq-Presupuestos Modules
 from Generic import utils
-from Generic import globals
+from Generic import globalVars
 from Generic import durusdatabase
 import gui
 
@@ -94,10 +94,10 @@
                      gtk.STOCK_OPEN,gtk.RESPONSE_OK))
         self.__window.set_default_response(gtk.RESPONSE_OK)
         if self.__filetype == "budget" or self.__filetype == "database":
-            self.__window.set_current_folder(globals.getHomePath("BUDGET"))
+            self.__window.set_current_folder(globalVars.getHomePath("BUDGET"))
         else: # "durus"
             self.__window.set_current_folder(
-                globals.getHomePath("DURUS-DATABASE"))
+                globalVars.getHomePath("DURUS-DATABASE"))
         if self.__window.run() == gtk.RESPONSE_OK:
             self._openFile(self.__window.get_filename())
         self.__window.destroy()
@@ -223,10 +223,10 @@
         self.__label.show()
         _Vbox1.add(self.__label)
         self.__throbber = gtk.Image()
-        self.__throbber.set_from_file(globals.getAppPath("THROBBER-ICON"))
+        self.__throbber.set_from_file(globalVars.getAppPath("THROBBER-ICON"))
         _Vbox1.add(self.__throbber)
         self.__throbber.show()
-        self.__animation = gtk.gdk.PixbufAnimation(globals.getAppPath("THROBBER-GIF"))
+        self.__animation = gtk.gdk.PixbufAnimation(globalVars.getAppPath("THROBBER-GIF"))
         _pixbuf = self.__throbber.get_pixbuf()
         self.__throbber.set_from_animation(self.__animation)
         _Hbox1 = gtk.HBox(False, 0)
@@ -431,7 +431,7 @@
         self.clear()
         
     def saveDurusDatabase(self):
-        _path = globals.getHomePath("DURUS-DATABASE")
+        _path = globalVars.getHomePath("DURUS-DATABASE")
         _file_whit_path_bc3 = self.__budget.filename
         _filename_bc3 = _file_whit_path_bc3.split("/")[-1]
         _filename = _filename_bc3.split(".")[-2]