ProjectDjango/Project.py

changeset 6
80815349eef4
parent 5
96a317de4626
child 8
07d64408f2b7
--- a/ProjectDjango/Project.py	Sun Mar 24 15:29:37 2013 +0100
+++ b/ProjectDjango/Project.py	Sun Mar 24 15:35:23 2013 +0100
@@ -72,7 +72,7 @@
         self.selectSiteAct = E5Action(self.trUtf8('Current Project'),
                 "",
                 0, 0,
-                self,'django_current_project')
+                self, 'django_current_project')
         self.selectSiteAct.setStatusTip(self.trUtf8(
             'Selects the current project'))
         self.selectSiteAct.setWhatsThis(self.trUtf8(
@@ -89,9 +89,9 @@
         ##############################
         
         self.startProjectAct = E5Action(self.trUtf8('Start Project'),
-                self.trUtf8('Start &Project'), 
+                self.trUtf8('Start &Project'),
                 0, 0,
-                self,'django_start_project')
+                self, 'django_start_project')
         self.startProjectAct.setStatusTip(self.trUtf8(
             'Starts a new Django project'))
         self.startProjectAct.setWhatsThis(self.trUtf8(
@@ -103,9 +103,9 @@
         
         self.startGlobalApplicationAct = E5Action(
                 self.trUtf8('Start Application (global)'),
-                self.trUtf8('Start Application (&global)'), 
+                self.trUtf8('Start Application (&global)'),
                 0, 0,
-                self,'django_start_global_application')
+                self, 'django_start_global_application')
         self.startGlobalApplicationAct.setStatusTip(self.trUtf8(
             'Starts a new global Django application'))
         self.startGlobalApplicationAct.setWhatsThis(self.trUtf8(
@@ -119,9 +119,9 @@
         
         self.startLocalApplicationAct = E5Action(
                 self.trUtf8('Start Application (local)'),
-                self.trUtf8('Start Application (&local)'), 
+                self.trUtf8('Start Application (&local)'),
                 0, 0,
-                self,'django_start_local_application')
+                self, 'django_start_local_application')
         self.startLocalApplicationAct.setStatusTip(self.trUtf8(
             'Starts a new local Django application'))
         self.startLocalApplicationAct.setWhatsThis(self.trUtf8(
@@ -138,9 +138,9 @@
         ##############################
         
         self.runServerAct = E5Action(self.trUtf8('Run Server'),
-                self.trUtf8('Run &Server'), 
+                self.trUtf8('Run &Server'),
                 0, 0,
-                self,'django_run_server')
+                self, 'django_run_server')
         self.runServerAct.setStatusTip(self.trUtf8(
             'Starts the Django Web server'))
         self.runServerAct.setWhatsThis(self.trUtf8(
@@ -151,9 +151,9 @@
         self.actions.append(self.runServerAct)
         
         self.runBrowserAct = E5Action(self.trUtf8('Run Web-Browser'),
-                self.trUtf8('Run &Web-Browser'), 
+                self.trUtf8('Run &Web-Browser'),
                 0, 0,
-                self,'django_run_browser')
+                self, 'django_run_browser')
         self.runBrowserAct.setStatusTip(self.trUtf8(
             'Starts the default Web-Browser with the URL of the Django Web server'))
         self.runBrowserAct.setWhatsThis(self.trUtf8(
@@ -169,9 +169,9 @@
         ##############################
         
         self.createCacheTableAct = E5Action(self.trUtf8('Create Cache Tables'),
-                self.trUtf8('C&reate Cache Tables'), 
+                self.trUtf8('C&reate Cache Tables'),
                 0, 0,
-                self,'django_create_cache_tables')
+                self, 'django_create_cache_tables')
         self.createCacheTableAct.setStatusTip(self.trUtf8(
             'Creates the tables needed to use the SQL cache backend'))
         self.createCacheTableAct.setWhatsThis(self.trUtf8(
@@ -186,9 +186,9 @@
         ##############################
         
         self.helpAct = E5Action(self.trUtf8('Help'),
-                self.trUtf8('&Help'), 
+                self.trUtf8('&Help'),
                 0, 0,
-                self,'django_help')
+                self, 'django_help')
         self.helpAct.setStatusTip(self.trUtf8(
             'Shows the Django help index'))
         self.helpAct.setWhatsThis(self.trUtf8(
@@ -203,9 +203,9 @@
         ##############################
         
         self.aboutDjangoAct = E5Action(self.trUtf8('About Django'),
-                self.trUtf8('About D&jango'), 
+                self.trUtf8('About D&jango'),
                 0, 0,
-                self,'django_about')
+                self, 'django_about')
         self.aboutDjangoAct.setStatusTip(self.trUtf8(
             'Shows some information about Django'))
         self.aboutDjangoAct.setWhatsThis(self.trUtf8(
@@ -227,9 +227,9 @@
         Private method to define the database related actions.
         """
         self.syncDatabaseAct = E5Action(self.trUtf8('Synchronize'),
-                self.trUtf8('&Synchronize'), 
+                self.trUtf8('&Synchronize'),
                 0, 0,
-                self,'django_database_syncdb')
+                self, 'django_database_syncdb')
         self.syncDatabaseAct.setStatusTip(self.trUtf8(
             'Synchronizes the database'))
         self.syncDatabaseAct.setWhatsThis(self.trUtf8(
@@ -240,9 +240,9 @@
         self.actions.append(self.syncDatabaseAct)
         
         self.inspectDatabaseAct = E5Action(self.trUtf8('Introspect'),
-                self.trUtf8('&Introspect'), 
+                self.trUtf8('&Introspect'),
                 0, 0,
-                self,'django_database_inspect')
+                self, 'django_database_inspect')
         self.inspectDatabaseAct.setStatusTip(self.trUtf8(
             'Introspects the database tables and outputs a Django model module'))
         self.inspectDatabaseAct.setWhatsThis(self.trUtf8(
@@ -254,9 +254,9 @@
         self.actions.append(self.inspectDatabaseAct)
         
         self.flushDatabaseAct = E5Action(self.trUtf8('Flush'),
-                self.trUtf8('&Flush'), 
+                self.trUtf8('&Flush'),
                 0, 0,
-                self,'django_database_flush')
+                self, 'django_database_flush')
         self.flushDatabaseAct.setStatusTip(self.trUtf8(
             'Returns all database tables to the state just after their installation'))
         self.flushDatabaseAct.setWhatsThis(self.trUtf8(
@@ -268,9 +268,9 @@
         self.actions.append(self.flushDatabaseAct)
         
         self.databaseClientAct = E5Action(self.trUtf8('Start Client Console'),
-                self.trUtf8('Start &Client Console'), 
+                self.trUtf8('Start &Client Console'),
                 0, 0,
-                self,'django_database_client')
+                self, 'django_database_client')
         self.databaseClientAct.setStatusTip(self.trUtf8(
             'Starts a console window for the database client'))
         self.databaseClientAct.setWhatsThis(self.trUtf8(
@@ -285,9 +285,9 @@
         Private method to define the database SQL related actions.
         """
         self.databaseSqlCreateTablesAct = E5Action(self.trUtf8('Create Tables'),
-                self.trUtf8('Create &Tables'), 
+                self.trUtf8('Create &Tables'),
                 0, 0,
-                self,'django_database_sql_create_tables')
+                self, 'django_database_sql_create_tables')
         self.databaseSqlCreateTablesAct.setStatusTip(self.trUtf8(
             'Prints the CREATE TABLE SQL statements for one or more applications'))
         self.databaseSqlCreateTablesAct.setWhatsThis(self.trUtf8(
@@ -300,9 +300,9 @@
         self.actions.append(self.databaseSqlCreateTablesAct)
         
         self.databaseSqlCreateIndexesAct = E5Action(self.trUtf8('Create Indexes'),
-                self.trUtf8('Create &Indexes'), 
+                self.trUtf8('Create &Indexes'),
                 0, 0,
-                self,'django_database_sql_create_indexes')
+                self, 'django_database_sql_create_indexes')
         self.databaseSqlCreateIndexesAct.setStatusTip(self.trUtf8(
             'Prints the CREATE INDEX SQL statements for one or more applications'))
         self.databaseSqlCreateIndexesAct.setWhatsThis(self.trUtf8(
@@ -315,9 +315,9 @@
         self.actions.append(self.databaseSqlCreateIndexesAct)
         
         self.databaseSqlCreateEverythingAct = E5Action(self.trUtf8('Create Everything'),
-                self.trUtf8('Create &Everything'), 
+                self.trUtf8('Create &Everything'),
                 0, 0,
-                self,'django_database_sql_create_everything')
+                self, 'django_database_sql_create_everything')
         self.databaseSqlCreateEverythingAct.setStatusTip(self.trUtf8(
             'Prints the CREATE ... SQL statements for one or more applications'))
         self.databaseSqlCreateEverythingAct.setWhatsThis(self.trUtf8(
@@ -330,9 +330,9 @@
         self.actions.append(self.databaseSqlCreateEverythingAct)
         
         self.databaseSqlCustomAct = E5Action(self.trUtf8('Custom Statements'),
-                self.trUtf8('&Custom Statements'), 
+                self.trUtf8('&Custom Statements'),
                 0, 0,
-                self,'django_database_sql_custom')
+                self, 'django_database_sql_custom')
         self.databaseSqlCustomAct.setStatusTip(self.trUtf8(
             'Prints the custom table modifying SQL statements for '
             'one or more applications'))
@@ -346,9 +346,9 @@
         self.actions.append(self.databaseSqlCustomAct)
         
         self.databaseSqlDropTablesAct = E5Action(self.trUtf8('Drop Tables'),
-                self.trUtf8('&Drop Tables'), 
+                self.trUtf8('&Drop Tables'),
                 0, 0,
-                self,'django_database_sql_drop_tables')
+                self, 'django_database_sql_drop_tables')
         self.databaseSqlDropTablesAct.setStatusTip(self.trUtf8(
             'Prints the DROP TABLE SQL statements for '
             'one or more applications'))
@@ -362,9 +362,9 @@
         self.actions.append(self.databaseSqlDropTablesAct)
         
         self.databaseSqlFlushAct = E5Action(self.trUtf8('Flush Database'),
-                self.trUtf8('&Flush Database'), 
+                self.trUtf8('&Flush Database'),
                 0, 0,
-                self,'django_database_sql_flush_database')
+                self, 'django_database_sql_flush_database')
         self.databaseSqlFlushAct.setStatusTip(self.trUtf8(
             'Prints a list of statements to return all database tables to the state '
             'just after their installation'))
@@ -378,9 +378,9 @@
         self.actions.append(self.databaseSqlFlushAct)
         
         self.databaseSqlResetSeqAct = E5Action(self.trUtf8('Reset Sequences'),
-                self.trUtf8('Reset &Sequences'), 
+                self.trUtf8('Reset &Sequences'),
                 0, 0,
-                self,'django_database_sql_reset_sequences')
+                self, 'django_database_sql_reset_sequences')
         self.databaseSqlResetSeqAct.setStatusTip(self.trUtf8(
             'Prints the SQL statements for resetting sequences for '
             'one or more applications'))
@@ -398,9 +398,9 @@
         Private method to define the tool actions.
         """
         self.diffSettingsAct = E5Action(self.trUtf8('Diff Settings'),
-                self.trUtf8('&Diff Settings'), 
+                self.trUtf8('&Diff Settings'),
                 0, 0,
-                self,'django_tools_diffsettings')
+                self, 'django_tools_diffsettings')
         self.diffSettingsAct.setStatusTip(self.trUtf8(
             'Shows the modification made to the settings'))
         self.diffSettingsAct.setWhatsThis(self.trUtf8(
@@ -411,9 +411,9 @@
         self.actions.append(self.diffSettingsAct)
     
         self.cleanupAct = E5Action(self.trUtf8('Cleanup'),
-                self.trUtf8('&Cleanup'), 
+                self.trUtf8('&Cleanup'),
                 0, 0,
-                self,'django_tools_cleanup')
+                self, 'django_tools_cleanup')
         self.cleanupAct.setStatusTip(self.trUtf8(
             'Cleans out old data from the database'))
         self.cleanupAct.setWhatsThis(self.trUtf8(
@@ -424,9 +424,9 @@
         self.actions.append(self.cleanupAct)
     
         self.validateAct = E5Action(self.trUtf8('Validate'),
-                self.trUtf8('&Validate'), 
+                self.trUtf8('&Validate'),
                 0, 0,
-                self,'django_tools_validate')
+                self, 'django_tools_validate')
         self.validateAct.setStatusTip(self.trUtf8(
             'Validates all installed models'))
         self.validateAct.setWhatsThis(self.trUtf8(
@@ -437,9 +437,9 @@
         self.actions.append(self.validateAct)
     
         self.runPythonShellAct = E5Action(self.trUtf8('Start Python Console'),
-                self.trUtf8('Start &Python Console'), 
+                self.trUtf8('Start &Python Console'),
                 0, 0,
-                self,'django_tools_pythonconsole')
+                self, 'django_tools_pythonconsole')
         self.runPythonShellAct.setStatusTip(self.trUtf8(
             'Starts a Python interactive interpreter'))
         self.runPythonShellAct.setWhatsThis(self.trUtf8(
@@ -454,9 +454,9 @@
         Private method to define the testing actions.
         """
         self.dumpDataAct = E5Action(self.trUtf8('Dump Data'),
-                self.trUtf8('&Dump Data'), 
+                self.trUtf8('&Dump Data'),
                 0, 0,
-                self,'django_tools_dumpdata')
+                self, 'django_tools_dumpdata')
         self.dumpDataAct.setStatusTip(self.trUtf8(
             'Dump the database data to a fixture'))
         self.dumpDataAct.setWhatsThis(self.trUtf8(
@@ -467,9 +467,9 @@
         self.actions.append(self.dumpDataAct)
         
         self.loadDataAct = E5Action(self.trUtf8('Load Data'),
-                self.trUtf8('&Load Data'), 
+                self.trUtf8('&Load Data'),
                 0, 0,
-                self,'django_tools_loaddata')
+                self, 'django_tools_loaddata')
         self.loadDataAct.setStatusTip(self.trUtf8(
             'Load data from fixture files'))
         self.loadDataAct.setWhatsThis(self.trUtf8(
@@ -480,9 +480,9 @@
         self.actions.append(self.loadDataAct)
         
         self.runTestAct = E5Action(self.trUtf8('Run Testsuite'),
-                self.trUtf8('Run &Testsuite'), 
+                self.trUtf8('Run &Testsuite'),
                 0, 0,
-                self,'django_tools_run_test')
+                self, 'django_tools_run_test')
         self.runTestAct.setStatusTip(self.trUtf8(
             'Run the test suite for applications or the whole site'))
         self.runTestAct.setWhatsThis(self.trUtf8(
@@ -493,9 +493,9 @@
         self.actions.append(self.runTestAct)
         
         self.runTestServerAct = E5Action(self.trUtf8('Run Testserver'),
-                self.trUtf8('Run Test&server'), 
+                self.trUtf8('Run Test&server'),
                 0, 0,
-                self,'django_tools_run_test_server')
+                self, 'django_tools_run_test_server')
         self.runTestServerAct.setStatusTip(self.trUtf8(
             'Run a development server with data from a set of fixtures'))
         self.runTestServerAct.setWhatsThis(self.trUtf8(
@@ -510,9 +510,9 @@
         Private method to define the authorization actions.
         """
         self.changePasswordAct = E5Action(self.trUtf8('Change Password'),
-                self.trUtf8('Change &Password'), 
+                self.trUtf8('Change &Password'),
                 0, 0,
-                self,'django_auth_changepassword')
+                self, 'django_auth_changepassword')
         self.changePasswordAct.setStatusTip(self.trUtf8(
             'Change the password of a user'))
         self.changePasswordAct.setWhatsThis(self.trUtf8(
@@ -523,9 +523,9 @@
         self.actions.append(self.changePasswordAct)
         
         self.createSuperUserAct = E5Action(self.trUtf8('Create Superuser'),
-                self.trUtf8('Create &Superuser'), 
+                self.trUtf8('Create &Superuser'),
                 0, 0,
-                self,'django_auth_createsuperuser')
+                self, 'django_auth_createsuperuser')
         self.createSuperUserAct.setStatusTip(self.trUtf8(
             'Create a superuser account'))
         self.createSuperUserAct.setWhatsThis(self.trUtf8(
@@ -540,9 +540,9 @@
         Private method to define the session actions.
         """
         self.clearSessionsAct = E5Action(self.trUtf8('Clear Sessions'),
-                self.trUtf8('Clear &Sessions'), 
+                self.trUtf8('Clear &Sessions'),
                 0, 0,
-                self,'django_session_clearsessions')
+                self, 'django_session_clearsessions')
         self.clearSessionsAct.setStatusTip(self.trUtf8(
             'Clear expired sessions'))
         self.clearSessionsAct.setWhatsThis(self.trUtf8(
@@ -705,16 +705,16 @@
         if self.__e5project.getProjectType() == "Django":
             self.__formsBrowser = \
                 e5App().getObject("ProjectBrowser").getProjectBrowser("forms")
-            self.__formsBrowser.addHookMethodAndMenuEntry("newForm", 
+            self.__formsBrowser.addHookMethodAndMenuEntry("newForm",
                 self.newForm, self.trUtf8("New template..."))
             
             self.__e5project.projectLanguageAddedByCode.connect(
                 self.__projectLanguageAdded)
             self.__translationsBrowser = \
                 e5App().getObject("ProjectBrowser").getProjectBrowser("translations")
-            self.__translationsBrowser.addHookMethodAndMenuEntry("generateAll", 
+            self.__translationsBrowser.addHookMethodAndMenuEntry("generateAll",
                 self.updateCatalogs, self.trUtf8("Update all catalogs"))
-            self.__translationsBrowser.addHookMethodAndMenuEntry("generateSelected", 
+            self.__translationsBrowser.addHookMethodAndMenuEntry("generateSelected",
                 self.updateSelectedCatalogs, self.trUtf8("Update selected catalogs"))
             self.__translationsBrowser.addHookMethodAndMenuEntry(
                 "generateAllWithObsolete", self.updateCatalogsWithObsolete,
@@ -722,10 +722,10 @@
             self.__translationsBrowser.addHookMethodAndMenuEntry(
                 "generateSelectedWithObsolete", self.updateSelectedCatalogsWithObsolete,
                 self.trUtf8("Update selected catalogs (with obsolete)"))
-            self.__translationsBrowser.addHookMethodAndMenuEntry("releaseAll", 
+            self.__translationsBrowser.addHookMethodAndMenuEntry("releaseAll",
                 self.compileCatalogs, self.trUtf8("Compile all catalogs"))
-            self.__translationsBrowser.addHookMethodAndMenuEntry("releaseSelected", 
-                self.compileSelectedCatalogs, 
+            self.__translationsBrowser.addHookMethodAndMenuEntry("releaseSelected",
+                self.compileSelectedCatalogs,
                 self.trUtf8("Compile selected catalogs"))
             
             self.__hooksInstalled = True
@@ -890,7 +890,7 @@
         """
         Private method to save the list of recently used applications list.
         """
-        Preferences.Prefs.rsettings.setValue(self.RecentApplicationsKey, 
+        Preferences.Prefs.rsettings.setValue(self.RecentApplicationsKey,
                                              self.__recentApplications)
         Preferences.Prefs.rsettings.sync()
     
@@ -939,7 +939,7 @@
         """
         Private slot to show the help index page.
         """
-        page = os.path.join(os.path.dirname(__file__), 
+        page = os.path.join(os.path.dirname(__file__),
                             "Documentation", "help", "index.html")
         self.__ui.launchHelpViewer(page)
     
@@ -1011,8 +1011,8 @@
         args.append("startproject")
         args.append(projectName)
         
-        dia = DjangoDialog(title, 
-            msgSuccess = self.trUtf8("Django project created successfully."))
+        dia = DjangoDialog(title,
+            msgSuccess=self.trUtf8("Django project created successfully."))
         res = dia.startProcess(args, path)
         if res:
             dia.exec_()
@@ -1042,14 +1042,14 @@
             res = self.__createProject(projectName, self.__e5project.getProjectPath())
             if res:
                 # search for new files and add them to the project
-                sitePath = os.path.join(self.__e5project.getProjectPath(), 
+                sitePath = os.path.join(self.__e5project.getProjectPath(),
                                         projectName)
                 for entry in os.walk(sitePath):
                     for fileName in entry[2]:
                         fullName = os.path.join(entry[0], fileName)
                         self.__e5project.appendFile(fullName)
     
-    def __createApplication(self, applName, path, isGlobal = True):
+    def __createApplication(self, applName, path, isGlobal=True):
         """
         Private slot to create a new Django application.
         
@@ -1084,8 +1084,8 @@
         args.append("startapp")
         args.append(applName)
         
-        dia = DjangoDialog(title, 
-            msgSuccess = self.trUtf8("Django application created successfully."))
+        dia = DjangoDialog(title,
+            msgSuccess=self.trUtf8("Django application created successfully."))
         res = dia.startProcess(args, path)
         if res:
             dia.exec_()
@@ -1188,7 +1188,7 @@
         if self.__currentSite is None:
             raise DjangoNoSiteSelectedException
         else:
-            return os.path.join(self.__e5project.getProjectPath(), 
+            return os.path.join(self.__e5project.getProjectPath(),
                                 self.__currentSite)
     
     def __setCurrentSite(self, site):
@@ -1356,14 +1356,14 @@
         except DjangoNoSiteSelectedException:
             return
         
-        dia = DjangoDialog(title, fixed = True, linewrap = False)
+        dia = DjangoDialog(title, fixed=True, linewrap=False)
         res = dia.startProcess(args, path, False)
         if res:
             dia.exec_()
     
     def __databaseFlush(self):
         """
-        Private slot to return all database tables to the state just after their 
+        Private slot to return all database tables to the state just after their
         installation.
         """
         try:
@@ -1383,8 +1383,8 @@
             args.append("flush")
             args.append("--noinput")
             
-            dia = DjangoDialog(title, 
-                msgSuccess = self.trUtf8("Database tables flushed successfully."))
+            dia = DjangoDialog(title,
+                msgSuccess=self.trUtf8("Database tables flushed successfully."))
             res = dia.startProcess(args, path)
             if res:
                 dia.exec_()
@@ -1415,7 +1415,7 @@
     ## slots below implement database functions outputting SQL statements
     #######################################################################
     
-    def __sqlCommand(self, title, command, requestApps = True):
+    def __sqlCommand(self, title, command, requestApps=True):
         """
         Private method to perform an SQL creation function.
         
@@ -1444,29 +1444,29 @@
         
         fileFilter = self.trUtf8("SQL Files (*.sql)")
         
-        dia = DjangoDialog(title, fixed = True, linewrap = False, 
-                           saveFilters = fileFilter)
+        dia = DjangoDialog(title, fixed=True, linewrap=False,
+                           saveFilters=fileFilter)
         res = dia.startProcess(args, path, False)
         if res:
             dia.exec_()
     
     def __databaseSqlCreateTables(self):
         """
-        Private slot to print the CREATE TABLE SQL statements for one 
+        Private slot to print the CREATE TABLE SQL statements for one
         or more applications.
         """
         self.__sqlCommand(self.trUtf8("Create Tables"), "sql")
     
     def __databaseSqlCreateIndexes(self):
         """
-        Private slot to print the CREATE INDEX SQL statements for one 
+        Private slot to print the CREATE INDEX SQL statements for one
         or more applications.
         """
         self.__sqlCommand(self.trUtf8("Create Indexes"), "sqlindexes")
     
     def __databaseSqlCreateEverything(self):
         """
-        Private slot to print the CREATE TABLE, custom SQL and 
+        Private slot to print the CREATE TABLE, custom SQL and
         CREATE INDEX SQL statements for one or more applications.
         """
         self.__sqlCommand(self.trUtf8("Create Everything"), "sqlall")
@@ -1519,7 +1519,7 @@
         except DjangoNoSiteSelectedException:
             return
         
-        dia = DjangoDialog(title, fixed = True, linewrap = False)
+        dia = DjangoDialog(title, fixed=True, linewrap=False)
         res = dia.startProcess(args, path, False)
         if res:
             dia.exec_()
@@ -1540,8 +1540,8 @@
         except DjangoNoSiteSelectedException:
             return
         
-        dia = DjangoDialog(title, 
-            msgSuccess = self.trUtf8("Database cleaned up successfully."))
+        dia = DjangoDialog(title,
+            msgSuccess=self.trUtf8("Database cleaned up successfully."))
         res = dia.startProcess(args, path)
         if res:
             dia.exec_()
@@ -1620,8 +1620,8 @@
             args.append("createcachetable")
             args += tableNames
             
-            dia = DjangoDialog(title, 
-                msgSuccess = self.trUtf8("Cache tables created successfully."))
+            dia = DjangoDialog(title,
+                msgSuccess=self.trUtf8("Cache tables created successfully."))
             res = dia.startProcess(args, wd)
             if res:
                 dia.exec_()
@@ -1663,9 +1663,9 @@
             elif format == "yaml":
                 fileFilters = self.trUtf8("YAML Files (*.yaml)")
             
-            dia = DjangoDialog(title, fixed = True, linewrap = False, 
-                saveFilters = fileFilters)
-            res = dia.startProcess(args, wd, showCommand = False)
+            dia = DjangoDialog(title, fixed=True, linewrap=False,
+                saveFilters=fileFilters)
+            res = dia.startProcess(args, wd, showCommand=False)
             if res:
                 dia.exec_()
     
@@ -1851,8 +1851,8 @@
         args.append("manage.py")
         args.append("clearsessions")
         
-        dia = DjangoDialog(title, 
-            msgSuccess = self.trUtf8("Expired sessions cleared successfully."))
+        dia = DjangoDialog(title,
+            msgSuccess=self.trUtf8("Expired sessions cleared successfully."))
         res = dia.startProcess(args, wd)
         if res:
             dia.exec_()
@@ -1937,9 +1937,8 @@
                             ' Aborting...'))
             return
         
-        dia = DjangoDialog(title, 
-            msgSuccess = \
-                self.trUtf8("\nMessage catalog initialized successfully."))
+        dia = DjangoDialog(title,
+            msgSuccess=self.trUtf8("\nMessage catalog initialized successfully."))
         res = dia.startProcess(args, wd)
         if res:
             dia.exec_()
@@ -1985,9 +1984,8 @@
                 self.trUtf8('No locales detected. Aborting...'))
             return
         
-        dia = DjangoDialog(title, 
-            msgSuccess = \
-                self.trUtf8("\nMessage catalogs updated successfully."))
+        dia = DjangoDialog(title,
+            msgSuccess=self.trUtf8("\nMessage catalogs updated successfully."))
         res = dia.startBatchProcesses(argsLists, wd)
         if res:
             dia.exec_()
@@ -2028,9 +2026,8 @@
                 self.trUtf8('No locales detected. Aborting...'))
             return
         
-        dia = DjangoDialog(title, 
-            msgSuccess = \
-                self.trUtf8("\nMessage catalogs updated successfully."))
+        dia = DjangoDialog(title,
+            msgSuccess=self.trUtf8("\nMessage catalogs updated successfully."))
         res = dia.startBatchProcesses(argsLists, wd)
         if res:
             dia.exec_()
@@ -2059,9 +2056,8 @@
                             ' Aborting...'))
             return
         
-        dia = DjangoDialog(title, 
-            msgSuccess = \
-                self.trUtf8("\nMessage catalogs updated successfully."))
+        dia = DjangoDialog(title,
+            msgSuccess=self.trUtf8("\nMessage catalogs updated successfully."))
         res = dia.startProcess(args, wd)
         if res:
             dia.exec_()
@@ -2089,9 +2085,8 @@
                             ' Aborting...'))
             return
         
-        dia = DjangoDialog(title, 
-            msgSuccess = \
-                self.trUtf8("\nMessage catalogs updated successfully."))
+        dia = DjangoDialog(title,
+            msgSuccess=self.trUtf8("\nMessage catalogs updated successfully."))
         res = dia.startProcess(args, wd)
         if res:
             dia.exec_()
@@ -2132,10 +2127,9 @@
                 self.trUtf8('No locales detected. Aborting...'))
             return
         
-        dia = DjangoDialog(title, 
-            msgSuccess = \
-                self.trUtf8("\nMessage catalogs compiled successfully."))
-        res = dia.startBatchProcesses(argsLists, wd, mergedOutput = True)
+        dia = DjangoDialog(title,
+            msgSuccess=self.trUtf8("\nMessage catalogs compiled successfully."))
+        res = dia.startBatchProcesses(argsLists, wd, mergedOutput=True)
         if res:
             dia.exec_()
             
@@ -2167,10 +2161,9 @@
                             ' Aborting...'))
             return
         
-        dia = DjangoDialog(title, 
-            msgSuccess = \
-                self.trUtf8("\nMessage catalogs compiled successfully."))
-        res = dia.startProcess(args, wd, mergedOutput = True)
+        dia = DjangoDialog(title,
+            msgSuccess=self.trUtf8("\nMessage catalogs compiled successfully."))
+        res = dia.startProcess(args, wd, mergedOutput=True)
         if res:
             dia.exec_()
             

eric ide

mercurial