Home | History | Annotate | Download | only in bugzilla

Lines Matching refs:self

38     def __init__(self, attachment_dictionary, bug):
39 self._attachment_dictionary = attachment_dictionary
40 self._bug = bug
41 self._reviewer = None
42 self._committer = None
44 def _bugzilla(self):
45 return self._bug._bugzilla
47 def id(self):
48 return int(self._attachment_dictionary.get("id"))
50 def attacher_is_committer(self):
51 return self._bugzilla.committers.committer_by_email(
54 def attacher_email(self):
55 return self._attachment_dictionary.get("attacher_email")
57 def bug(self):
58 return self._bug
60 def bug_id(self):
61 return int(self._attachment_dictionary.get("bug_id"))
63 def is_patch(self):
64 return not not self._attachment_dictionary.get("is_patch")
66 def is_obsolete(self):
67 return not not self._attachment_dictionary.get("is_obsolete")
69 def is_rollout(self):
70 return self.name().startswith(self.rollout_preamble)
72 def name(self):
73 return self._attachment_dictionary.get("name")
75 def attach_date(self):
76 return self._attachment_dictionary.get("attach_date")
78 def review(self):
79 return self._attachment_dictionary.get("review")
81 def commit_queue(self):
82 return self._attachment_dictionary.get("commit-queue")
84 def url(self):
86 # self._bugzilla().attachment_url_for_id(self.id()). scm_unittest.py
88 return self._attachment_dictionary.get("url")
90 def contents(self):
92 return self._bug._bugzilla.fetch_attachment_contents(self.id())
94 def _validate_flag_value(self, flag):
95 email = self._attachment_dictionary.get("%s_email" % flag)
98 committer = getattr(self._bugzilla().committers,
103 self._attachment_dictionary['id'],
104 self._attachment_dictionary['bug_id'], flag, email))
106 def reviewer(self):
107 if not self._reviewer:
108 self._reviewer = self._validate_flag_value("reviewer")
109 return self._reviewer
111 def committer(self):
112 if not self._committer:
113 self._committer = self._validate_flag_value("committer")
114 return self._committer