Package bscw :: Package api :: Module ap_addcommunity
[hide private]

Module ap_addcommunity

Community package: add a new community (an UserGroup object)
   returns id of new community
   Communities can currently only be added at top level.
   I.e. "target_id" must be the id of the "Home" of a user.
   (OFr: Really? It doesn't look like a folder is created for the community.
         I'd expect target to already point to a folder inside of home or a
         WSGroup [which is auto-changed to the corresponding folder])

API definition::

 API = (('target_id', 'ASCII string', 1),
        ('role', 'Unicode string', 1),
        ('name', 'Unicode string', 1),
        ('description', 'Unicode string', 0),
        ('may_subscribe', 'boolean', 0),
        ('keywords', 'array', 0, [('item', 'Unicode string', 0)]))

(c) Fraunhofer FIT, 2003


Version: $Rev: 20112 $

Functions [hide private]
 
param_def()
return the parameter definition
 
do_it(request, target_id, role, name, desc='', may_subscribe=False, keywords=[])
see above
 
add_community(request, target, role, name='', subscribe=None, desc='', keywords=())
Variables [hide private]
  __package__ = 'bscw.api'