6 Jun
2017
6 Jun
'17
8:20 p.m.
Am 04.06.2017 um 17:30 schrieb Simon Hanna:
Looks like you want to run the Hyperkitty management command "mailman_sync" You could also just grab the MailingList object you want and run "mlist_object.update_from_mailman()" on it.
I couldn't get the command to run, will investigate later...
I am getting errors as well:
mailman-suite/mailman-suite_project$ python manage.py mailman_sync
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File
"/opt/mailman/venv-2.7/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 363, in execute_from_command_line
utility.execute()
File
"/opt/mailman/venv-2.7/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 355, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File
"/opt/mailman/venv-2.7/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 205, in fetch_command
klass = load_command_class(app_name, subcommand)
File
"/opt/mailman/venv-2.7/local/lib/python2.7/site-packages/django/core/management/__init__.py",
line 40, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name,
name))
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in
import_module
__import__(name)
File
"/opt/mailman/hyperkitty/hyperkitty/management/commands/mailman_sync.py",
line 35, in <module>
class Command(BaseCommand):
File
"/opt/mailman/hyperkitty/hyperkitty/management/commands/mailman_sync.py",
line 37, in Command
option_list = BaseCommand.option_list + (
AttributeError: type object 'BaseCommand' has no attribute 'option_list'