changeset 305:fcbdecb0f9e0

Update codingstyle for pep8
author Björn Ricks <bjoern.ricks@intevation.de>
date Fri, 11 Oct 2013 11:01:12 +0200
parents c7f9997a5492
children afe36c18417f
files getan/config.py
diffstat 1 files changed, 18 insertions(+), 18 deletions(-) [+]
line wrap: on
line diff
--- a/getan/config.py	Fri Oct 11 10:34:07 2013 +0200
+++ b/getan/config.py	Fri Oct 11 11:01:12 2013 +0200
@@ -15,6 +15,7 @@
 
 logger = None
 
+
 def initialize(level=logging.INFO, filename="getan.log"):
     setup_logging(level, filename)
     setup_locale()
@@ -90,24 +91,23 @@
     KEY_PROJECT_EDIT = "project_edit"
 
     DEFAULT_KEYBINDINGS = {
-            KEY_SWITCH_TIME_MODE : "f1",
-            KEY_SWITCH_PROJECT_ORDER : "f2",
-            KEY_SWITCH_LISTS : "tab",
-            KEY_ENTER : "enter",
-            KEY_INSERT : "insert",
-            KEY_DELETE : "delete",
-            KEY_ESCAPE : "esc",
-            KEY_ENTRY_UP : "up",
-            KEY_ENTRY_DOWN : "down",
-            KEY_ENTRY_DELETE : "d",
-            KEY_ENTRY_MOVE : "m",
-            KEY_ENTRY_EDIT : "e",
-            KEY_ADD_TIME : "+",
-            KEY_SUBTRACT_TIME : "-",
-            KEY_PROJECT_PAUSE : " ",
-            KEY_PROJECT_EDIT : "backspace",
-            }
-
+        KEY_SWITCH_TIME_MODE: "f1",
+        KEY_SWITCH_PROJECT_ORDER: "f2",
+        KEY_SWITCH_LISTS: "tab",
+        KEY_ENTER: "enter",
+        KEY_INSERT: "insert",
+        KEY_DELETE: "delete",
+        KEY_ESCAPE: "esc",
+        KEY_ENTRY_UP: "up",
+        KEY_ENTRY_DOWN: "down",
+        KEY_ENTRY_DELETE: "d",
+        KEY_ENTRY_MOVE: "m",
+        KEY_ENTRY_EDIT: "e",
+        KEY_ADD_TIME: "+",
+        KEY_SUBTRACT_TIME: "-",
+        KEY_PROJECT_PAUSE: " ",
+        KEY_PROJECT_EDIT: "backspace",
+    }
 
     def __init__(self, config):
         logger.debug("Keybindings are: %r" % config.items(self.KEYBINDINGS))
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)