[Python-checkins] r53081 - in tracker: importer/sfxml2roundup.py importer/sfxmlhandlers.py instances/python-dev/initial_data.py

erik.forsberg python-checkins at python.org
Tue Dec 19 21:51:07 CET 2006


Author: erik.forsberg
Date: Tue Dec 19 21:51:06 2006
New Revision: 53081

Modified:
   tracker/importer/sfxml2roundup.py
   tracker/importer/sfxmlhandlers.py
   tracker/instances/python-dev/initial_data.py
Log:

Add py3k as keyword during initialization.

Set keyword = [py3k] on issues that have Group = 'Python 3000'.


Modified: tracker/importer/sfxml2roundup.py
==============================================================================
--- tracker/importer/sfxml2roundup.py	(original)
+++ tracker/importer/sfxml2roundup.py	Tue Dec 19 21:51:06 2006
@@ -49,7 +49,7 @@
                 sfxmlhandlers.GroupHandler(db, "artifact_group_id", "versions"),
                 ]
 
-    roundupdata = {'files':[]}
+    roundupdata = {'files':[], 'keywords':[]}
     fields = {}
                  
     for field in artifact.findall("field"):

Modified: tracker/importer/sfxmlhandlers.py
==============================================================================
--- tracker/importer/sfxmlhandlers.py	(original)
+++ tracker/importer/sfxmlhandlers.py	Tue Dec 19 21:51:06 2006
@@ -413,6 +413,8 @@
         elif "Feature Request" == group:
             roundupdata['type'] = self.db.issue_type.lookup("rfe")
             return
+        elif "Python 3000" == group:
+            roundupdata['keywords'] = [self.db.keyword.lookup('py3k')]
         try:
             version = self.db.version.lookup(group)
             roundupdata[self.target] = version

Modified: tracker/instances/python-dev/initial_data.py
==============================================================================
--- tracker/instances/python-dev/initial_data.py	(original)
+++ tracker/instances/python-dev/initial_data.py	Tue Dec 19 21:51:06 2006
@@ -76,6 +76,9 @@
 resolution.create(name='wont fix', order='10')
 resolution.create(name='works for me', order='11')
 
+keyword = db.getclass("keyword")
+keyword.create(name="py3k", description="Python 3000 bugs")
+
 #
 # create the two default users
 user = db.getclass('user')


More information about the Python-checkins mailing list