Remove some more Bug.target references from libbe/bug.py
authorW. Trevor King <wking@drexel.edu>
Sun, 6 Dec 2009 00:46:11 +0000 (19:46 -0500)
committerW. Trevor King <wking@drexel.edu>
Sun, 6 Dec 2009 00:46:11 +0000 (19:46 -0500)
libbe/bug.py

index ed1bbd2bf403287086309284a1c254471d1eab62..06c2cc5f84b4035feae303d4d3f3bbafe5b4e1c6 100644 (file)
@@ -292,7 +292,6 @@ class Bug(settings_object.SavedSettingsObject):
                 ('severity', self.severity),
                 ('status', self.status),
                 ('assigned', self.assigned),
-                ('target', self.target),
                 ('reporter', self.reporter),
                 ('creator', self.creator),
                 ('created', timestring),
@@ -349,7 +348,7 @@ class Bug(settings_object.SavedSettingsObject):
         if bug.tag != 'bug':
             raise utility.InvalidXML( \
                 'bug', bug, 'root element must be <comment>')
-        tags=['uuid','short-name','severity','status','assigned','target',
+        tags=['uuid','short-name','severity','status','assigned',
               'reporter', 'creator','created','summary','extra-string']
         self.explicit_attrs = []
         uuid = None
@@ -617,7 +616,6 @@ class Bug(settings_object.SavedSettingsObject):
                     ("Severity", self.severity),
                     ("Status", self.status),
                     ("Assigned", self._setting_attr_string("assigned")),
-                    ("Target", self._setting_attr_string("target")),
                     ("Reporter", self._setting_attr_string("reporter")),
                     ("Creator", self._setting_attr_string("creator")),
                     ("Created", timestring)]
@@ -817,7 +815,6 @@ def cmp_attr(bug_1, bug_2, attr, invert=False):
 cmp_uuid = lambda bug_1, bug_2 : cmp_attr(bug_1, bug_2, "uuid")
 cmp_creator = lambda bug_1, bug_2 : cmp_attr(bug_1, bug_2, "creator")
 cmp_assigned = lambda bug_1, bug_2 : cmp_attr(bug_1, bug_2, "assigned")
-cmp_target = lambda bug_1, bug_2 : cmp_attr(bug_1, bug_2, "target")
 cmp_reporter = lambda bug_1, bug_2 : cmp_attr(bug_1, bug_2, "reporter")
 cmp_summary = lambda bug_1, bug_2 : cmp_attr(bug_1, bug_2, "summary")
 cmp_extra_strings = lambda bug_1, bug_2 : cmp_attr(bug_1, bug_2, "extra_strings")
@@ -843,8 +840,7 @@ def cmp_comments(bug_1, bug_2):
 
 DEFAULT_CMP_FULL_CMP_LIST = \
     (cmp_status, cmp_severity, cmp_assigned, cmp_time, cmp_creator,
-     cmp_reporter, cmp_target, cmp_comments, cmp_summary, cmp_uuid,
-     cmp_extra_strings)
+     cmp_reporter, cmp_comments, cmp_summary, cmp_uuid, cmp_extra_strings)
 
 class BugCompoundComparator (object):
     def __init__(self, cmp_list=DEFAULT_CMP_FULL_CMP_LIST):