|
a/Allura/allura/app.py |
|
b/Allura/allura/app.py |
|
... |
|
... |
216 |
'configure': 'Set label and options. Requires admin permission.',
|
216 |
'configure': 'Set label and options. Requires admin permission.',
|
217 |
'admin': 'Set permissions.',
|
217 |
'admin': 'Set permissions.',
|
218 |
}
|
218 |
}
|
219 |
installable = True
|
219 |
installable = True
|
220 |
searchable = False
|
220 |
searchable = False
|
|
|
221 |
exportable = False
|
221 |
DiscussionClass = model.Discussion
|
222 |
DiscussionClass = model.Discussion
|
222 |
PostClass = model.Post
|
223 |
PostClass = model.Post
|
223 |
AttachmentClass = model.DiscussionAttachment
|
224 |
AttachmentClass = model.DiscussionAttachment
|
224 |
tool_label = 'Tool'
|
225 |
tool_label = 'Tool'
|
225 |
tool_description = "This is a tool for Allura forge."
|
226 |
tool_description = "This is a tool for Allura forge."
|
|
... |
|
... |
540 |
message_id=message_id,
|
541 |
message_id=message_id,
|
541 |
parent_id=parent_id,
|
542 |
parent_id=parent_id,
|
542 |
text=text,
|
543 |
text=text,
|
543 |
subject=message['headers'].get('Subject', 'no subject'))
|
544 |
subject=message['headers'].get('Subject', 'no subject'))
|
544 |
|
545 |
|
|
|
546 |
def bulk_export(self):
|
|
|
547 |
"""Export all artifacts in the tool into json file.
|
|
|
548 |
|
|
|
549 |
Set exportable to True for applications implementing this.
|
|
|
550 |
"""
|
|
|
551 |
raise NotImplementedError, 'bulk_export'
|
|
|
552 |
|
545 |
|
553 |
|
546 |
class DefaultAdminController(BaseController):
|
554 |
class DefaultAdminController(BaseController):
|
547 |
"""Provides basic admin functionality for an :class:`Application`.
|
555 |
"""Provides basic admin functionality for an :class:`Application`.
|
548 |
|
556 |
|
549 |
To add more admin functionality for your Application, extend this
|
557 |
To add more admin functionality for your Application, extend this
|