text
stringlengths 0
828
|
---|
try: |
cursor.close() |
cOpen = False |
except Exception as e: |
time.sleep(1) |
count += 1 |
if count == 10: |
log.warning('could not close the db cursor ' + str(e) + '\n') |
raise e |
count = 0 |
log.debug('completed the ``writequery`` function') |
return message" |
4765,"def create_fixed_rate_shipping(cls, fixed_rate_shipping, **kwargs): |
""""""Create FixedRateShipping |
Create a new FixedRateShipping |
This method makes a synchronous HTTP request by default. To make an |
asynchronous HTTP request, please pass async=True |
>>> thread = api.create_fixed_rate_shipping(fixed_rate_shipping, async=True) |
>>> result = thread.get() |
:param async bool |
:param FixedRateShipping fixed_rate_shipping: Attributes of fixedRateShipping to create (required) |
:return: FixedRateShipping |
If the method is called asynchronously, |
returns the request thread. |
"""""" |
kwargs['_return_http_data_only'] = True |
if kwargs.get('async'): |
return cls._create_fixed_rate_shipping_with_http_info(fixed_rate_shipping, **kwargs) |
else: |
(data) = cls._create_fixed_rate_shipping_with_http_info(fixed_rate_shipping, **kwargs) |
return data" |
4766,"def delete_fixed_rate_shipping_by_id(cls, fixed_rate_shipping_id, **kwargs): |
""""""Delete FixedRateShipping |
Delete an instance of FixedRateShipping by its ID. |
This method makes a synchronous HTTP request by default. To make an |
asynchronous HTTP request, please pass async=True |
>>> thread = api.delete_fixed_rate_shipping_by_id(fixed_rate_shipping_id, async=True) |
>>> result = thread.get() |
:param async bool |
:param str fixed_rate_shipping_id: ID of fixedRateShipping to delete. (required) |
:return: None |
If the method is called asynchronously, |
returns the request thread. |
"""""" |
kwargs['_return_http_data_only'] = True |
if kwargs.get('async'): |
return cls._delete_fixed_rate_shipping_by_id_with_http_info(fixed_rate_shipping_id, **kwargs) |
else: |
(data) = cls._delete_fixed_rate_shipping_by_id_with_http_info(fixed_rate_shipping_id, **kwargs) |
return data" |
4767,"def get_fixed_rate_shipping_by_id(cls, fixed_rate_shipping_id, **kwargs): |
""""""Find FixedRateShipping |
Return single instance of FixedRateShipping by its ID. |
This method makes a synchronous HTTP request by default. To make an |
asynchronous HTTP request, please pass async=True |
>>> thread = api.get_fixed_rate_shipping_by_id(fixed_rate_shipping_id, async=True) |
>>> result = thread.get() |
:param async bool |
:param str fixed_rate_shipping_id: ID of fixedRateShipping to return (required) |
:return: FixedRateShipping |
If the method is called asynchronously, |
returns the request thread. |
"""""" |
kwargs['_return_http_data_only'] = True |
if kwargs.get('async'): |
return cls._get_fixed_rate_shipping_by_id_with_http_info(fixed_rate_shipping_id, **kwargs) |
else: |
(data) = cls._get_fixed_rate_shipping_by_id_with_http_info(fixed_rate_shipping_id, **kwargs) |
return data" |
4768,"def list_all_fixed_rate_shippings(cls, **kwargs): |
""""""List FixedRateShippings |
Return a list of FixedRateShippings |
This method makes a synchronous HTTP request by default. To make an |
asynchronous HTTP request, please pass async=True |
>>> thread = api.list_all_fixed_rate_shippings(async=True) |
>>> result = thread.get() |
:param async bool |
:param int page: page number |
:param int size: page size |
:param str sort: page order |
:return: page[FixedRateShipping] |
If the method is called asynchronously, |
returns the request thread. |
"""""" |
kwargs['_return_http_data_only'] = True |
if kwargs.get('async'): |
return cls._list_all_fixed_rate_shippings_with_http_info(**kwargs) |
else: |
(data) = cls._list_all_fixed_rate_shippings_with_http_info(**kwargs) |
return data" |
4769,"def replace_fixed_rate_shipping_by_id(cls, fixed_rate_shipping_id, fixed_rate_shipping, **kwargs): |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.