summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
d013c45)
Robot RequestsLibary should be used instead.
Change-Id: I3a55ebc6d363ff2afbfeb01276f5cf8f9ae949f7
Signed-off-by: Phillip Shea <phillip.shea@hp.com>
import requests
import json
import requests
import json
from urllib import urlencode
from urllib import urlencode
`headers` a dictionary of headers to use with the request
"""
`headers` a dictionary of headers to use with the request
"""
+ warnings.warn(
+ "Use the Robot RequestsLibrary rather than this. See DatastoreCRUD.robot for examples",
+ DeprecationWarning
+ )
session = self._cache.switch(alias)
resp = session.get(self._get_url(session, uri),
headers=headers,
session = self._cache.switch(alias)
resp = session.get(self._get_url(session, uri),
headers=headers,
`files` a dictionary of file names containing file data to POST to the server
"""
`files` a dictionary of file names containing file data to POST to the server
"""
+ warnings.warn(
+ "Use the Robot RequestsLibrary rather than this. See DatastoreCRUD.robot for examples",
+ DeprecationWarning
+ )
session = self._cache.switch(alias)
data = self._utf8_urlencode(data)
session = self._cache.switch(alias)
data = self._utf8_urlencode(data)
`files` a dictionary of file names containing file data to POST to the server
"""
`files` a dictionary of file names containing file data to POST to the server
"""
+ warnings.warn(
+ "Use the Robot RequestsLibrary rather than this. See DatastoreCRUD.robot for examples",
+ DeprecationWarning
+ )
session = self._cache.switch(alias)
data = json.dumps(data)
session = self._cache.switch(alias)
data = json.dumps(data)
+ warnings.warn(
+ "Use the Robot RequestsLibrary rather than this. See DatastoreCRUD.robot for examples",
+ DeprecationWarning
+ )
session = self._cache.switch(alias)
# data = self._utf8_urlencode(data)
data = json.dumps(data)
session = self._cache.switch(alias)
# data = self._utf8_urlencode(data)
data = json.dumps(data)
+ warnings.warn(
+ "Use the Robot RequestsLibrary rather than this. See DatastoreCRUD.robot for examples",
+ DeprecationWarning
+ )
session = self._cache.switch(alias)
data = self._utf8_urlencode(data)
# data = json.dumps(data)
session = self._cache.switch(alias)
data = self._utf8_urlencode(data)
# data = json.dumps(data)
+ warnings.warn(
+ "Use the Robot RequestsLibrary rather than this. See DatastoreCRUD.robot for examples",
+ DeprecationWarning
+ )
session = self._cache.switch(alias)
args = "?%s" % urlencode(data) if data else ''
resp = session.delete("%s%s" % (self._get_url(session, uri), args),
session = self._cache.switch(alias)
args = "?%s" % urlencode(data) if data else ''
resp = session.delete("%s%s" % (self._get_url(session, uri), args),