diff --git a/cookbooks/colab/recipes/default.rb b/cookbooks/colab/recipes/default.rb index 68f75ba..5d8d6b6 100644 --- a/cookbooks/colab/recipes/default.rb +++ b/cookbooks/colab/recipes/default.rb @@ -161,6 +161,13 @@ template '/etc/colab/plugins.d/noosfero.py' do variables(:get_private_token => get_private_token) end +template '/etc/colab/plugins.d/super_archives.py' do + owner 'root' + group 'colab' + mode 0640 + notifies :restart, 'service[colab]' +end + template '/etc/colab/plugins.d/spb.py' do owner 'root' group 'colab' diff --git a/cookbooks/colab/templates/super_archives.py.erb b/cookbooks/colab/templates/super_archives.py.erb new file mode 100644 index 0000000..664e44c --- /dev/null +++ b/cookbooks/colab/templates/super_archives.py.erb @@ -0,0 +1,27 @@ + +from django.utils.translation import ugettext_lazy as _ +from colab.plugins.utils.menu import colab_url_factory + +name = 'colab_superarchives' +verbose_name = 'Super Archives' + +urls = { + 'include': 'colab_superarchives.urls', + 'prefix': '^archives/', +} + +menu_title = _('Groups') + +url = colab_url_factory('archives') + +menu_urls = ( + url(display=_('Groups'), viewname='thread_list', auth=False), +) + +# Imported settings from colab +LOCALE_PATHS = ('colab_superarchives/locale',) + +# Super Archives +SUPER_ARCHIVES_PATH = '/var/lib/mailman/archives/private' +SUPER_ARCHIVES_EXCLUDE = [] +SUPER_ARCHIVES_LOCK_FILE = '/var/lock/colab/import_emails.lock' -- libgit2 0.21.2