tardis.apps.openid_migration package¶
Subpackages¶
Submodules¶
tardis.apps.openid_migration.apps module¶
-
class
tardis.apps.openid_migration.apps.
OpenidMigrationConfig
(app_name, app_module)¶ Bases:
tardis.app_config.AbstractTardisAppConfig
-
name
= 'tardis.apps.openid_migration'¶
-
verbose_name
= 'OpenID migrations'¶
-
tardis.apps.openid_migration.context_processors module¶
-
tardis.apps.openid_migration.context_processors.
openid_migration_processor
(request)¶ adds context for openid_migration
tardis.apps.openid_migration.default_settings module¶
tardis.apps.openid_migration.email_text module¶
-
tardis.apps.openid_migration.email_text.
email_migration_success
(user, new_username, auth_method)¶
-
tardis.apps.openid_migration.email_text.
interpolate_template
(template_name, **kwargs)¶
tardis.apps.openid_migration.forms module¶
-
tardis.apps.openid_migration.forms.
openid_user_migration_form
()¶ Create a user migration form with username and password field.
tardis.apps.openid_migration.migration module¶
-
tardis.apps.openid_migration.migration.
acl_migration
(userIdToBeReplaced, replacementUserId, user_migration_record)¶
-
tardis.apps.openid_migration.migration.
confirm_migration
(request)¶
-
tardis.apps.openid_migration.migration.
do_migration
(request)¶ Migrating account from the account that the logged in user has provided in the Authentication Form. Migration involve relinking the UserAuthentication table entries, transferring ObjectACL entries to the migrated account, changing the Group memberships and making the old account inactive.
Parameters: request (Request) – the HTTP request object Returns: The HttpResponse which contains request.user’s new list of authentication methods Return type: HttpResponse
-
tardis.apps.openid_migration.migration.
getSupportedAuthMethods
()¶ Return the list of authentication methods.
-
tardis.apps.openid_migration.migration.
get_api_key
(user)¶
-
tardis.apps.openid_migration.migration.
get_matching_auth_provider
(backend)¶
-
tardis.apps.openid_migration.migration.
migrate_api_key
(old_user, new_user)¶
-
tardis.apps.openid_migration.migration.
migrate_user_permissions
(old_user, new_user)¶
-
tardis.apps.openid_migration.migration.
openid_migration_method
(request)¶
tardis.apps.openid_migration.models module¶
-
class
tardis.apps.openid_migration.models.
OpenidACLMigration
(id, user_migration, acl_id)¶ Bases:
django.db.models.base.Model
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
acl_id
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
-
acl_id_id
¶
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
objects
= <django.db.models.manager.Manager object>¶
-
user_migration
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
-
user_migration_id
¶
-
exception
-
class
tardis.apps.openid_migration.models.
OpenidACLMigrationAdmin
(model, admin_site)¶ Bases:
django.contrib.admin.options.ModelAdmin
-
list_display
= ['user_migration_obj', 'acl_id']¶
-
media
¶
-
user_migration_obj
(obj)¶
-
-
class
tardis.apps.openid_migration.models.
OpenidUserMigration
(id, old_user, old_user_auth_method, new_user, new_user_auth_method, migration_timestamp, migration_status)¶ Bases:
django.db.models.base.Model
-
exception
DoesNotExist
¶
-
exception
MultipleObjectsReturned
¶
-
get_next_by_migration_timestamp
(*, field=<django.db.models.fields.DateTimeField: migration_timestamp>, is_next=True, **kwargs)¶
-
get_previous_by_migration_timestamp
(*, field=<django.db.models.fields.DateTimeField: migration_timestamp>, is_next=False, **kwargs)¶
-
id
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
migration_status
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
migration_timestamp
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
new_user
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
-
new_user_auth_method
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
new_user_id
¶
-
objects
= <django.db.models.manager.Manager object>¶
-
old_user
¶ Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
-
old_user_auth_method
¶ A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
-
old_user_id
¶
-
openidaclmigration_set
¶ Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
-
exception
tardis.apps.openid_migration.tasks module¶
tardis.apps.openid_migration.urls module¶
tardis.apps.openid_migration.utils module¶
-
tardis.apps.openid_migration.utils.
rollback_migration
(user_migration_obj)¶
tardis.apps.openid_migration.views module¶
-
tardis.apps.openid_migration.views.
migrate_accounts
(request)¶ Manage user migration using AJAX.