[Python-checkins] r53842 - in tracker: importer/sfxmlhandlers.py instances/python-dev/initial_data.py
erik.forsberg
python-checkins at python.org
Wed Feb 21 22:40:27 CET 2007
Author: erik.forsberg
Date: Wed Feb 21 22:40:25 2007
New Revision: 53842
Modified:
tracker/importer/sfxmlhandlers.py
tracker/instances/python-dev/initial_data.py
Log:
Add 'patch' to list of initially created keywords.
Set 'patch' keyword on issues that were of artifact_type 'Patches' on
sf.
Modified: tracker/importer/sfxmlhandlers.py
==============================================================================
--- tracker/importer/sfxmlhandlers.py (original)
+++ tracker/importer/sfxmlhandlers.py Wed Feb 21 22:40:25 2007
@@ -403,6 +403,8 @@
def handle(self, fields, roundupdata):
if "Feature Requests" == fields[self.source].text:
roundupdata[self.target] = self.db.issue_type.lookup("rfe")
+ elif "Patches" == fields[self.source].text:
+ roundupdata['keywords'].append(self.db.keyword.lookup("patch"))
class GroupHandler(SFXMLHandler):
def handle(self, fields, roundupdata):
@@ -414,7 +416,7 @@
roundupdata['type'] = self.db.issue_type.lookup("rfe")
return
elif "Python 3000" == group:
- roundupdata['keywords'] = [self.db.keyword.lookup('py3k')]
+ roundupdata['keywords'].append(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 Wed Feb 21 22:40:25 2007
@@ -78,6 +78,7 @@
keyword = db.getclass("keyword")
keyword.create(name="py3k", description="Python 3000 bugs")
+keyword.create(name="patch", description="Contains patch")
#
# create the two default users
More information about the Python-checkins
mailing list