ProjectDjango/Project.py

branch
eric7
changeset 204
ef2a6680ad2a
parent 203
07abb6af9048
equal deleted inserted replaced
203:07abb6af9048 204:ef2a6680ad2a
2873 if not dryRun: 2873 if not dryRun:
2874 # Append generated migrations only if no dry-run was done. 2874 # Append generated migrations only if no dry-run was done.
2875 migrationFiles = glob.glob( 2875 migrationFiles = glob.glob(
2876 os.path.join( 2876 os.path.join(
2877 self.__ericProject.getProjectPath(), 2877 self.__ericProject.getProjectPath(),
2878 "**/[0-9][0-9][0-9][0-9]*.py" 2878 "**/[0-9][0-9][0-9][0-9]*.py",
2879 ), 2879 ),
2880 recursive=True, 2880 recursive=True,
2881 ) 2881 )
2882 for migrationFile in migrationFiles: 2882 for migrationFile in migrationFiles:
2883 self.__ericProject.appendFile(migrationFile) 2883 self.__ericProject.appendFile(migrationFile)
3552 ) 3552 )
3553 res = dia.startBatchProcesses(argsLists, wd) 3553 res = dia.startBatchProcesses(argsLists, wd)
3554 if res: 3554 if res:
3555 dia.exec() 3555 dia.exec()
3556 3556
3557 def updateCatalogs(self, filenames): # noqa: U100 3557 def updateCatalogs(self, filenames): # noqa: U-100
3558 """ 3558 """
3559 Public method to update the message catalogs. 3559 Public method to update the message catalogs.
3560 3560
3561 @param filenames list of filenames (not used) 3561 @param filenames list of filenames (not used)
3562 @type list of str 3562 @type list of str
3587 ) 3587 )
3588 res = dia.startProcess(args, wd) 3588 res = dia.startProcess(args, wd)
3589 if res: 3589 if res:
3590 dia.exec() 3590 dia.exec()
3591 3591
3592 def updateCatalogsWithObsolete(self, filenames): # noqa: U100 3592 def updateCatalogsWithObsolete(self, filenames): # noqa: U-100
3593 """ 3593 """
3594 Public method to update the message catalogs keeping obsolete messages. 3594 Public method to update the message catalogs keeping obsolete messages.
3595 3595
3596 @param filenames list of filenames (not used) 3596 @param filenames list of filenames (not used)
3597 @type list of str 3597 @type list of str
3675 for fileName in entry[2]: 3675 for fileName in entry[2]:
3676 fullName = os.path.join(entry[0], fileName) 3676 fullName = os.path.join(entry[0], fileName)
3677 if fullName.endswith(".mo"): 3677 if fullName.endswith(".mo"):
3678 self.__ericProject.appendFile(fullName) 3678 self.__ericProject.appendFile(fullName)
3679 3679
3680 def compileCatalogs(self, filenames): # noqa: U100 3680 def compileCatalogs(self, filenames): # noqa: U-100
3681 """ 3681 """
3682 Public method to compile the message catalogs. 3682 Public method to compile the message catalogs.
3683 3683
3684 @param filenames list of filenames (not used) 3684 @param filenames list of filenames (not used)
3685 @type list of str 3685 @type list of str

eric ide

mercurial