Code vereinfachen
							parent
							
								
									01781e0760
								
							
						
					
					
						commit
						b8f4fda099
					
				|  | @ -9,7 +9,7 @@ from functions import DatenpolFunctions | ||||||
| 
 | 
 | ||||||
| def main(): | def main(): | ||||||
|     def _usage(): |     def _usage(): | ||||||
|         print '\nVerwendung: dp <environment> <command> [<module_name>/<setup_function>]' |         print 'Verwendung: dp <environment> <command> [<module_name>/<setup_function>]' | ||||||
|         print '            dp list-envs\n' |         print '            dp list-envs\n' | ||||||
|         print 'Commands:' |         print 'Commands:' | ||||||
|         print '   create                     Neue Datenbank erstellen' |         print '   create                     Neue Datenbank erstellen' | ||||||
|  | @ -185,8 +185,8 @@ def main(): | ||||||
|         ] |         ] | ||||||
| 
 | 
 | ||||||
|     if cmd == 'setup_part': |     if cmd == 'setup_part': | ||||||
|         if (argv[2] == 'info') or (not (argv[2] in setup_methods)): |         if (argv[2] == 'info') or (argv[2] not in setup_methods): | ||||||
|             print '\nVerfügbare Setup-Schritte: ' + str(setup_methods) + '\n' |             print 'Verfügbare Setup-Schritte:', ', '.join(setup_methods) | ||||||
|             return |             return | ||||||
| 
 | 
 | ||||||
|         methods = [ |         methods = [ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue