Revision e9304ec6
b/docs/conf.py | ||
---|---|---|
16 | 16 |
# documentation root, use os.path.abspath to make it absolute, like shown here. |
17 | 17 |
|
18 | 18 |
import sys, os |
19 |
sys.path.append('snf-common')
|
|
19 |
#sys.path.append('/home/saxtouri/src/synnefo/snf-common/')
|
|
20 | 20 |
sys.path.append('../') |
21 | 21 |
|
22 | 22 |
# -- General configuration ----------------------------------------------------- |
b/kamaki/clients/connection/__init__.py | ||
---|---|---|
175 | 175 |
async_headers={}, |
176 | 176 |
async_params={}, |
177 | 177 |
data=None): |
178 |
""" |
|
179 |
@return an HTTPResponse (also in self.response of this object) |
|
180 |
named args offer the ability to reset a request or a part of the |
|
181 |
request |
|
182 |
e.g. r = HTTPConnection(url='http://....', method='GET') |
|
183 |
r.perform_request() |
|
184 |
r.perform_request(method='POST') |
|
185 |
will perform a GET request and later a POST request on the same URL |
|
186 |
another example: |
|
187 |
r = HTTPConnection(url='http://....', params='format=json') |
|
188 |
r.perform_request(method='GET') |
|
189 |
r.perform_request(method='POST') |
|
190 |
""" |
|
191 | 178 |
raise NotImplementedError |
192 |
|
|
193 |
""" |
|
194 |
@property |
|
195 |
def response(self): |
|
196 |
return self._response |
|
197 |
@response.setter |
|
198 |
def response(self, r): |
|
199 |
self._response = r |
|
200 |
""" |
Also available in: Unified diff