Package bscw ::
Package api ::
Module ap_set_attributes
|
|
Module ap_set_attributes
Set metadata attributes (struct of attribute, value pairs) these
attributes are stored in a MetaData object in a dictionary named 'data'
or 'config_data' (md_type '' or 'config_') to remove a metadata give it a
value of '__None__' returns list of names of metadata
API definition:
API = (('object_id', 'ASCII string', 1),
('attributes', 'struct', 0, [('string', 'Unicode string', 0)]),
('md_type', 'ASCII string', 0))
Fraunhofer FIT and OrbiTeam Software, (c) 2004-2008
|
param_def()
return the parameter definition |
|
|
|
return_def()
return the result definition |
|
|
|
do_it(request,
object_id,
attributes={ } ,
md_type=None)
see above. |
|
|
|
no_unicode(d)
convert all unicode to utf8 |
|
|
|
set_attr(self,
request,
attributes,
md_type=None)
change metadata |
|
|
|
call_set(self,
key,
v)
call set function of object eg (for key 'attrx'): self.set_attrx(v) |
|
|
|
special = ( ' owners ' , ' creator ' , ' ctime ' , ' mtime ' , ' atime ' , ' na ...
|
|
__package__ = ' bscw.api '
|
do_it(request,
object_id,
attributes={ } ,
md_type=None)
|
|
see above. If md_type is specified attributes must not be
qualified!
|
special
- Value:
( ' owners ' ,
' creator ' ,
' ctime ' ,
' mtime ' ,
' atime ' ,
' name ' ,
' descr ' ,
' notes ' ,
...
|
|