• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

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

allura


Commit MetaInfo

Revisionc56e599a1a1fd3ad079d0634ef3f1fde9bf4deda (tree)
Zeit2012-06-27 03:58:36
AutorDave Brondsema <dbrondsema@geek...>
CommiterDave Brondsema

Log Message

[#4208] rename has_home_tool method

Ändern Zusammenfassung

Diff

--- a/Allura/allura/command/create_neighborhood.py
+++ b/Allura/allura/command/create_neighborhood.py
@@ -53,7 +53,7 @@ class UpdateNeighborhoodCommand(base.Command):
5353 else:
5454 home_tool_active = False
5555
56- if home_tool_active == nb.has_home_project:
56+ if home_tool_active == nb.has_home_tool:
5757 return
5858
5959 p = nb.neighborhood_project
--- a/Allura/allura/controllers/project.py
+++ b/Allura/allura/controllers/project.py
@@ -91,7 +91,7 @@ class NeighborhoodController(object):
9191 c.project = self.neighborhood.neighborhood_project
9292 if self.neighborhood.redirect:
9393 redirect(self.neighborhood.redirect)
94- if not self.neighborhood.has_home_project:
94+ if not self.neighborhood.has_home_tool:
9595 mount = c.project.first_mount()
9696 if mount is not None:
9797 if 'ac' in mount:
--- a/Allura/allura/model/neighborhood.py
+++ b/Allura/allura/model/neighborhood.py
@@ -109,7 +109,7 @@ class Neighborhood(MappedClass):
109109 return ""
110110
111111 @property
112- def has_home_project(self):
112+ def has_home_tool(self):
113113 return self.neighborhood_project.app_config('home') is not None
114114
115115 @property
--- a/Allura/allura/templates/widgets/neighborhood_overview_form.html
+++ b/Allura/allura/templates/widgets/neighborhood_overview_form.html
@@ -5,7 +5,7 @@
55 <div class="grid-14">{{widget.display_field(widget.fields.name)}}</div>
66 <label class="grid-4">Redirect</label>
77 <div class="grid-14">{{widget.display_field(widget.fields.redirect)}}</div>
8- {% if value.has_home_project %}
8+ {% if value.has_home_tool %}
99 <label class="grid-4">Home Content (HTML)</label>
1010 <div class="grid-14">{{widget.display_field(widget.fields.homepage)}}</div>
1111 <label class="grid-4">Allow Browsing</label>
--- a/Allura/allura/tests/test_commands.py
+++ b/Allura/allura/tests/test_commands.py
@@ -123,10 +123,10 @@ def test_update_neighborhood():
123123 cmd.run([test_config, 'Projects', 'True'])
124124 cmd.command()
125125 nb = M.Neighborhood.query.get(name='Projects')
126- assert nb.has_home_project == True
126+ assert nb.has_home_tool == True
127127
128128 cmd = create_neighborhood.UpdateNeighborhoodCommand('update-neighborhood')
129129 cmd.run([test_config, 'Projects', 'False'])
130130 cmd.command()
131131 nb = M.Neighborhood.query.get(name='Projects')
132- assert nb.has_home_project == False
132+ assert nb.has_home_tool == False