• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

allura


Commit MetaInfo

修订版86872890fe294bc9d746719d4be1c1be7c060063 (tree)
时间2010-05-14 01:02:20
作者Rick Copeland <rcopeland@geek...>
CommiterRick Copeland

Log Message

Fix broken test

更改概述

差异

--- a/pyforge/pyforge/controllers/discuss.py
+++ b/pyforge/pyforge/controllers/discuss.py
@@ -202,14 +202,12 @@ class PostController(object):
202202 if result:
203203 redirect(result[0].url())
204204 else:
205- raise exc.HTTPNotFound
205+ redirect('..')
206206
207207 @h.vardec
208208 @expose('pyforge.templates.discussion.post')
209209 @validate(pass_validator)
210210 def index(self, version=None, **kw):
211- if self.post is None:
212- redirect('..')
213211 c.post = self.W.post
214212 if request.method == 'POST':
215213 require(has_artifact_access('moderate', self.post))