changeset 398:5f557bd2cfe0

Scanning for workpackage string is now closer to what zeitvertexung does.
author Bernhard Reiter <bernhard@intevation.de>
date Mon, 30 Nov 2015 16:59:52 +0100
parents 03f3a73350ef
children 67dc21692bfa
files TODO getan/project.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/TODO	Mon Nov 30 12:43:08 2015 +0100
+++ b/TODO	Mon Nov 30 16:59:52 2015 +0100
@@ -1,8 +1,8 @@
-20151130 BER: Think about the workpackage regex, right now workpackages with
- points are not possible.
 20151130 BER: templates/zeiterfassung2: Really sort by date, right now the 
   sorting it sometimes skewed if the week wraps around the end of the month.
 
+Older:
+
 - Create a 'Help-Widget' to give the user an information about all possible
   keys.
 
--- a/getan/project.py	Mon Nov 30 12:43:08 2015 +0100
+++ b/getan/project.py	Mon Nov 30 16:59:52 2015 +0100
@@ -82,7 +82,7 @@
 
 class Entry(object):
 
-    WORKPACKAGE = re.compile("^\[(\w*)(\s|\])")
+    WORKPACKAGE = re.compile("^\[([^\s\]]+)(\s|\])")
 
     def __init__(self, id, project_id, start, end, desc):
         self.id = id
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)