Back to index

plone3  3.1.7
Functions | Variables
PlonePAS.MigrationCheck Namespace Reference

Functions

def canAutoMigrate

Variables

tuple acceptable_user_sources = ("User Folder","LDAPUserFolder")
 PlonePAS - Adapt PluggableAuthService for use in Plone Copyright (C) 2005 Enfold Systems, Kapil Thangavelu, et al.
tuple acceptable_group_sources = ("User Folder",)

Function Documentation

Determine if a userfolder is set up so that it can be
auto-migrated to PAS.

Currently only true for GRUF with either UserFolder or
LDAPUserFolder sources.

Definition at line 19 of file MigrationCheck.py.

00019 
00020 def canAutoMigrate(userfolder):
00021     """Determine if a userfolder is set up so that it can be
00022     auto-migrated to PAS.
00023 
00024     Currently only true for GRUF with either UserFolder or
00025     LDAPUserFolder sources.
00026     """
00027     retval = 1
00028     if userfolder.meta_type == "Group User Folder":
00029         user_sources = userfolder.listUserSources()
00030         group_source = userfolder.Groups.acl_users
00031 
00032         retval = retval and group_source.meta_type in acceptable_group_sources
00033         for uf in user_sources:
00034             retval = retval and uf.meta_type in acceptable_user_sources
00035     else:
00036         retval = 0
00037     return retval

Here is the caller graph for this function:


Variable Documentation

Definition at line 17 of file MigrationCheck.py.

tuple PlonePAS.MigrationCheck.acceptable_user_sources = ("User Folder","LDAPUserFolder")

PlonePAS - Adapt PluggableAuthService for use in Plone Copyright (C) 2005 Enfold Systems, Kapil Thangavelu, et al.

This software is subject to the provisions of the Zope Public License, Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS FOR A PARTICULAR PURPOSE.

Definition at line 15 of file MigrationCheck.py.