Package bscw ::
Package api ::
Module ap_addct
|
|
Module ap_addct
adds a new contact
ct_id is object ID of contact list where contact should be added to
The API may also be used to edit a contact - in this case
ct_id is object ID of contact to be edited
(note that an entry id is required when 'copy-on-write' shall be used)
returns id of newly created (or edited) contact
API definition::
API = (('ct_id', 'ASCII string', 1),
('ct_attrs', 'array', 1, [('attr', 'struct', 1, [('k', 'ASCII string', 1),
('v', 'array', 1, [('v', 'Unicode string', 0)], 1)])], 1))
(c) OrbiTeam Software, 2005-2010
|
param_def()
return the parameter definition |
|
|
|
do_it(request,
ct_id,
ct_attrs)
see above |
|
|
|
_meta_fix_value(key,
val)
fix value for meta_set |
|
|
|
add_ct(obj,
request,
ct_attrs) |
|
|
|
log_api = logging.getLogger('api')
|
|
__package__ = ' bscw.api '
|