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

Module ap_uploadurl

Transfers the content of an URL into a new BSCW object (document)
   returns list of IDs of uploaded urls

API definition::

 API = (('target_id', 'ASCII string', 1),
        ('name', 'ASCII string', 1),
        ('url', 'ASCII string', 1))

(c) Fraunhofer FIT, 2002


Version: $Rev: 20668 $

Functions [hide private]
 
param_def()
return the parameter definition
 
do_it(request, target_id, name, url)
see above
 
upload_url(request, container, name, url)
Upload the URLs
 
upload_entries(request, entries)
upload the URLs for the entries
 
local_url(request, url)
Check if given URL points to this BSCW server.
 
upload(request, url, name, target=None)
Load URL into Document named 'name'.
 
has_base_tag(buf)
 
insert_base_tag(buf, base)
Variables [hide private]
  __package__ = 'bscw.api'
Function Details [hide private]

local_url(request, url)

 

Check if given URL points to this BSCW server.

Returns:
If so, returns local url in BSCW, else None.

upload(request, url, name, target=None)

 

Load URL into Document named 'name'.

Parameters:
  • target - If target is not None, the target Folder is looked up for a replaceable / revisable Document 'name'. If target is None, the new document will not be added anywhere, this has to be done separately.
Returns:
the pair (doc, None) on success or (None, error) on failure