Back to index

plone3  3.1.7
Public Member Functions
kupu.plone.interfaces.IResourceTypeMapper Class Reference
Inheritance diagram for kupu.plone.interfaces.IResourceTypeMapper:
Inheritance graph
[legend]
Collaboration diagram for kupu.plone.interfaces.IResourceTypeMapper:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def getPortalTypesForResourceType
def queryPortalTypesForResourceType
def addResourceType
def updateResourceTypes
def deleteResourceTypes

Detailed Description

Map portal types to resource types

Definition at line 60 of file interfaces.py.


Member Function Documentation

def kupu.plone.interfaces.IResourceTypeMapper.addResourceType (   resource_type,
  portal_types,
  mode = 'whitelist' 
)
Add a resource type pointing to a sequence of portal_types.

Definition at line 75 of file interfaces.py.

00075 
00076     def addResourceType(resource_type, portal_types, mode='whitelist'):
00077         """Add a resource type pointing to a sequence of portal_types."""

Delete the type mapping for the specififed resource types

Raises KeyError if one of the resource_types is not found.

Definition at line 81 of file interfaces.py.

00081 
00082     def deleteResourceTypes(resource_types):
00083         """Delete the type mapping for the specififed resource types
00084 
00085         Raises KeyError if one of the resource_types is not found.
00086         """

Here is the caller graph for this function:

Map portal types to resource types
Return a sequence of portal types for a specific resource type.

Raises KeyError if resource_type is not found.

Definition at line 63 of file interfaces.py.

00063 
00064     def getPortalTypesForResourceType(resource_type):
00065         """Return a sequence of portal types for a specific resource type.
00066 
00067         Raises KeyError if resource_type is not found.
00068         """

Here is the caller graph for this function:

Return a sequence of portal types for a specific resource type.

Returns 'default' if resource_type is not found.

Definition at line 69 of file interfaces.py.

00069 
00070     def queryPortalTypesForResourceType(resource_type, default=None):
00071         """Return a sequence of portal types for a specific resource type.
00072 
00073         Returns 'default' if resource_type is not found.
00074         """

Update resource types using the type mapping passed as argument.

Definition at line 78 of file interfaces.py.

00078 
00079     def updateResourceTypes(type_mapping):
00080         """Update resource types using the type mapping passed as argument."""

Here is the caller graph for this function:


The documentation for this class was generated from the following file: