You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
"""
|
|
|
|
Data-Transport
|
|
|
|
Steve L. Nyemba, The Phi Technology
|
|
|
|
|
|
|
|
This file is a wrapper around couchdb using IBM Cloudant SDK that has an interface to couchdb
|
|
|
|
|
|
|
|
"""
|
|
|
|
import cloudant
|
|
|
|
import json
|
|
|
|
#
|
|
|
|
"""
|
|
|
|
return document
|
|
|
|
|
|
|
|
class CouchWriter(Couch,Writer):
|
|
|
|
"""
|
|
|
|
This class will write on a couchdb document provided a scope
|
|
|
|
The scope is the attribute that will be on the couchdb document
|
|
|
|
"""
|
|
|
|
def __init__(self,**args):
|
|
|
|
"""
|
|
|
|
@param uri host & port reference
|
|
|
|
@param uid user id involved
|
|
|
|
@param filename filename (attachment)
|
|
|
|
@param dbname database name (target)
|
|
|
|
"""
|
|
|
|
|
|
|
|
Couch.__init__(self,**args)
|
|
|
|
document.save()
|