|
a/Allura/allura/app.py |
|
b/Allura/allura/app.py |
|
... |
|
... |
106 |
:var bool searchable: toggle if the search box appears in the left menu
|
106 |
:var bool searchable: toggle if the search box appears in the left menu
|
107 |
:var permissions: a list of named permissions used by the app
|
107 |
:var permissions: a list of named permissions used by the app
|
108 |
:var sitemap: a list of :class:`SitemapEntries <allura.app.SitemapEntry>` to create an app navigation.
|
108 |
:var sitemap: a list of :class:`SitemapEntries <allura.app.SitemapEntry>` to create an app navigation.
|
109 |
:var bool installable: toggle if the app can be installed in a project
|
109 |
:var bool installable: toggle if the app can be installed in a project
|
110 |
:var bool hidden: toggle if the app should be hidden from the list of tools
|
110 |
:var bool hidden: toggle if the app should be hidden from the list of tools
|
|
|
111 |
:var tool_description: tool's description that will be displayed to forge users
|
111 |
:var Controller self.root: the root Controller used for the app
|
112 |
:var Controller self.root: the root Controller used for the app
|
112 |
:var Controller self.api_root: a Controller used for API access at /rest/<neighborhood>/<project>/<app>/
|
113 |
:var Controller self.api_root: a Controller used for API access at /rest/<neighborhood>/<project>/<app>/
|
113 |
:var Controller self.admin: a Controller used in the admin interface
|
114 |
:var Controller self.admin: a Controller used in the admin interface
|
|
|
115 |
:var icons: a dictionary mapping icon sizes to application-specific icons paths
|
114 |
"""
|
116 |
"""
|
115 |
|
117 |
|
116 |
__version__ = None
|
118 |
__version__ = None
|
117 |
config_options = [
|
119 |
config_options = [
|
118 |
ConfigOption('mount_point', str, 'app'),
|
120 |
ConfigOption('mount_point', str, 'app'),
|
|
... |
|
... |
129 |
searchable = False
|
131 |
searchable = False
|
130 |
DiscussionClass = model.Discussion
|
132 |
DiscussionClass = model.Discussion
|
131 |
PostClass = model.Post
|
133 |
PostClass = model.Post
|
132 |
AttachmentClass = model.DiscussionAttachment
|
134 |
AttachmentClass = model.DiscussionAttachment
|
133 |
tool_label='Tool'
|
135 |
tool_label='Tool'
|
|
|
136 |
tool_description="This is a tool for Allura forge."
|
134 |
default_mount_label='Tool Name'
|
137 |
default_mount_label='Tool Name'
|
135 |
default_mount_point='tool'
|
138 |
default_mount_point='tool'
|
136 |
ordinal=0
|
139 |
ordinal=0
|
137 |
hidden = False
|
140 |
hidden = False
|
138 |
icons={
|
141 |
icons={
|