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 - 1.0
|
|
|
|
Steve L. Nyemba, The Phi Technology LLC
|
|
|
|
|
|
|
|
This module is designed to serve as a wrapper to a set of supported data stores :
|
|
|
|
- couchdb
|
|
|
|
- mongodb
|
|
|
|
- Files (character delimited)
|
|
|
|
setattr(self,field,value)
|
|
|
|
# # @TODO: Make sure objects are serializable, be smart about them !!
|
|
|
|
# #
|
|
|
|
# aClassName = ''.join([source,'(**params)'])
|
|
|
|
|
|
|
|
|
|
|
|
# else:
|
|
|
|
|
|
|
|
# stream = json.dumps(params)
|
|
|
|
# aClassName = ''.join([source,'(**',stream,')'])
|
|
|
|
# try:
|
|
|
|
# anObject = eval( aClassName)
|
|
|
|
# #setattr(anObject,'name',source)
|
|
|
|
# except Exception,e:
|
|
|
|
# print ['Error ',e]
|
|
|
|
# return anObject
|