[Twisted-Python] Patch to fix issues/web/models.py from CVS
Patrick K. O'Brien
pobrien at orbtech.com
Wed Jun 4 18:13:41 MDT 2003
Index: models.py
===================================================================
RCS file: /cvs/Issues/issues/web/models.py,v
retrieving revision 1.19
diff -c -u -r1.19 models.py
--- models.py 9 May 2003 07:47:38 -0000 1.19
+++ models.py 5 Jun 2003 00:08:52 -0000
@@ -186,7 +186,7 @@
return form.FormDisplayModel(self.commentMethod)
def getPerson(self, name):
- return self.issue.issue.repository.buildPerson(name)
+ return self.issue.repository.buildPerson(name)
def wchild_postComment(self, request):
return form.FormProcessor(self.commentMethod, RedirectToParent)
@@ -218,16 +218,16 @@
assert oldFixer is not None and newFixer is not None
oldFixer = self.getPerson(oldFixer)
newFixer = self.getPerson(newFixer)
- self.issue.issue.setState(issue.InTransfer(oldFixer, newFixer))
+ self.issue.setState(issue.InTransfer(oldFixer, newFixer))
self._comment(oldFixer, comment)
def queue(self, email=None, comment=None, queue=None):
self._comment(email, comment)
assert queue is not None
try:
- q = self.issue.issue.repository.getQueue(queue)
+ q = self.issue.repository.getQueue(queue)
except repo.NoSuchQueue:
- q = self.issue.issue.repository.buildQueue(queue)
+ q = self.issue.repository.buildQueue(queue)
self.issue.setState(issue.InQueue(q))
def converse(self, fixer=None, finder=None):
Also attached as issues_models.diff.
--
Patrick K. O'Brien
Orbtech http://www.orbtech.com/web/pobrien
-----------------------------------------------
"Your source for Python programming expertise."
-----------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: issues_models.diff
Type: text/x-diff
Size: 1516 bytes
Desc: not available
URL: </pipermail/twisted-python/attachments/20030604/c5ffcb08/attachment-0002.diff>
More information about the Twisted-Python
mailing list