Package caldavclientlibrary :: Package admin :: Package xmlaccounts :: Module recordtypes
[hide private]
[frames] | no frames]

Module recordtypes

source code

Defines the record type identifiers and various dict's to map between those and XML elements.

Variables [hide private]
  recordType_users = 'users'
  recordType_groups = 'groups'
  recordType_locations = 'locations'
  recordType_resources = 'resources'
  recordType_all = 'all'
  RECORD_TYPES = ('users', 'groups', 'locations', 'resources')
Allowed record type identifiers.
  RECORD_TYPES_TO_TAGS = {'groups': 'group', 'locations': 'locat...
Maps between record type identifiers and their corresponding XML element names.
  TAGS_TO_RECORD_TYPES = {'group': 'groups', 'location': 'locati...
Maps between XML element names and their corresponding record type identifiers.
  __package__ = 'caldavclientlibrary.admin.xmlaccounts'
Variables Details [hide private]

RECORD_TYPES_TO_TAGS

Maps between record type identifiers and their corresponding XML element names.

Value:
{'groups': 'group',
 'locations': 'location',
 'resources': 'resource',
 'users': 'user'}

TAGS_TO_RECORD_TYPES

Maps between XML element names and their corresponding record type identifiers.

Value:
{'group': 'groups',
 'location': 'locations',
 'resource': 'resources',
 'user': 'users'}