Switch to unified view
a/Allura/allura/model/neighborhood.py | b/Allura/allura/model/neighborhood.py | ||
---|---|---|---|
... |
... |
||
111 | return self.css |
111 | return self.css |
112 | return "" |
112 | return "" |
113 | 113 | ||
114 | @property |
114 | @property |
115 | def has_home_tool(self): |
115 | def has_home_tool(self): |
116 | return self.neighborhood_project.app_config('home') is not None |
116 | return (self.neighborhood_project |
117 | .app_config_by_tool_type('home') is not None) |
||
117 | 118 | ||
118 | @property |
119 | @property |
119 | def icon(self): |
120 | def icon(self): |
120 | return NeighborhoodFile.query.get(neighborhood_id=self._id) |
121 | return NeighborhoodFile.query.get(neighborhood_id=self._id) |
121 | 122 |