Project

General

Profile

Bug #8565

NameError: global name 'ou_admin_perms' is not defined

Added by Frédéric Péters about 4 years ago. Updated about 2 years ago.

Status:
Fermé
Priority:
Normal
Category:
-
Target version:
Start date:
08 Oct 2015
Due date:
% Done:

0%

Patch proposed:
No
Planning:
No

Description

=== Running migrate for schema authentic1_127_0_0_1_xip_io
Operations to perform:
  Unapply all migrations: common
Running migrations:
  No migrations to apply.
Traceback (most recent call last):
  File "authentic2-ctl", line 21, in <module>
    execute_from_command_line(sys.argv[:1] + argv)
  File "/home/fred/src/eo/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
    utility.execute()
  File "/home/fred/src/eo/venv/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 377, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/fred/src/eo/hobo/hobo/multitenant/management/commands/migrate_schemas.py", line 25, in run_from_argv
    super(MigrateSchemasCommand, self).run_from_argv(argv)
  File "/home/fred/src/eo/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 288, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/home/fred/src/eo/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 338, in execute
    output = self.handle(*args, **options)
  File "/home/fred/src/eo/hobo/hobo/multitenant/management/commands/migrate_schemas.py", line 42, in handle
    self.run_migrations(tenant.schema_name, settings.TENANT_APPS)
  File "/home/fred/src/eo/hobo/hobo/multitenant/management/commands/migrate_schemas.py", line 58, in run_migrations
    command.execute(*self.args, **defaults)
  File "/home/fred/src/eo/venv/local/lib/python2.7/site-packages/django/core/management/base.py", line 338, in execute
    output = self.handle(*args, **options)
  File "/home/fred/src/eo/venv/local/lib/python2.7/site-packages/django/core/management/commands/migrate.py", line 165, in handle
    emit_post_migrate_signal(created_models, self.verbosity, self.interactive, connection.alias)
  File "/home/fred/src/eo/venv/local/lib/python2.7/site-packages/django/core/management/sql.py", line 268, in emit_post_migrate_signal
    using=db)
  File "/home/fred/src/eo/venv/local/lib/python2.7/site-packages/django/dispatch/dispatcher.py", line 198, in send
    response = receiver(signal=self, sender=sender, **named)
  File "/home/fred/src/eo/authentic/src/authentic2/a2_rbac/signal_handlers.py", line 49, in post_migrate_update_rbac
    update_ous_admin_roles()
  File "/home/fred/src/eo/authentic/src/authentic2/a2_rbac/management.py", line 69, in update_ous_admin_roles
    permissions=ou_admin_perms).delete()
NameError: global name 'ou_admin_perms' is not defined

Related issues

Related to Authentic 2 - Bug #8558: Change to the admin roles permissions are not applied Fermé 08 Oct 2015

History

#1 Updated by Frédéric Péters about 4 years ago

  • Related to Bug #8558: Change to the admin roles permissions are not applied added

#2 Updated by Benjamin Dauvergne about 4 years ago

  • Target version set to 2.2.0
  • Status changed from Nouveau to Solution déployée
commit 55c5709023f701ff895e38f485e7ca81d5d2fb98
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Thu Oct 8 15:33:45 2015 +0200

    a2_rbac: fix undefined variables errors (fixes #8558)

    Also some pep8 enhancements.

#3 Updated by Benjamin Dauvergne about 2 years ago

  • Status changed from Solution déployée to Fermé

Also available in: Atom PDF