• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

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

allura


Commit MetaInfo

修訂8987f9b88c7e733db5306e5b8a4407c719919fe2 (tree)
時間2012-05-04 02:21:02
作者Cory Johns <johnsca@geek...>
CommiterYaroslav Luzin

Log Message

[#3970] Changed to use nhbd project for audit log when noting change of nhbd tracking ID

Signed-off-by: Cory Johns <johnsca@geek.net>

Change Summary

差異

--- a/Allura/allura/controllers/project.py
+++ b/Allura/allura/controllers/project.py
@@ -467,6 +467,7 @@ class NeighborhoodAdminController(object):
467467 self.neighborhood.allow_browse = kw.get('allow_browse', False)
468468 tracking_id = kw.get('tracking_id', '')
469469 if tracking_id != self.neighborhood.tracking_id:
470+ c.project = self.neighborhood.neighborhood_project
470471 M.AuditLog.log('update neighborhood tracking_id')
471472 self.neighborhood.tracking_id = tracking_id
472473 if icon is not None and icon != '':
--- a/Allura/allura/model/auth.py
+++ b/Allura/allura/model/auth.py
@@ -622,10 +622,7 @@ class AuditLog(object):
622622 message = message % args
623623 elif kwargs:
624624 message = message % kwargs
625- if project:
626- return cls(project_id=project._id, user_id=user._id, url=url, message=message)
627- else:
628- return cls(user_id=user._id, url=url, message=message)
625+ return cls(project_id=project._id, user_id=user._id, url=url, message=message)
629626
630627 main_orm_session.mapper(AuditLog, audit_log, properties=dict(
631628 project_id=ForeignIdProperty('Project'),