• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

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

allura


Commit MetaInfo

Revision271fdc4e35465af72f761bd513e260e07f0b2328 (tree)
Time2012-06-22 06:04:24
AuthorCory Johns <johnsca@geek...>
CommiterCory Johns

Log Message

[#4391] Added migration to install activity tool

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

Change Summary

Incremental Difference

--- a/ForgeActivity/forgeactivity/main.py
+++ b/ForgeActivity/forgeactivity/main.py
@@ -18,6 +18,7 @@ log = logging.getLogger(__name__)
1818 class ForgeActivityApp(Application):
1919 """Project Activity page for projects."""
2020 __version__ = version.__version__
21+ default_mount_point = 'activity'
2122 installable = False
2223 searchable = False
2324 hidden = True
--- /dev/null
+++ b/scripts/migrations/026-install-activity-tool.py
@@ -0,0 +1,19 @@
1+import logging
2+
3+from ming.orm import ThreadLocalORMSession
4+
5+from allura.lib import utils
6+from allura import model as M
7+
8+log = logging.getLogger(__name__)
9+
10+def main():
11+ for chunk in utils.chunked_find(M.Project):
12+ for p in chunk:
13+ p.install_app('activity')
14+
15+ ThreadLocalORMSession.flush_all()
16+ ThreadLocalORMSession.close_all()
17+
18+if __name__ == '__main__':
19+ main()