aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDafydd Harries <daf@rhydd.org>2013-03-18 16:41:27 -0400
committerDafydd Harries <daf@rhydd.org>2013-03-18 16:41:27 -0400
commit7a0b9e4d739d95a566d3244414dfc8c6232c61f0 (patch)
tree83bcf8c872eab4c7e8510aecc09d70b3ed7f9e5a
parent86edb92f5eaf68ef0068545a7b818f9d7eeafa6c (diff)
add submission fields to entry template
-rw-r--r--export.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/export.py b/export.py
index 2674668..4b63483 100644
--- a/export.py
+++ b/export.py
@@ -1,5 +1,6 @@
# encoding: utf8
+import datetime
import re
import sys
import textwrap
@@ -27,6 +28,9 @@ def concat(xss):
return all
+def today():
+ return datetime.datetime.now().strftime('%Y-%m-%d')
+
class Template(object):
def __init__(self, name, values):
self.name = name
@@ -174,7 +178,9 @@ def export(pkgs, descs, cps, cpf, name):
('VCS checkout command', ''),
('Computer languages', ', '.join(langs)),
('Status', ''),
- ('Is GNU', 'No')])
+ ('Is GNU', 'No'),
+ ('Submitted by', 'Debian import'),
+ ('Submitted date', today())])
people = []
res = []