Back to index

plone3  3.1.7
Namespaces | Functions | Variables
GroupUserFolder Namespace Reference

Namespaces

namespace  class_utility
namespace  DynaList
namespace  Extensions
namespace  global_symbols
namespace  GroupDataTool
namespace  GroupsTool
namespace  GroupsToolPermissions
namespace  GroupUserFolder
namespace  GRUFFolder
namespace  GRUFUser
namespace  Installation
namespace  interfaces
namespace  LDAPGroupFolder
namespace  LDAPUserFolderAdapter
namespace  Log
namespace  PloneFeaturePreview
namespace  tests

Functions

def postonly
def patch_LDAPUF
def initialize

Variables

string __version__ = "$Revision: $"
 GroupUserFolder Copyright (C)2006 Ingeniweb.
string __docformat__ = 'restructuredtext'
int hasLDAP = 1
tuple groupuserfolder_globals = globals()

Function Documentation

def GroupUserFolder.initialize (   context)

Definition at line 77 of file __init__.py.

00077 
00078 def initialize(context):
00079 
00080     try:
00081         registerDirectory('skins', groupuserfolder_globals)
00082     except:
00083         # No registerdir available => we ignore
00084         pass
00085 
00086     context.registerClass(
00087         GroupUserFolder.GroupUserFolder,
00088         permission='Add GroupUserFolders',
00089         constructors=(GroupUserFolder.manage_addGroupUserFolder,),
00090         icon='www/GroupUserFolder.gif',
00091         )
00092 
00093     if hasLDAP:
00094         context.registerClass(
00095             LDAPGroupFolder.LDAPGroupFolder,
00096             permission='Add GroupUserFolders',
00097             constructors=(LDAPGroupFolder.addLDAPGroupFolderForm, LDAPGroupFolder.manage_addLDAPGroupFolder,),
00098             icon='www/LDAPGroupFolder.gif',
00099             )
00100 
00101     context.registerClass(
00102         GRUFFolder.GRUFUsers,
00103         permission='Add GroupUserFolder',
00104         constructors=(GRUFFolder.manage_addGRUFUsers,),
00105         visibility=None,
00106         icon='www/GRUFUsers.gif',
00107         )
00108 
00109     context.registerClass(
00110         GRUFFolder.GRUFGroups,
00111         permission='Add GroupUserFolder',
00112         constructors=(GRUFFolder.manage_addGRUFGroups,),
00113         visibility=None,
00114         icon='www/GRUFGroups.gif',
00115         )
00116 
00117     try:
00118         from Products.CMFCore.utils import ToolInit, ContentInit
00119         from GroupsTool import GroupsTool
00120         from GroupDataTool import GroupDataTool
00121         ToolInit( meta_type='CMF Groups Tool'
00122                   , tools=( GroupsTool, GroupDataTool, )
00123                   , icon="tool.gif"
00124                   ).initialize( context )
00125 
00126     except ImportError:
00127         Log(LOG_NOTICE, "Unable to import GroupsTool and/or GroupDataTool. \
00128         This won't disable GRUF but if you use CMF/Plone you won't get benefit of its special features.")

Here is the call graph for this function:

Definition at line 63 of file __init__.py.

00063 
00064     def patch_LDAPUF():
00065         # Now we can patch LDAPUF
00066         from Products.LDAPUserFolder import LDAPUserFolder
00067         import LDAPUserFolderAdapter
00068         LDAPUserFolder._doAddUser = LDAPUserFolderAdapter._doAddUser
00069         LDAPUserFolder._doDelUsers = LDAPUserFolderAdapter._doDelUsers
00070         LDAPUserFolder._doChangeUser = LDAPUserFolderAdapter._doChangeUser
00071         LDAPUserFolder._find_user_dn = LDAPUserFolderAdapter._find_user_dn
00072         LDAPUserFolder.manage_editGroupRoles = LDAPUserFolderAdapter.manage_editGroupRoles
00073         LDAPUserFolder._mangleRoles = LDAPUserFolderAdapter._mangleRoles

def GroupUserFolder.postonly (   callable)

Definition at line 35 of file __init__.py.

00035 
00036         def postonly(callable): return callable
00037 

Here is the caller graph for this function:


Variable Documentation

string GroupUserFolder.__docformat__ = 'restructuredtext'

Definition at line 24 of file __init__.py.

string GroupUserFolder.__version__ = "$Revision: $"

GroupUserFolder Copyright (C)2006 Ingeniweb.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

Definition at line 21 of file __init__.py.

Definition at line 57 of file __init__.py.

Definition at line 42 of file __init__.py.