[#122] Renamed forum plugin to discussion

Jenny Steele Jenny Steele 2010-03-30

1 2 > >> (Page 1 of 2)
removed ForgeForum
removed ForgeForum/forgeforum
removed ForgeForum/forgeforum/controllers
removed ForgeForum/forgeforum/model
removed ForgeForum/forgeforum/templates
removed ForgeForum/forgeforum/tests
removed ForgeForum/forgeforum/tests/functional
removed ForgeForum/forgeforum/widgets
changed pyforge/docs/install.rst
changed pyforge/pyforge/websetup/bootstrap.py
copied ForgeForum/forgeforum/controllers/__init__.py -> ForgeDiscussion/forgediscussion/controllers/__init__.py
copied ForgeForum/forgeforum/controllers/forum.py -> ForgeDiscussion/forgediscussion/controllers/forum.py
copied ForgeForum/forgeforum/controllers/root.py -> ForgeDiscussion/forgediscussion/controllers/root.py
copied ForgeForum/forgeforum/model/__init__.py -> ForgeDiscussion/forgediscussion/model/__init__.py
copied ForgeForum/forgeforum/model/artifacts.py -> ForgeDiscussion/forgediscussion/model/artifacts.py
copied ForgeForum/forgeforum/model/forum.py -> ForgeDiscussion/forgediscussion/model/forum.py
copied ForgeForum/forgeforum/static/ForgeForum/js/comments.js -> ForgeDiscussion/forgediscussion/static/ForgeForum/js/comments.js
copied ForgeForum/forgeforum/templates/__init__.py -> ForgeDiscussion/forgediscussion/templates/__init__.py
copied ForgeForum/forgeforum/templates/admin.html -> ForgeDiscussion/forgediscussion/templates/admin.html
copied ForgeForum/forgeforum/templates/artifact.html -> ForgeDiscussion/forgediscussion/templates/artifact.html
copied ForgeForum/forgeforum/templates/forum.html -> ForgeDiscussion/forgediscussion/templates/forum.html
copied ForgeForum/forgeforum/templates/index.html -> ForgeDiscussion/forgediscussion/templates/index.html
copied ForgeForum/forgeforum/templates/lib.html -> ForgeDiscussion/forgediscussion/templates/lib.html
copied ForgeForum/forgeforum/templates/moderate.html -> ForgeDiscussion/forgediscussion/templates/moderate.html
copied ForgeForum/forgeforum/templates/prefs.html -> ForgeDiscussion/forgediscussion/templates/prefs.html
ForgeForum
File was removed.
ForgeForum/forgeforum
File was removed.
ForgeForum/forgeforum/model
File was removed.
ForgeForum/forgeforum/tests
File was removed.
ForgeForum/forgeforum/widgets
File was removed.
pyforge/docs/install.rst Diff Switch to side-by-side view
Loading...
pyforge/pyforge/websetup/bootstrap.py Diff Switch to side-by-side view
Loading...
ForgeForum/forgeforum/controllers/forum.py to ForgeDiscussion/forgediscussion/controllers/forum.py
--- a/ForgeForum/forgeforum/controllers/forum.py
+++ b/ForgeDiscussion/forgediscussion/controllers/forum.py
@@ -14,8 +14,8 @@
 from pyforge.controllers import DiscussionController, ThreadController, PostController
 from pyforge.lib.widgets import discuss as DW
 
-from forgeforum import model
-from forgeforum import widgets as FW
+from forgediscussion import model
+from forgediscussion import widgets as FW
 
 log = logging.getLogger(__name__)
 
ForgeForum/forgeforum/controllers/root.py to ForgeDiscussion/forgediscussion/controllers/root.py
--- a/ForgeForum/forgeforum/controllers/root.py
+++ b/ForgeDiscussion/forgediscussion/controllers/root.py
@@ -14,8 +14,8 @@
 from pyforge.lib import helpers as h
 
 from .forum import ForumController
-from forgeforum import model
-from forgeforum import widgets as FW
+from forgediscussion import model
+from forgediscussion import widgets as FW
 
 log = logging.getLogger(__name__)
 
@@ -25,7 +25,7 @@
         forum_subscription_form=FW.ForumSubscriptionForm()
         announcements_table=FW.AnnouncementsTable()
 
-    @expose('forgeforum.templates.index')
+    @expose('forgediscussion.templates.index')
     def index(self):
         c.forum_subscription_form = self.W.forum_subscription_form
         c.announcements_table = self.W.announcements_table
@@ -36,7 +36,7 @@
                 parent_id=None)),
                     announcements=announcements)
                   
-    @expose('forgeforum.templates.search')
+    @expose('forgediscussion.templates.search')
     @validate(dict(q=validators.UnicodeString(if_empty=None),
                    history=validators.StringBool(if_empty=False)))
     def search(self, q=None, history=None):
ForgeForum/forgeforum/model/forum.py to ForgeDiscussion/forgediscussion/model/forum.py
--- a/ForgeForum/forgeforum/model/forum.py
+++ b/ForgeDiscussion/forgediscussion/model/forum.py
@@ -15,8 +15,8 @@
 
 class Forum(M.Discussion):
     class __mongometa__:
-        name='forum'
-    type_s = 'Forum'
+        name='discussion'
+    type_s = 'Discussion'
 
     parent_id = FieldProperty(schema.ObjectId, if_missing=None)
     threads = RelationProperty('ForumThread')
ForgeForum/forgeforum/templates/admin.html to ForgeDiscussion/forgediscussion/templates/admin.html
--- a/ForgeForum/forgeforum/templates/admin.html
+++ b/ForgeDiscussion/forgediscussion/templates/admin.html
@@ -13,7 +13,7 @@
   </head>
   
   <body>
-    <h1>Forum Admin for ${c.project.name}: $app.config.options.mount_point </h1>
+    <h1 class="title">Discussion Admin for ${c.project.name}: $app.config.options.mount_point </h1>
     <div id="app-config" py:if="len(app.config_options) > 1">
       <h3>Config Options</h3>
       <form method="post" action="configure">
ForgeForum/forgeforum/templates/forum.html to ForgeDiscussion/forgediscussion/templates/forum.html
--- a/ForgeForum/forgeforum/templates/forum.html
+++ b/ForgeDiscussion/forgediscussion/templates/forum.html
@@ -9,7 +9,7 @@
 
   <head>
     <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
-    <title>ForgeForum Index Page</title>
+    <title>ForgeDiscussion Index Page</title>
   </head>
   
   <body>
ForgeForum/forgeforum/templates/index.html to ForgeDiscussion/forgediscussion/templates/index.html
--- a/ForgeForum/forgeforum/templates/index.html
+++ b/ForgeDiscussion/forgediscussion/templates/index.html
@@ -9,11 +9,11 @@
 
   <head>
     <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
-    <title>ForgeForum Index Page</title>
+    <title>ForgeDiscussion Index Page</title>
   </head>
   
   <body>
-    <h1>Welcome to ForgeForum</h1>
+    <h1 class="title">Welcome to ForgeDiscussion</h1>
     <h2>Project: $c.project.shortname</h2>
     <py:if test="announcements">
       <h3>Announcements</h3>
ForgeForum/forgeforum/templates/moderate.html to ForgeDiscussion/forgediscussion/templates/moderate.html
--- a/ForgeForum/forgeforum/templates/moderate.html
+++ b/ForgeDiscussion/forgediscussion/templates/moderate.html
@@ -9,7 +9,7 @@
 
   <head>
     <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
-    <title>ForgeForum Moderation Page</title>
+    <title>ForgeDiscussion Moderation Page</title>
   <?python
      from pyforge.lib.security import has_artifact_access
      ?>
@@ -20,7 +20,7 @@
       <ul>${crumbs(forum.breadcrumbs())}</ul>
     </div>
 
-    <h1>Moderation Queue</h1>
+    <h1 class="title">Moderation Queue</h1>
     <div>
       Displaying page $pgnum / $pages
     </div>
1 2 > >> (Page 1 of 2)