Commit 21747b97d25b20db6b15bd1be5ae117d6d805a3f
1 parent
1a511c6c
Exists in
add_super_archives_plugin
Add super_archives plugin
Signed-off-by: Gustavo Jaruga Cruz <darksshades@gmail.com> Signed-off-by: Lucas Moura <lucas.moura123@gmail.com>
Showing
2 changed files
with
34 additions
and
0 deletions
Show diff stats
cookbooks/colab/recipes/default.rb
@@ -161,6 +161,13 @@ template '/etc/colab/plugins.d/noosfero.py' do | @@ -161,6 +161,13 @@ template '/etc/colab/plugins.d/noosfero.py' do | ||
161 | variables(:get_private_token => get_private_token) | 161 | variables(:get_private_token => get_private_token) |
162 | end | 162 | end |
163 | 163 | ||
164 | +template '/etc/colab/plugins.d/super_archives.py' do | ||
165 | + owner 'root' | ||
166 | + group 'colab' | ||
167 | + mode 0640 | ||
168 | + notifies :restart, 'service[colab]' | ||
169 | +end | ||
170 | + | ||
164 | template '/etc/colab/plugins.d/spb.py' do | 171 | template '/etc/colab/plugins.d/spb.py' do |
165 | owner 'root' | 172 | owner 'root' |
166 | group 'colab' | 173 | group 'colab' |
@@ -0,0 +1,27 @@ | @@ -0,0 +1,27 @@ | ||
1 | + | ||
2 | +from django.utils.translation import ugettext_lazy as _ | ||
3 | +from colab.plugins.utils.menu import colab_url_factory | ||
4 | + | ||
5 | +name = 'colab_superarchives' | ||
6 | +verbose_name = 'Super Archives' | ||
7 | + | ||
8 | +urls = { | ||
9 | + 'include': 'colab_superarchives.urls', | ||
10 | + 'prefix': '^archives/', | ||
11 | +} | ||
12 | + | ||
13 | +menu_title = _('Groups') | ||
14 | + | ||
15 | +url = colab_url_factory('archives') | ||
16 | + | ||
17 | +menu_urls = ( | ||
18 | + url(display=_('Groups'), viewname='thread_list', auth=False), | ||
19 | +) | ||
20 | + | ||
21 | +# Imported settings from colab | ||
22 | +LOCALE_PATHS = ('colab_superarchives/locale',) | ||
23 | + | ||
24 | +# Super Archives | ||
25 | +SUPER_ARCHIVES_PATH = '/var/lib/mailman/archives/private' | ||
26 | +SUPER_ARCHIVES_EXCLUDE = [] | ||
27 | +SUPER_ARCHIVES_LOCK_FILE = '/var/lock/colab/import_emails.lock' |