Created
October 14, 2019 12:35
-
-
Save dionysio/40172a41a66bfde08018065aa7322e66 to your computer and use it in GitHub Desktop.
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<HTML> | |
<HEAD> | |
<TITLE> CloneDigger Report </TITLE> | |
<script type="text/javascript"> | |
function unhide(divID) { | |
var item = document.getElementById(divID); | |
if (item) { | |
item.className=(item.className=='hidden')?'unhidden':'hidden'; | |
} | |
} | |
</script> | |
<style type="text/css"> | |
.hidden { display: none; } | |
.unhidden { display: block; } | |
.preformatted { | |
border: 1px dashed #3c78b5; | |
font-size: 11px; | |
font-family: Courier; | |
margin: 10px; | |
line-height: 13px; | |
} | |
.preformattedHeader { | |
background-color: #f0f0f0; | |
border-bottom: 1px dashed #3c78b5; | |
padding: 3px; | |
text-align: center; | |
} | |
.preformattedContent { | |
background-color: #f0f0f0; | |
padding: 3px; | |
} | |
<!-- | |
<div class="preformatted"><div class="preformattedContent"> | |
<pre>Clone Digger | |
</pre> | |
</div></div> | |
--> | |
</style> | |
</HEAD> | |
<BODY> | |
<P> <FONT COLOR=RED> Error: can't parse "./zeep/asyncio/transport.py" <BR>: Traceback (most recent call last):<BR> File "/home/dio/.virtualenvs/zenkraft-api-heroku/local/lib/python2.7/site-packages/clonedigger/clonedigger.py", line 150, in parse_file<BR> source_file = supplier(file_name, func_prefixes)<BR> File "/home/dio/.virtualenvs/zenkraft-api-heroku/local/lib/python2.7/site-packages/clonedigger/python_compiler.py", line 182, in __init__<BR> self._setTree(rec_build_tree(compiler.parseFile(file_name)))<BR> File "/usr/lib/python2.7/compiler/transformer.py", line 47, in parseFile<BR> return parse(src)<BR> File "/usr/lib/python2.7/compiler/transformer.py", line 51, in parse<BR> return Transformer().parsesuite(buf)<BR> File "/usr/lib/python2.7/compiler/transformer.py", line 128, in parsesuite<BR> return self.transform(parser.suite(text))<BR> File "<string>", line 64<BR> async def _load_remote_data_async():<BR> ^<BR>SyntaxError: invalid syntax<BR> </FONT> </P> | |
<P> <FONT COLOR=RED> Error: can't parse "./zeep/asyncio/bindings.py" <BR>: Traceback (most recent call last):<BR> File "/home/dio/.virtualenvs/zenkraft-api-heroku/local/lib/python2.7/site-packages/clonedigger/clonedigger.py", line 150, in parse_file<BR> source_file = supplier(file_name, func_prefixes)<BR> File "/home/dio/.virtualenvs/zenkraft-api-heroku/local/lib/python2.7/site-packages/clonedigger/python_compiler.py", line 182, in __init__<BR> self._setTree(rec_build_tree(compiler.parseFile(file_name)))<BR> File "/usr/lib/python2.7/compiler/transformer.py", line 47, in parseFile<BR> return parse(src)<BR> File "/usr/lib/python2.7/compiler/transformer.py", line 51, in parse<BR> return Transformer().parsesuite(buf)<BR> File "/usr/lib/python2.7/compiler/transformer.py", line 128, in parsesuite<BR> return self.transform(parser.suite(text))<BR> File "<string>", line 8<BR> async def send(self, client, options, operation, args, kwargs):<BR> ^<BR>SyntaxError: invalid syntax<BR> </FONT> </P> | |
<P>Source files: 211</P> | |
<a href = "javascript:unhide('files');">Click here to show/hide file names</a><div id="files" class="hidden"><P><B>Source files:</B><BR>./main.py, <BR>./ws.py, <BR>./utils.py, <BR>./blowfish.py, <BR>./mail.py, <BR>./account.py, <BR>./xml_utils.py, <BR>./generate_common_keys.py, <BR>./forms.py, <BR>./admin.py, <BR>./base.py, <BR>./bcrypt.py, <BR>./flask_app.py, <BR>./helpers.py, <BR>./lookups.py, <BR>./validators.py, <BR>./aes_cipher.py, <BR>./code_samples.py, <BR>./data.py, <BR>./models.py, <BR>./custom_exceptions.py, <BR>./base_carrier/__init__.py, <BR>./base_carrier/base.py, <BR>./base_carrier/purolator_base.py, <BR>./base_carrier/ups_base.py, <BR>./base_carrier/fedex_base.py, <BR>./zeep/utils.py, <BR>./zeep/__init__.py, <BR>./zeep/proxy.py, <BR>./zeep/transports.py, <BR>./zeep/ns.py, <BR>./zeep/wsa.py, <BR>./zeep/cache.py, <BR>./zeep/client.py, <BR>./zeep/plugins.py, <BR>./zeep/helpers.py, <BR>./zeep/settings.py, <BR>./zeep/__main__.py, <BR>./zeep/exceptions.py, <BR>./zeep/loader.py, <BR>./zeep/wsse/username.py, <BR>./zeep/wsse/utils.py, <BR>./zeep/wsse/__init__.py, <BR>./zeep/wsse/signature.py, <BR>./zeep/wsse/compose.py, <BR>./zeep/wsdl/utils.py, <BR>./zeep/wsdl/__init__.py, <BR>./zeep/wsdl/definitions.py, <BR>./zeep/wsdl/wsdl.py, <BR>./zeep/wsdl/attachments.py, <BR>./zeep/wsdl/parse.py, <BR>./zeep/wsdl/messages/multiref.py, <BR>./zeep/wsdl/messages/xop.py, <BR>./zeep/wsdl/messages/__init__.py, <BR>./zeep/wsdl/messages/soap.py, <BR>./zeep/wsdl/messages/base.py, <BR>./zeep/wsdl/messages/mime.py, <BR>./zeep/wsdl/messages/http.py, <BR>./zeep/wsdl/bindings/__init__.py, <BR>./zeep/wsdl/bindings/soap.py, <BR>./zeep/wsdl/bindings/http.py, <BR>./zeep/xsd/printer.py, <BR>./zeep/xsd/utils.py, <BR>./zeep/xsd/__init__.py, <BR>./zeep/xsd/context.py, <BR>./zeep/xsd/valueobjects.py, <BR>./zeep/xsd/schema.py, <BR>./zeep/xsd/visitor.py, <BR>./zeep/xsd/const.py, <BR>./zeep/xsd/types/builtins.py, <BR>./zeep/xsd/types/complex.py, <BR>./zeep/xsd/types/__init__.py, <BR>./zeep/xsd/types/simple.py, <BR>./zeep/xsd/types/base.py, <BR>./zeep/xsd/types/unresolved.py, <BR>./zeep/xsd/types/collection.py, <BR>./zeep/xsd/types/any.py, <BR>./zeep/xsd/elements/builtins.py, <BR>./zeep/xsd/elements/references.py, <BR>./zeep/xsd/elements/__init__.py, <BR>./zeep/xsd/elements/indicators.py, <BR>./zeep/xsd/elements/element.py, <BR>./zeep/xsd/elements/attribute.py, <BR>./zeep/xsd/elements/base.py, <BR>./zeep/xsd/elements/any.py, <BR>./zeep/asyncio/__init__.py, <BR>./zeep/tornado/__init__.py, <BR>./zeep/tornado/transport.py, <BR>./zeep/tornado/bindings.py, <BR>./tests/unit_test.py, <BR>./tests/integration_test.py, <BR>./tests/__init__.py, <BR>./tests/setup_test_environment.py, <BR>./tests/base.py, <BR>./tests/main_test.py, <BR>./tests/ui_test.py, <BR>./models/__init__.py, <BR>./models/models_pg.py, <BR>./models/base.py, <BR>./integrations/__init__.py, <BR>./integrations/base.py, <BR>./integrations/magento.py, <BR>./carriers/fedex.py, <BR>./carriers/purolator.py, <BR>./carriers/tnt_uk.py, <BR>./carriers/custom.py, <BR>./carriers/royal_mail.py, <BR>./carriers/__init__.py, <BR>./carriers/echo_logistics_inbound.py, <BR>./carriers/sf_express.py, <BR>./carriers/ups.py, <BR>./carriers/flexport.py, <BR>./carriers/carrier_template.py, <BR>./carriers/singapore_post.py, <BR>./carriers/ups_freight.py, <BR>./carriers/usps_endicia.py, <BR>./carriers/dhl.py, <BR>./carriers/canpar.py, <BR>./carriers/dhl_germany.py, <BR>./carriers/base.py, <BR>./carriers/dpd_germany.py, <BR>./carriers/posti_fi.py, <BR>./carriers/dpd_france.py, <BR>./carriers/tnt_express.py, <BR>./carriers/australia_post.py, <BR>./carriers/usps.py, <BR>./carriers/echo_logistics.py, <BR>./carriers/dpd.py, <BR>./carriers/parcelforce.py, <BR>./carriers/fedex_freight.py, <BR>./carriers/colissimo.py, <BR>./carriers/startrack.py, <BR>./carriers/aramex.py, <BR>./carriers/canada_post.py, <BR>./config/__init__.py, <BR>./config/config.py, <BR>./config/logging_config.py, <BR>./main.py, <BR>./base_carrier/__init__.py, <BR>./base_carrier/base.py, <BR>./base_carrier/purolator_base.py, <BR>./base_carrier/ups_base.py, <BR>./base_carrier/fedex_base.py, <BR>./ws.py, <BR>./utils.py, <BR>./blowfish.py, <BR>./mail.py, <BR>./account.py, <BR>./xml_utils.py, <BR>./generate_common_keys.py, <BR>./forms.py, <BR>./admin.py, <BR>./base.py, <BR>./bcrypt.py, <BR>./flask_app.py, <BR>./tests/unit_test.py, <BR>./tests/integration_test.py, <BR>./tests/__init__.py, <BR>./tests/setup_test_environment.py, <BR>./tests/base.py, <BR>./tests/main_test.py, <BR>./tests/ui_test.py, <BR>./helpers.py, <BR>./lookups.py, <BR>./models/__init__.py, <BR>./models/models_pg.py, <BR>./models/base.py, <BR>./integrations/__init__.py, <BR>./integrations/base.py, <BR>./integrations/magento.py, <BR>./validators.py, <BR>./aes_cipher.py, <BR>./carriers/fedex.py, <BR>./carriers/purolator.py, <BR>./carriers/tnt_uk.py, <BR>./carriers/custom.py, <BR>./carriers/royal_mail.py, <BR>./carriers/__init__.py, <BR>./carriers/echo_logistics_inbound.py, <BR>./carriers/sf_express.py, <BR>./carriers/ups.py, <BR>./carriers/flexport.py, <BR>./carriers/carrier_template.py, <BR>./carriers/singapore_post.py, <BR>./carriers/ups_freight.py, <BR>./carriers/usps_endicia.py, <BR>./carriers/dhl.py, <BR>./carriers/canpar.py, <BR>./carriers/dhl_germany.py, <BR>./carriers/base.py, <BR>./carriers/dpd_germany.py, <BR>./carriers/posti_fi.py, <BR>./carriers/dpd_france.py, <BR>./carriers/tnt_express.py, <BR>./carriers/australia_post.py, <BR>./carriers/usps.py, <BR>./carriers/echo_logistics.py, <BR>./carriers/dpd.py, <BR>./carriers/parcelforce.py, <BR>./carriers/fedex_freight.py, <BR>./carriers/colissimo.py, <BR>./carriers/startrack.py, <BR>./carriers/aramex.py, <BR>./carriers/canada_post.py, <BR>./code_samples.py, <BR>./config/__init__.py, <BR>./config/config.py, <BR>./config/logging_config.py, <BR>./data.py, <BR>./models.py, <BR>./custom_exceptions.py</P></div> | |
<P>Clones detected: 1771</P> | |
<P>21539 of 26180 lines are duplicates (82.27%) </P> | |
<P> | |
<B>Parameters<BR> </B> | |
clustering_threshold = 10<BR> | |
distance_threshold = 5<BR> | |
size_threshold = 5<BR> | |
hashing_depth = 1<BR> | |
clusterize_using_hash = False<BR> | |
clusterize_using_dcup = False<BR> | |
</P> | |
<B>Time elapsed</B><BR>Construction of AST : 8.70 seconds<BR> | |
Building statement hash : 0.06 seconds<BR> | |
Building patterns : 104.77 seconds<BR> | |
Marking similar statements : 136.00 seconds<BR> | |
Finding similar sequences of statements : 15.73 seconds<BR> | |
Refining candidates : 35.31 seconds<BR> | |
Total time: 300.55<BR> | |
Started at: Mon Oct 14 19:31:53 2019<BR> | |
Finished at: Mon Oct 14 19:36:21 2019 | |
<P><B>Clone # 53</B><BR>Distance between two fragments = 1 <BR>Clone size = 52<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./tests/unit_test.py"<BR>The first line is 364</TD><TD></TD><TD>Source file "./tests/unit_test.py"<BR>The first line is 436</TD></TR><TR> | |
<TD> | |
shipment = {'shipping_account': 77632, 'ship_date': '2018-08-09', 'carrier': 'dpd', 'packaging': 'drum', 'weight_units': 'LB', 'currency': 'USD', 'type': 'return', 'label_type': 'PNG', 'service': <span style="color: rgb(255, 0, 0);">'parcel_saturday'</span>, 'sender': {'email': '[email protected]', 'street1': '8 Market St', 'street2': 'Dutch Village', 'country': 'US', 'company': 'ZK Sender', 'city': 'San Francisco', 'postal_code': '38017', 'phone': '1234567890', 'state': 'TN', 'name': 'Zack King'}, 'dim_units': 'IN', 'test': True, 'recipient': {'email': '[email protected]', 'street1': '207 Continental Drive', 'street2': 'Petit Village', 'country': 'US', 'company': 'Tesla Inc', 'city': 'Newark', 'postal_code': '27215', 'phone': '293843995', 'state': 'NC', 'name': 'Bob Jones'}, 'packages': [{'freight_class': 'class_050', 'value': 25, 'length': 2.0, 'width': 3, 'height': 2, 'weight': 0.2, 'description': 'Electronics'}], 'references': [{'type': 'reference_number_1', 'value': 'INV-12345'}]}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
shipment = {'shipping_account': 77632, 'ship_date': '2018-08-09', 'carrier': 'dpd', 'packaging': 'drum', 'weight_units': 'LB', 'currency': 'USD', 'type': 'return', 'label_type': 'PNG', 'service': <span style="color: rgb(255, 0, 0);">'swapit_sunday'</span>, 'sender': {'email': '[email protected]', 'street1': '8 Market St', 'street2': 'Dutch Village', 'country': 'US', 'company': 'ZK Sender', 'city': 'San Francisco', 'postal_code': '38017', 'phone': '1234567890', 'state': 'TN', 'name': 'Zack King'}, 'dim_units': 'IN', 'test': True, 'recipient': {'email': '[email protected]', 'street1': '207 Continental Drive', 'street2': 'Petit Village', 'country': 'US', 'company': 'Tesla Inc', 'city': 'Newark', 'postal_code': '27215', 'phone': '293843995', 'state': 'NC', 'name': 'Bob Jones'}, 'packages': [{'freight_class': 'class_050', 'value': 25, 'length': 2.0, 'width': 3, 'height': 2, 'weight': 0.2, 'description': 'Electronics'}], 'references': [{'type': 'reference_number_1', 'value': 'INV-12345'}]}</TD> | |
</TR> | |
<TR> | |
<TD> | |
auth = {'password': 'gtVcN2veY9sqhhhGGN1Ltje4X', 'geosession': 'ZBLyivv3coYcYaWD', 'meter_number': '118777490', 'account_number': '630081440'}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
auth = {'password': 'gtVcN2veY9sqhhhGGN1Ltje4X', 'geosession': 'ZBLyivv3coYcYaWD', 'meter_number': '118777490', 'account_number': '630081440'}</TD> | |
</TR> | |
<TR> | |
<TD> | |
actual, headers = dpd._ship_create_request(shipment, auth)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
actual, headers = dpd._ship_create_request(shipment, auth)</TD> | |
</TR> | |
<TR> | |
<TD> | |
consignment = actual['consignment'][0]</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
consignment = actual['consignment'][0]</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 54</B><BR>Distance between two fragments = 1 <BR>Clone size = 52<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./tests/unit_test.py"<BR>The first line is 364</TD><TD></TD><TD>Source file "./tests/unit_test.py"<BR>The first line is 436</TD></TR><TR> | |
<TD> | |
shipment = {'shipping_account': 77632, 'ship_date': '2018-08-09', 'carrier': 'dpd', 'packaging': 'drum', 'weight_units': 'LB', 'currency': 'USD', 'type': 'return', 'label_type': 'PNG', 'service': <span style="color: rgb(255, 0, 0);">'parcel_saturday'</span>, 'sender': {'email': '[email protected]', 'street1': '8 Market St', 'street2': 'Dutch Village', 'country': 'US', 'company': 'ZK Sender', 'city': 'San Francisco', 'postal_code': '38017', 'phone': '1234567890', 'state': 'TN', 'name': 'Zack King'}, 'dim_units': 'IN', 'test': True, 'recipient': {'email': '[email protected]', 'street1': '207 Continental Drive', 'street2': 'Petit Village', 'country': 'US', 'company': 'Tesla Inc', 'city': 'Newark', 'postal_code': '27215', 'phone': '293843995', 'state': 'NC', 'name': 'Bob Jones'}, 'packages': [{'freight_class': 'class_050', 'value': 25, 'length': 2.0, 'width': 3, 'height': 2, 'weight': 0.2, 'description': 'Electronics'}], 'references': [{'type': 'reference_number_1', 'value': 'INV-12345'}]}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
shipment = {'shipping_account': 77632, 'ship_date': '2018-08-09', 'carrier': 'dpd', 'packaging': 'drum', 'weight_units': 'LB', 'currency': 'USD', 'type': 'return', 'label_type': 'PNG', 'service': <span style="color: rgb(255, 0, 0);">'swapit_sunday'</span>, 'sender': {'email': '[email protected]', 'street1': '8 Market St', 'street2': 'Dutch Village', 'country': 'US', 'company': 'ZK Sender', 'city': 'San Francisco', 'postal_code': '38017', 'phone': '1234567890', 'state': 'TN', 'name': 'Zack King'}, 'dim_units': 'IN', 'test': True, 'recipient': {'email': '[email protected]', 'street1': '207 Continental Drive', 'street2': 'Petit Village', 'country': 'US', 'company': 'Tesla Inc', 'city': 'Newark', 'postal_code': '27215', 'phone': '293843995', 'state': 'NC', 'name': 'Bob Jones'}, 'packages': [{'freight_class': 'class_050', 'value': 25, 'length': 2.0, 'width': 3, 'height': 2, 'weight': 0.2, 'description': 'Electronics'}], 'references': [{'type': 'reference_number_1', 'value': 'INV-12345'}]}</TD> | |
</TR> | |
<TR> | |
<TD> | |
auth = {'password': 'gtVcN2veY9sqhhhGGN1Ltje4X', 'geosession': 'ZBLyivv3coYcYaWD', 'meter_number': '118777490', 'account_number': '630081440'}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
auth = {'password': 'gtVcN2veY9sqhhhGGN1Ltje4X', 'geosession': 'ZBLyivv3coYcYaWD', 'meter_number': '118777490', 'account_number': '630081440'}</TD> | |
</TR> | |
<TR> | |
<TD> | |
actual, headers = dpd._ship_create_request(shipment, auth)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
actual, headers = dpd._ship_create_request(shipment, auth)</TD> | |
</TR> | |
<TR> | |
<TD> | |
consignment = actual['consignment'][0]</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
consignment = actual['consignment'][0]</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 59</B><BR>Distance between two fragments = 3 <BR>Clone size = 41<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/aramex.py"<BR>The first line is 349</TD><TD></TD><TD>Source file "./carriers/canpar.py"<BR>The first line is 411</TD></TR><TR> | |
<TD> | |
def rate(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">Aramex</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
rate_result = api_client.rate()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
result.update({'response': rate_result})<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def rate(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">CanparPost</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
rate_result = api_client.rate()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
result.update({'response': rate_result})<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">Aramex</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">CanparPost</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Aramex. You must call Aramex to cancel and/or update a previously scheduled shipment.'</span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Canpar. You must call Canpar to cancel and/or update a previously scheduled shipment.'</span>, status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def track(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">Aramex</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.track()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def track(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">CanparPost</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.track()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
</TR> | |
<TR> | |
<TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">Aramex</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">CanparPost</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel_pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">Aramex</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.cancel_pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
return [{'success': {'message': <span style="color: rgb(255, 0, 0);">'The pickup has been canceled successfully'</span>}}, result['request'], result['response']]</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel_pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">CanparPost</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.cancel_pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
return [{'success': {'message': <span style="color: rgb(255, 0, 0);">'Pickup cancelled'</span>}}, result['request'], result['response']]</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 60</B><BR>Distance between two fragments = 3 <BR>Clone size = 41<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/aramex.py"<BR>The first line is 349</TD><TD></TD><TD>Source file "./carriers/canpar.py"<BR>The first line is 411</TD></TR><TR> | |
<TD> | |
def rate(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
rate_result = api_client.rate()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
result.update({'response': rate_result})<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def rate(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">CanparPost</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
rate_result = api_client.rate()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
result.update({'response': rate_result})<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">CanparPost</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Aramex. You must call Aramex to cancel and/or update a previously scheduled shipment.'</span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Canpar. You must call Canpar to cancel and/or update a previously scheduled shipment.'</span>, status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def track(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.track()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def track(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">CanparPost</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.track()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
</TR> | |
<TR> | |
<TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">CanparPost</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel_pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.cancel_pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
return [{'success': {'message': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'The pickup has been canceled successfully'</span></span>}}, result['request'], result['response']]</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel_pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">CanparPost</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.cancel_pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
return [{'success': {'message': <span style="color: rgb(255, 0, 0);">'Pickup cancelled'</span>}}, result['request'], result['response']]</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 61</B><BR>Distance between two fragments = 3 <BR>Clone size = 41<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canpar.py"<BR>The first line is 411</TD><TD></TD><TD>Source file "./carriers/aramex.py"<BR>The first line is 349</TD></TR><TR> | |
<TD> | |
def rate(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
rate_result = api_client.rate()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
result.update({'response': rate_result})<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def rate(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">Aramex</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
rate_result = api_client.rate()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
result.update({'response': rate_result})<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">Aramex</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Canpar. You must call Canpar to cancel and/or update a previously scheduled shipment.'</span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Aramex. You must call Aramex to cancel and/or update a previously scheduled shipment.'</span>, status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def track(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.track()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def track(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">Aramex</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.track()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
</TR> | |
<TR> | |
<TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">Aramex</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel_pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.cancel_pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
return [{'success': {'message': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Pickup cancelled'</span></span>}}, result['request'], result['response']]</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel_pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">Aramex</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.cancel_pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
return [{'success': {'message': <span style="color: rgb(255, 0, 0);">'The pickup has been canceled successfully'</span>}}, result['request'], result['response']]</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 62</B><BR>Distance between two fragments = 3 <BR>Clone size = 41<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/aramex.py"<BR>The first line is 349</TD><TD></TD><TD>Source file "./carriers/canpar.py"<BR>The first line is 411</TD></TR><TR> | |
<TD> | |
def rate(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
rate_result = api_client.rate()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
result.update({'response': rate_result})<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def rate(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
rate_result = api_client.rate()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
result.update({'response': rate_result})<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Aramex. You must call Aramex to cancel and/or update a previously scheduled shipment.'</span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Canpar. You must call Canpar to cancel and/or update a previously scheduled shipment.'</span></span>, status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def track(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.track()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def track(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.track()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
</TR> | |
<TR> | |
<TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel_pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.cancel_pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
return [{'success': {'message': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'The pickup has been canceled successfully'</span></span>}}, result['request'], result['response']]</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel_pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.cancel_pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
return [{'success': {'message': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Pickup cancelled'</span></span>}}, result['request'], result['response']]</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 64</B><BR>Distance between two fragments = 4 <BR>Clone size = 40<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/base.py"<BR>The first line is 1821</TD><TD></TD><TD>Source file "./carriers/base.py"<BR>The first line is 1799</TD></TR><TR> | |
<TD> | |
if (printers.get(<span style="color: rgb(255, 0, 0);">'nonpdf'</span>, {}).get('id')) and (<span style="color: rgb(255, 0, 0);">non_pdf_labels</span>):<BR> | |
for label in <span style="color: rgb(255, 0, 0);">non_pdf_labels</span>:<BR> | |
if label.get('label').find('http') != -1:<BR> | |
b64_file_string = base64.b64encode(requests.get(label.get('label')).content)<BR> | |
else:<BR> | |
b64_file_string = label.get('label')<BR> | |
payload = {'printerId': int(printers.get(<span style="color: rgb(255, 0, 0);">'nonpdf'</span>, {}).get('id')), 'title': 'pdf_print', 'contentType': 'pdf_base64', 'content': b64_file_string, 'source': '{} {}'.format(account.name, account.company), 'options': {}}<BR> | |
if printers.get(<span style="color: rgb(255, 0, 0);">'nonpdf'</span>, {}).get('bin') != 'Default':<BR> | |
payload['options']['bin'] = printers.get(<span style="color: rgb(255, 0, 0);">'nonpdf'</span>, {}).get('bin')<BR> | |
requests.post(url=url, headers=headers, json=payload)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if (printers.get(<span style="color: rgb(255, 0, 0);">'pdf'</span>, {}).get('id')) and (<span style="color: rgb(255, 0, 0);">pdf_labels</span>):<BR> | |
for label in <span style="color: rgb(255, 0, 0);">pdf_labels</span>:<BR> | |
if label.get('label').find('http') != -1:<BR> | |
b64_file_string = base64.b64encode(requests.get(label.get('label')).content)<BR> | |
else:<BR> | |
b64_file_string = label.get('label')<BR> | |
payload = {'printerId': int(printers.get(<span style="color: rgb(255, 0, 0);">'pdf'</span>, {}).get('id')), 'title': 'pdf_print', 'contentType': 'pdf_base64', 'content': b64_file_string, 'source': '{} {}'.format(account.name, account.company), 'options': {}}<BR> | |
if printers.get(<span style="color: rgb(255, 0, 0);">'pdf'</span>, {}).get('bin') != 'Default':<BR> | |
payload['options']['bin'] = printers.get(<span style="color: rgb(255, 0, 0);">'pdf'</span>, {}).get('bin')<BR> | |
requests.post(url=url, headers=headers, json=payload)</TD> | |
</TR> | |
<TR> | |
<TD> | |
if (printers.get(<span style="color: rgb(255, 0, 0);">'docs'</span>, {}).get('id')) and (<span style="color: rgb(255, 0, 0);">docs_labels</span>):<BR> | |
for label in <span style="color: rgb(255, 0, 0);">docs_labels</span>:<BR> | |
if label.get('label').find('http') != -1:<BR> | |
b64_file_string = base64.b64encode(requests.get(label.get('label')).content)<BR> | |
else:<BR> | |
b64_file_string = label.get('label')<BR> | |
payload = {'printerId': int(printers.get(<span style="color: rgb(255, 0, 0);">'docs'</span>, {}).get('id')), 'title': 'pdf_print', 'contentType': 'pdf_base64', 'content': b64_file_string, 'source': '{} {}'.format(account.name, account.company), 'options': {}}<BR> | |
if printers.get(<span style="color: rgb(255, 0, 0);">'docs'</span>, {}).get('bin') != 'Default':<BR> | |
payload['options']['bin'] = printers.get(<span style="color: rgb(255, 0, 0);">'docs'</span>, {}).get('bin')<BR> | |
requests.post(url=url, headers=headers, json=payload)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if (printers.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'nonpdf'</span></span>, {}).get('id')) and (<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">non_pdf_labels</span></span>):<BR> | |
for label in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">non_pdf_labels</span></span>:<BR> | |
if label.get('label').find('http') != -1:<BR> | |
b64_file_string = base64.b64encode(requests.get(label.get('label')).content)<BR> | |
else:<BR> | |
b64_file_string = label.get('label')<BR> | |
payload = {'printerId': int(printers.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'nonpdf'</span></span>, {}).get('id')), 'title': 'pdf_print', 'contentType': 'pdf_base64', 'content': b64_file_string, 'source': '{} {}'.format(account.name, account.company), 'options': {}}<BR> | |
if printers.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'nonpdf'</span></span>, {}).get('bin') != 'Default':<BR> | |
payload['options']['bin'] = printers.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'nonpdf'</span></span>, {}).get('bin')<BR> | |
requests.post(url=url, headers=headers, json=payload)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 65</B><BR>Distance between two fragments = 4 <BR>Clone size = 40<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/base.py"<BR>The first line is 1821</TD><TD></TD><TD>Source file "./carriers/base.py"<BR>The first line is 1799</TD></TR><TR> | |
<TD> | |
if (printers.get(<span style="color: rgb(255, 0, 0);">'nonpdf'</span>, {}).get('id')) and (<span style="color: rgb(255, 0, 0);">non_pdf_labels</span>):<BR> | |
for label in <span style="color: rgb(255, 0, 0);">non_pdf_labels</span>:<BR> | |
if label.get('label').find('http') != -1:<BR> | |
b64_file_string = base64.b64encode(requests.get(label.get('label')).content)<BR> | |
else:<BR> | |
b64_file_string = label.get('label')<BR> | |
payload = {'printerId': int(printers.get(<span style="color: rgb(255, 0, 0);">'nonpdf'</span>, {}).get('id')), 'title': 'pdf_print', 'contentType': 'pdf_base64', 'content': b64_file_string, 'source': '{} {}'.format(account.name, account.company), 'options': {}}<BR> | |
if printers.get(<span style="color: rgb(255, 0, 0);">'nonpdf'</span>, {}).get('bin') != 'Default':<BR> | |
payload['options']['bin'] = printers.get(<span style="color: rgb(255, 0, 0);">'nonpdf'</span>, {}).get('bin')<BR> | |
requests.post(url=url, headers=headers, json=payload)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if (printers.get(<span style="color: rgb(255, 0, 0);">'pdf'</span>, {}).get('id')) and (<span style="color: rgb(255, 0, 0);">pdf_labels</span>):<BR> | |
for label in <span style="color: rgb(255, 0, 0);">pdf_labels</span>:<BR> | |
if label.get('label').find('http') != -1:<BR> | |
b64_file_string = base64.b64encode(requests.get(label.get('label')).content)<BR> | |
else:<BR> | |
b64_file_string = label.get('label')<BR> | |
payload = {'printerId': int(printers.get(<span style="color: rgb(255, 0, 0);">'pdf'</span>, {}).get('id')), 'title': 'pdf_print', 'contentType': 'pdf_base64', 'content': b64_file_string, 'source': '{} {}'.format(account.name, account.company), 'options': {}}<BR> | |
if printers.get(<span style="color: rgb(255, 0, 0);">'pdf'</span>, {}).get('bin') != 'Default':<BR> | |
payload['options']['bin'] = printers.get(<span style="color: rgb(255, 0, 0);">'pdf'</span>, {}).get('bin')<BR> | |
requests.post(url=url, headers=headers, json=payload)</TD> | |
</TR> | |
<TR> | |
<TD> | |
if (printers.get(<span style="color: rgb(255, 0, 0);">'docs'</span>, {}).get('id')) and (<span style="color: rgb(255, 0, 0);">docs_labels</span>):<BR> | |
for label in <span style="color: rgb(255, 0, 0);">docs_labels</span>:<BR> | |
if label.get('label').find('http') != -1:<BR> | |
b64_file_string = base64.b64encode(requests.get(label.get('label')).content)<BR> | |
else:<BR> | |
b64_file_string = label.get('label')<BR> | |
payload = {'printerId': int(printers.get(<span style="color: rgb(255, 0, 0);">'docs'</span>, {}).get('id')), 'title': 'pdf_print', 'contentType': 'pdf_base64', 'content': b64_file_string, 'source': '{} {}'.format(account.name, account.company), 'options': {}}<BR> | |
if printers.get(<span style="color: rgb(255, 0, 0);">'docs'</span>, {}).get('bin') != 'Default':<BR> | |
payload['options']['bin'] = printers.get(<span style="color: rgb(255, 0, 0);">'docs'</span>, {}).get('bin')<BR> | |
requests.post(url=url, headers=headers, json=payload)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if (printers.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'nonpdf'</span></span>, {}).get('id')) and (<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">non_pdf_labels</span></span>):<BR> | |
for label in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">non_pdf_labels</span></span>:<BR> | |
if label.get('label').find('http') != -1:<BR> | |
b64_file_string = base64.b64encode(requests.get(label.get('label')).content)<BR> | |
else:<BR> | |
b64_file_string = label.get('label')<BR> | |
payload = {'printerId': int(printers.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'nonpdf'</span></span>, {}).get('id')), 'title': 'pdf_print', 'contentType': 'pdf_base64', 'content': b64_file_string, 'source': '{} {}'.format(account.name, account.company), 'options': {}}<BR> | |
if printers.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'nonpdf'</span></span>, {}).get('bin') != 'Default':<BR> | |
payload['options']['bin'] = printers.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'nonpdf'</span></span>, {}).get('bin')<BR> | |
requests.post(url=url, headers=headers, json=payload)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 72</B><BR>Distance between two fragments = 4 <BR>Clone size = 25<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 666</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 820</TD></TR><TR> | |
<TD> | |
if 'package_type' in pkg:<BR> | |
package_type = shipment_packaging_type_code(shipment, pkg['package_type'])<BR> | |
else:<BR> | |
package_type = shipment_packaging_type</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
if 'package_type' in pkg:<BR> | |
package_type = shipment_packaging_type_code(shipment, pkg['package_type'])<BR> | |
else:<BR> | |
package_type = shipment_packaging_type</TD> | |
</TR> | |
<TR> | |
<TD> | |
requested_package_line_items = ['RequestedPackageLineItems', ['SequenceNumber', str(<span style="color: rgb(255, 0, 0);">part</span>)], ['Weight', ['Units', shipment['weight_units']], ['Value', str(pkg['weight'])]]]</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
requested_package_line_items = ['RequestedPackageLineItems', ['SequenceNumber', str(<span style="color: rgb(255, 0, 0);">(i) + (1)</span>)], ['Weight', ['Units', shipment['weight_units']], ['Value', str(pkg['weight'])]]]</TD> | |
</TR> | |
<TR> | |
<TD> | |
if 'length' in pkg:<BR> | |
requested_package_line_items.append(['Dimensions', ['Length', str(int(pkg['length']))], ['Width', str(int(pkg['width']))], ['Height', str(int(pkg['height']))], ['Units', shipment['dim_units']]])</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
if 'length' in pkg:<BR> | |
requested_package_line_items.append(['Dimensions', ['Length', str(int(pkg['length']))], ['Width', str(int(pkg['width']))], ['Height', str(int(pkg['height']))], ['Units', shipment['dim_units']]])</TD> | |
</TR> | |
<TR> | |
<TD> | |
if package_type:<BR> | |
requested_package_line_items.append(['PhysicalPackaging', package_type])</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
if package_type:<BR> | |
requested_package_line_items.append(['PhysicalPackaging', package_type])</TD> | |
</TR> | |
<TR> | |
<TD> | |
requested_package_line_items.append(['AssociatedFreightLineItems', ['Id', ('Y00') + (str(<span style="color: rgb(255, 0, 0);">part</span>))]])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
requested_package_line_items.append(['AssociatedFreightLineItems', ['Id', ('Y00') + (str(<span style="color: rgb(255, 0, 0);">(i) + (1)</span>))]])</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 73</B><BR>Distance between two fragments = 4 <BR>Clone size = 25<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 666</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 820</TD></TR><TR> | |
<TD> | |
if 'package_type' in pkg:<BR> | |
package_type = shipment_packaging_type_code(shipment, pkg['package_type'])<BR> | |
else:<BR> | |
package_type = shipment_packaging_type</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
if 'package_type' in pkg:<BR> | |
package_type = shipment_packaging_type_code(shipment, pkg['package_type'])<BR> | |
else:<BR> | |
package_type = shipment_packaging_type</TD> | |
</TR> | |
<TR> | |
<TD> | |
requested_package_line_items = ['RequestedPackageLineItems', ['SequenceNumber', str(<span style="color: rgb(255, 0, 0);">part</span>)], ['Weight', ['Units', shipment['weight_units']], ['Value', str(pkg['weight'])]]]</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
requested_package_line_items = ['RequestedPackageLineItems', ['SequenceNumber', str(<span style="color: rgb(255, 0, 0);">(i) + (1)</span>)], ['Weight', ['Units', shipment['weight_units']], ['Value', str(pkg['weight'])]]]</TD> | |
</TR> | |
<TR> | |
<TD> | |
if 'length' in pkg:<BR> | |
requested_package_line_items.append(['Dimensions', ['Length', str(int(pkg['length']))], ['Width', str(int(pkg['width']))], ['Height', str(int(pkg['height']))], ['Units', shipment['dim_units']]])</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
if 'length' in pkg:<BR> | |
requested_package_line_items.append(['Dimensions', ['Length', str(int(pkg['length']))], ['Width', str(int(pkg['width']))], ['Height', str(int(pkg['height']))], ['Units', shipment['dim_units']]])</TD> | |
</TR> | |
<TR> | |
<TD> | |
if package_type:<BR> | |
requested_package_line_items.append(['PhysicalPackaging', package_type])</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
if package_type:<BR> | |
requested_package_line_items.append(['PhysicalPackaging', package_type])</TD> | |
</TR> | |
<TR> | |
<TD> | |
requested_package_line_items.append(['AssociatedFreightLineItems', ['Id', ('Y00') + (str(<span style="color: rgb(255, 0, 0);">part</span>))]])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
requested_package_line_items.append(['AssociatedFreightLineItems', ['Id', ('Y00') + (str(<span style="color: rgb(255, 0, 0);">(i) + (1)</span>))]])</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 74</B><BR>Distance between two fragments = 2 <BR>Clone size = 23<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 304</TD><TD></TD><TD>Source file "./carriers/aramex.py"<BR>The first line is 361</TD></TR><TR> | |
<TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">DPDGermanyPost</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for DPD Germany. You must call DPD Germany to cancel and/or update a previously scheduled shipment.'</span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Aramex. You must call Aramex to cancel and/or update a previously scheduled shipment.'</span></span></span>, status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def track(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">DPDGermanyPost</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.track()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def track(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.track()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
</TR> | |
<TR> | |
<TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">DPDGermanyPost</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 75</B><BR>Distance between two fragments = 2 <BR>Clone size = 23<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 304</TD><TD></TD><TD>Source file "./carriers/canpar.py"<BR>The first line is 423</TD></TR><TR> | |
<TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for DPD Germany. You must call DPD Germany to cancel and/or update a previously scheduled shipment.'</span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Canpar. You must call Canpar to cancel and/or update a previously scheduled shipment.'</span></span></span>, status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def track(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.track()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def track(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.track()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
</TR> | |
<TR> | |
<TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 76</B><BR>Distance between two fragments = 2 <BR>Clone size = 23<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 304</TD><TD></TD><TD>Source file "./carriers/aramex.py"<BR>The first line is 361</TD></TR><TR> | |
<TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for DPD Germany. You must call DPD Germany to cancel and/or update a previously scheduled shipment.'</span></span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Aramex. You must call Aramex to cancel and/or update a previously scheduled shipment.'</span></span></span>, status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def track(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.track()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def track(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.track()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
</TR> | |
<TR> | |
<TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 77</B><BR>Distance between two fragments = 2 <BR>Clone size = 23<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 304</TD><TD></TD><TD>Source file "./carriers/canpar.py"<BR>The first line is 423</TD></TR><TR> | |
<TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for DPD Germany. You must call DPD Germany to cancel and/or update a previously scheduled shipment.'</span></span></span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Canpar. You must call Canpar to cancel and/or update a previously scheduled shipment.'</span></span></span>, status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def track(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.track()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def track(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.track()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
</TR> | |
<TR> | |
<TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 78</B><BR>Distance between two fragments = 2 <BR>Clone size = 23<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 304</TD><TD></TD><TD>Source file "./carriers/aramex.py"<BR>The first line is 361</TD></TR><TR> | |
<TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">DPDGermanyPost</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for DPD Germany. You must call DPD Germany to cancel and/or update a previously scheduled shipment.'</span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Aramex. You must call Aramex to cancel and/or update a previously scheduled shipment.'</span></span></span></span>, status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def track(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">DPDGermanyPost</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.track()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def track(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.track()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
</TR> | |
<TR> | |
<TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">DPDGermanyPost</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 79</B><BR>Distance between two fragments = 2 <BR>Clone size = 23<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 304</TD><TD></TD><TD>Source file "./carriers/canpar.py"<BR>The first line is 423</TD></TR><TR> | |
<TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for DPD Germany. You must call DPD Germany to cancel and/or update a previously scheduled shipment.'</span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Canpar. You must call Canpar to cancel and/or update a previously scheduled shipment.'</span></span></span></span>, status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def track(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.track()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def track(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.track()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
</TR> | |
<TR> | |
<TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 80</B><BR>Distance between two fragments = 2 <BR>Clone size = 23<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 304</TD><TD></TD><TD>Source file "./carriers/aramex.py"<BR>The first line is 361</TD></TR><TR> | |
<TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for DPD Germany. You must call DPD Germany to cancel and/or update a previously scheduled shipment.'</span></span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Aramex. You must call Aramex to cancel and/or update a previously scheduled shipment.'</span></span></span></span>, status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def track(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.track()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def track(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.track()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
</TR> | |
<TR> | |
<TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 81</B><BR>Distance between two fragments = 2 <BR>Clone size = 23<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 304</TD><TD></TD><TD>Source file "./carriers/canpar.py"<BR>The first line is 423</TD></TR><TR> | |
<TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for DPD Germany. You must call DPD Germany to cancel and/or update a previously scheduled shipment.'</span></span></span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Canpar. You must call Canpar to cancel and/or update a previously scheduled shipment.'</span></span></span></span>, status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def track(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.track()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def track(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.track()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
</TR> | |
<TR> | |
<TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 82</B><BR>Distance between two fragments = 3 <BR>Clone size = 23<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./account.py"<BR>The first line is 357</TD><TD></TD><TD>Source file "./account.py"<BR>The first line is 331</TD></TR><TR> | |
<TD> | |
if (<span style="color: rgb(255, 0, 0);">nonpdf</span>.get('printer')) and (<span style="color: rgb(255, 0, 0);">non_pdf_labels</span>):<BR> | |
for label in <span style="color: rgb(255, 0, 0);">non_pdf_labels</span>:<BR> | |
if label.get('label').find('http') != -1:<BR> | |
b64_file_string = base64.b64encode(requests.get(label.get('label')).content)<BR> | |
else:<BR> | |
b64_file_string = label.get('label')<BR> | |
payload = {'printerId': int(<span style="color: rgb(255, 0, 0);">nonpdf</span>.get('printer')), 'title': 'pdf_print', 'contentType': 'pdf_base64', 'content': b64_file_string, 'source': '{} {}'.format(self.account.name, self.account.company), 'options': {}}<BR> | |
if <span style="color: rgb(255, 0, 0);">nonpdf</span>.get('bin') != 'Default':<BR> | |
payload['options']['bin'] = <span style="color: rgb(255, 0, 0);">nonpdf</span>.get('bin')<BR> | |
printnode_request = requests.post(url=url, headers=headers, json=payload)<BR> | |
if printnode_request.status_code == 201:<BR> | |
success_results[<span style="color: rgb(255, 0, 0);">'nonpdf'</span>].append(int(printnode_request.content))<BR> | |
else:<BR> | |
failed_results[<span style="color: rgb(255, 0, 0);">'nonpdf'</span>].append(label.get('label'))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if (<span style="color: rgb(255, 0, 0);">pdf</span>.get('printer')) and (<span style="color: rgb(255, 0, 0);">pdf_labels</span>):<BR> | |
for label in <span style="color: rgb(255, 0, 0);">pdf_labels</span>:<BR> | |
if label.get('label').find('http') != -1:<BR> | |
b64_file_string = base64.b64encode(requests.get(label.get('label')).content)<BR> | |
else:<BR> | |
b64_file_string = label.get('label')<BR> | |
payload = {'printerId': int(<span style="color: rgb(255, 0, 0);">pdf</span>.get('printer')), 'title': 'pdf_print', 'contentType': 'pdf_base64', 'content': b64_file_string, 'source': '{} {}'.format(self.account.name, self.account.company), 'options': {}}<BR> | |
if <span style="color: rgb(255, 0, 0);">pdf</span>.get('bin') != 'Default':<BR> | |
payload['options']['bin'] = <span style="color: rgb(255, 0, 0);">pdf</span>.get('bin')<BR> | |
printnode_request = requests.post(url=url, headers=headers, json=payload)<BR> | |
if printnode_request.status_code == 201:<BR> | |
success_results[<span style="color: rgb(255, 0, 0);">'pdf'</span>].append(int(printnode_request.content))<BR> | |
else:<BR> | |
failed_results[<span style="color: rgb(255, 0, 0);">'pdf'</span>].append(label.get('label'))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 83</B><BR>Distance between two fragments = 3 <BR>Clone size = 23<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./account.py"<BR>The first line is 383</TD><TD></TD><TD>Source file "./account.py"<BR>The first line is 357</TD></TR><TR> | |
<TD> | |
if (<span style="color: rgb(255, 0, 0);">docs</span>.get('printer')) and (<span style="color: rgb(255, 0, 0);">docs_labels</span>):<BR> | |
for label in <span style="color: rgb(255, 0, 0);">docs_labels</span>:<BR> | |
if label.get('label').find('http') != -1:<BR> | |
b64_file_string = base64.b64encode(requests.get(label.get('label')).content)<BR> | |
else:<BR> | |
b64_file_string = label.get('label')<BR> | |
payload = {'printerId': int(<span style="color: rgb(255, 0, 0);">docs</span>.get('printer')), 'title': 'pdf_print', 'contentType': 'pdf_base64', 'content': b64_file_string, 'source': '{} {}'.format(self.account.name, self.account.company), 'options': {}}<BR> | |
if <span style="color: rgb(255, 0, 0);">docs</span>.get('bin') != 'Default':<BR> | |
payload['options']['bin'] = <span style="color: rgb(255, 0, 0);">docs</span>.get('bin')<BR> | |
printnode_request = requests.post(url=url, headers=headers, json=payload)<BR> | |
if printnode_request.status_code == 201:<BR> | |
success_results[<span style="color: rgb(255, 0, 0);">'docs'</span>].append(int(printnode_request.content))<BR> | |
else:<BR> | |
failed_results[<span style="color: rgb(255, 0, 0);">'docs'</span>].append(label.get('label'))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if (<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">nonpdf</span></span>.get('printer')) and (<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">non_pdf_labels</span></span>):<BR> | |
for label in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">non_pdf_labels</span></span>:<BR> | |
if label.get('label').find('http') != -1:<BR> | |
b64_file_string = base64.b64encode(requests.get(label.get('label')).content)<BR> | |
else:<BR> | |
b64_file_string = label.get('label')<BR> | |
payload = {'printerId': int(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">nonpdf</span></span>.get('printer')), 'title': 'pdf_print', 'contentType': 'pdf_base64', 'content': b64_file_string, 'source': '{} {}'.format(self.account.name, self.account.company), 'options': {}}<BR> | |
if <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">nonpdf</span></span>.get('bin') != 'Default':<BR> | |
payload['options']['bin'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">nonpdf</span></span>.get('bin')<BR> | |
printnode_request = requests.post(url=url, headers=headers, json=payload)<BR> | |
if printnode_request.status_code == 201:<BR> | |
success_results[<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'nonpdf'</span></span>].append(int(printnode_request.content))<BR> | |
else:<BR> | |
failed_results[<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'nonpdf'</span></span>].append(label.get('label'))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 84</B><BR>Distance between two fragments = 3 <BR>Clone size = 23<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./account.py"<BR>The first line is 357</TD><TD></TD><TD>Source file "./account.py"<BR>The first line is 331</TD></TR><TR> | |
<TD> | |
if (<span style="color: rgb(255, 0, 0);">nonpdf</span>.get('printer')) and (<span style="color: rgb(255, 0, 0);">non_pdf_labels</span>):<BR> | |
for label in <span style="color: rgb(255, 0, 0);">non_pdf_labels</span>:<BR> | |
if label.get('label').find('http') != -1:<BR> | |
b64_file_string = base64.b64encode(requests.get(label.get('label')).content)<BR> | |
else:<BR> | |
b64_file_string = label.get('label')<BR> | |
payload = {'printerId': int(<span style="color: rgb(255, 0, 0);">nonpdf</span>.get('printer')), 'title': 'pdf_print', 'contentType': 'pdf_base64', 'content': b64_file_string, 'source': '{} {}'.format(self.account.name, self.account.company), 'options': {}}<BR> | |
if <span style="color: rgb(255, 0, 0);">nonpdf</span>.get('bin') != 'Default':<BR> | |
payload['options']['bin'] = <span style="color: rgb(255, 0, 0);">nonpdf</span>.get('bin')<BR> | |
printnode_request = requests.post(url=url, headers=headers, json=payload)<BR> | |
if printnode_request.status_code == 201:<BR> | |
success_results[<span style="color: rgb(255, 0, 0);">'nonpdf'</span>].append(int(printnode_request.content))<BR> | |
else:<BR> | |
failed_results[<span style="color: rgb(255, 0, 0);">'nonpdf'</span>].append(label.get('label'))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if (<span style="color: rgb(255, 0, 0);">pdf</span>.get('printer')) and (<span style="color: rgb(255, 0, 0);">pdf_labels</span>):<BR> | |
for label in <span style="color: rgb(255, 0, 0);">pdf_labels</span>:<BR> | |
if label.get('label').find('http') != -1:<BR> | |
b64_file_string = base64.b64encode(requests.get(label.get('label')).content)<BR> | |
else:<BR> | |
b64_file_string = label.get('label')<BR> | |
payload = {'printerId': int(<span style="color: rgb(255, 0, 0);">pdf</span>.get('printer')), 'title': 'pdf_print', 'contentType': 'pdf_base64', 'content': b64_file_string, 'source': '{} {}'.format(self.account.name, self.account.company), 'options': {}}<BR> | |
if <span style="color: rgb(255, 0, 0);">pdf</span>.get('bin') != 'Default':<BR> | |
payload['options']['bin'] = <span style="color: rgb(255, 0, 0);">pdf</span>.get('bin')<BR> | |
printnode_request = requests.post(url=url, headers=headers, json=payload)<BR> | |
if printnode_request.status_code == 201:<BR> | |
success_results[<span style="color: rgb(255, 0, 0);">'pdf'</span>].append(int(printnode_request.content))<BR> | |
else:<BR> | |
failed_results[<span style="color: rgb(255, 0, 0);">'pdf'</span>].append(label.get('label'))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 85</B><BR>Distance between two fragments = 3 <BR>Clone size = 23<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./account.py"<BR>The first line is 383</TD><TD></TD><TD>Source file "./account.py"<BR>The first line is 357</TD></TR><TR> | |
<TD> | |
if (<span style="color: rgb(255, 0, 0);">docs</span>.get('printer')) and (<span style="color: rgb(255, 0, 0);">docs_labels</span>):<BR> | |
for label in <span style="color: rgb(255, 0, 0);">docs_labels</span>:<BR> | |
if label.get('label').find('http') != -1:<BR> | |
b64_file_string = base64.b64encode(requests.get(label.get('label')).content)<BR> | |
else:<BR> | |
b64_file_string = label.get('label')<BR> | |
payload = {'printerId': int(<span style="color: rgb(255, 0, 0);">docs</span>.get('printer')), 'title': 'pdf_print', 'contentType': 'pdf_base64', 'content': b64_file_string, 'source': '{} {}'.format(self.account.name, self.account.company), 'options': {}}<BR> | |
if <span style="color: rgb(255, 0, 0);">docs</span>.get('bin') != 'Default':<BR> | |
payload['options']['bin'] = <span style="color: rgb(255, 0, 0);">docs</span>.get('bin')<BR> | |
printnode_request = requests.post(url=url, headers=headers, json=payload)<BR> | |
if printnode_request.status_code == 201:<BR> | |
success_results[<span style="color: rgb(255, 0, 0);">'docs'</span>].append(int(printnode_request.content))<BR> | |
else:<BR> | |
failed_results[<span style="color: rgb(255, 0, 0);">'docs'</span>].append(label.get('label'))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if (<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">nonpdf</span></span>.get('printer')) and (<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">non_pdf_labels</span></span>):<BR> | |
for label in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">non_pdf_labels</span></span>:<BR> | |
if label.get('label').find('http') != -1:<BR> | |
b64_file_string = base64.b64encode(requests.get(label.get('label')).content)<BR> | |
else:<BR> | |
b64_file_string = label.get('label')<BR> | |
payload = {'printerId': int(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">nonpdf</span></span>.get('printer')), 'title': 'pdf_print', 'contentType': 'pdf_base64', 'content': b64_file_string, 'source': '{} {}'.format(self.account.name, self.account.company), 'options': {}}<BR> | |
if <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">nonpdf</span></span>.get('bin') != 'Default':<BR> | |
payload['options']['bin'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">nonpdf</span></span>.get('bin')<BR> | |
printnode_request = requests.post(url=url, headers=headers, json=payload)<BR> | |
if printnode_request.status_code == 201:<BR> | |
success_results[<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'nonpdf'</span></span>].append(int(printnode_request.content))<BR> | |
else:<BR> | |
failed_results[<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'nonpdf'</span></span>].append(label.get('label'))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 86</B><BR>Distance between two fragments = 3 <BR>Clone size = 23<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./account.py"<BR>The first line is 383</TD><TD></TD><TD>Source file "./account.py"<BR>The first line is 331</TD></TR><TR> | |
<TD> | |
if (<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">docs</span></span>.get('printer')) and (<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">docs_labels</span></span>):<BR> | |
for label in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">docs_labels</span></span>:<BR> | |
if label.get('label').find('http') != -1:<BR> | |
b64_file_string = base64.b64encode(requests.get(label.get('label')).content)<BR> | |
else:<BR> | |
b64_file_string = label.get('label')<BR> | |
payload = {'printerId': int(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">docs</span></span>.get('printer')), 'title': 'pdf_print', 'contentType': 'pdf_base64', 'content': b64_file_string, 'source': '{} {}'.format(self.account.name, self.account.company), 'options': {}}<BR> | |
if <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">docs</span></span>.get('bin') != 'Default':<BR> | |
payload['options']['bin'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">docs</span></span>.get('bin')<BR> | |
printnode_request = requests.post(url=url, headers=headers, json=payload)<BR> | |
if printnode_request.status_code == 201:<BR> | |
success_results[<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'docs'</span></span>].append(int(printnode_request.content))<BR> | |
else:<BR> | |
failed_results[<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'docs'</span></span>].append(label.get('label'))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if (<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pdf</span></span>.get('printer')) and (<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pdf_labels</span></span>):<BR> | |
for label in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pdf_labels</span></span>:<BR> | |
if label.get('label').find('http') != -1:<BR> | |
b64_file_string = base64.b64encode(requests.get(label.get('label')).content)<BR> | |
else:<BR> | |
b64_file_string = label.get('label')<BR> | |
payload = {'printerId': int(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pdf</span></span>.get('printer')), 'title': 'pdf_print', 'contentType': 'pdf_base64', 'content': b64_file_string, 'source': '{} {}'.format(self.account.name, self.account.company), 'options': {}}<BR> | |
if <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pdf</span></span>.get('bin') != 'Default':<BR> | |
payload['options']['bin'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pdf</span></span>.get('bin')<BR> | |
printnode_request = requests.post(url=url, headers=headers, json=payload)<BR> | |
if printnode_request.status_code == 201:<BR> | |
success_results[<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pdf'</span></span>].append(int(printnode_request.content))<BR> | |
else:<BR> | |
failed_results[<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pdf'</span></span>].append(label.get('label'))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 87</B><BR>Distance between two fragments = 3 <BR>Clone size = 23<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./account.py"<BR>The first line is 383</TD><TD></TD><TD>Source file "./account.py"<BR>The first line is 331</TD></TR><TR> | |
<TD> | |
if (<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">docs</span></span>.get('printer')) and (<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">docs_labels</span></span>):<BR> | |
for label in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">docs_labels</span></span>:<BR> | |
if label.get('label').find('http') != -1:<BR> | |
b64_file_string = base64.b64encode(requests.get(label.get('label')).content)<BR> | |
else:<BR> | |
b64_file_string = label.get('label')<BR> | |
payload = {'printerId': int(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">docs</span></span>.get('printer')), 'title': 'pdf_print', 'contentType': 'pdf_base64', 'content': b64_file_string, 'source': '{} {}'.format(self.account.name, self.account.company), 'options': {}}<BR> | |
if <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">docs</span></span>.get('bin') != 'Default':<BR> | |
payload['options']['bin'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">docs</span></span>.get('bin')<BR> | |
printnode_request = requests.post(url=url, headers=headers, json=payload)<BR> | |
if printnode_request.status_code == 201:<BR> | |
success_results[<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'docs'</span></span>].append(int(printnode_request.content))<BR> | |
else:<BR> | |
failed_results[<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'docs'</span></span>].append(label.get('label'))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if (<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pdf</span></span>.get('printer')) and (<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pdf_labels</span></span>):<BR> | |
for label in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pdf_labels</span></span>:<BR> | |
if label.get('label').find('http') != -1:<BR> | |
b64_file_string = base64.b64encode(requests.get(label.get('label')).content)<BR> | |
else:<BR> | |
b64_file_string = label.get('label')<BR> | |
payload = {'printerId': int(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pdf</span></span>.get('printer')), 'title': 'pdf_print', 'contentType': 'pdf_base64', 'content': b64_file_string, 'source': '{} {}'.format(self.account.name, self.account.company), 'options': {}}<BR> | |
if <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pdf</span></span>.get('bin') != 'Default':<BR> | |
payload['options']['bin'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pdf</span></span>.get('bin')<BR> | |
printnode_request = requests.post(url=url, headers=headers, json=payload)<BR> | |
if printnode_request.status_code == 201:<BR> | |
success_results[<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pdf'</span></span>].append(int(printnode_request.content))<BR> | |
else:<BR> | |
failed_results[<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pdf'</span></span>].append(label.get('label'))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 90</B><BR>Distance between two fragments = 4 <BR>Clone size = 22<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/base.py"<BR>The first line is 1641</TD><TD></TD><TD>Source file "./carriers/base.py"<BR>The first line is 1699</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">req</span> = <span style="color: rgb(255, 0, 0);">deepcopy</span>(<span style="color: rgb(255, 0, 0);">body</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">printers</span> = <span style="color: rgb(255, 0, 0);">body.pop</span>(<span style="color: rgb(255, 0, 0);">'printers'</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
shipment = body['shipment']</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
shipment = body['shipment']</TD> | |
</TR> | |
<TR> | |
<TD> | |
remove_null_fields(shipment)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
remove_null_fields(shipment)</TD> | |
</TR> | |
<TR> | |
<TD> | |
sa = _get_shipping_account_model(shipment, account_key)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
sa = _get_shipping_account_model(shipment, account_key)</TD> | |
</TR> | |
<TR> | |
<TD> | |
carrier = shipment['carrier']</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
carrier = shipment['carrier']</TD> | |
</TR> | |
<TR> | |
<TD> | |
schema = deepcopy(SHIP_CARRIER_SCHEMAS[carrier])</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
schema = deepcopy(SHIP_CARRIER_SCHEMAS[carrier])</TD> | |
</TR> | |
<TR> | |
<TD> | |
if shipment_is_international(shipment):<BR> | |
carrier_data = data.carrier(carrier)<BR> | |
if 'customs' in carrier_data:<BR> | |
customs_fields = carrier_data['customs']<BR> | |
_shipment_schema_add_fields(schema['properties']['shipment'], customs_fields)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
if shipment_is_international(shipment):<BR> | |
carrier_data = data.carrier(carrier)<BR> | |
if 'customs' in carrier_data:<BR> | |
customs_fields = carrier_data['customs']<BR> | |
_shipment_schema_add_fields(schema['properties']['shipment'], customs_fields)</TD> | |
</TR> | |
<TR> | |
<TD> | |
shipment_schema = schema['properties']['shipment']</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
shipment_schema = schema['properties']['shipment']</TD> | |
</TR> | |
<TR> | |
<TD> | |
_shipment_schema_add_special_services_fields(shipment_schema, shipment)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_shipment_schema_add_special_services_fields(shipment_schema, shipment)</TD> | |
</TR> | |
<TR> | |
<TD> | |
if 'label_type' in shipment:<BR> | |
label_type_data = shipment_label_type(shipment, shipment['label_type'])<BR> | |
if label_type_data is not None:<BR> | |
_schema_add_enum(shipment_schema, 'label_size', label_type_data['sizes'], required=False)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
if 'label_type' in shipment:<BR> | |
label_type_data = shipment_label_type(shipment, shipment['label_type'])<BR> | |
if label_type_data is not None:<BR> | |
_schema_add_enum(shipment_schema, 'label_size', label_type_data['sizes'], required=False)</TD> | |
</TR> | |
<TR> | |
<TD> | |
validate(body, schema)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
validate(body, schema)</TD> | |
</TR> | |
<TR> | |
<TD> | |
ship_date = parse_date(shipment['ship_date'])</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
ship_date = parse_date(shipment['ship_date'])</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 91</B><BR>Distance between two fragments = 4 <BR>Clone size = 22<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/base.py"<BR>The first line is 1641</TD><TD></TD><TD>Source file "./carriers/base.py"<BR>The first line is 1699</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">req</span> = <span style="color: rgb(255, 0, 0);">deepcopy</span>(<span style="color: rgb(255, 0, 0);">body</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">printers</span> = <span style="color: rgb(255, 0, 0);">body.pop</span>(<span style="color: rgb(255, 0, 0);">'printers'</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
shipment = body['shipment']</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
shipment = body['shipment']</TD> | |
</TR> | |
<TR> | |
<TD> | |
remove_null_fields(shipment)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
remove_null_fields(shipment)</TD> | |
</TR> | |
<TR> | |
<TD> | |
sa = _get_shipping_account_model(shipment, account_key)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
sa = _get_shipping_account_model(shipment, account_key)</TD> | |
</TR> | |
<TR> | |
<TD> | |
carrier = shipment['carrier']</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
carrier = shipment['carrier']</TD> | |
</TR> | |
<TR> | |
<TD> | |
schema = deepcopy(SHIP_CARRIER_SCHEMAS[carrier])</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
schema = deepcopy(SHIP_CARRIER_SCHEMAS[carrier])</TD> | |
</TR> | |
<TR> | |
<TD> | |
if shipment_is_international(shipment):<BR> | |
carrier_data = data.carrier(carrier)<BR> | |
if 'customs' in carrier_data:<BR> | |
customs_fields = carrier_data['customs']<BR> | |
_shipment_schema_add_fields(schema['properties']['shipment'], customs_fields)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
if shipment_is_international(shipment):<BR> | |
carrier_data = data.carrier(carrier)<BR> | |
if 'customs' in carrier_data:<BR> | |
customs_fields = carrier_data['customs']<BR> | |
_shipment_schema_add_fields(schema['properties']['shipment'], customs_fields)</TD> | |
</TR> | |
<TR> | |
<TD> | |
shipment_schema = schema['properties']['shipment']</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
shipment_schema = schema['properties']['shipment']</TD> | |
</TR> | |
<TR> | |
<TD> | |
_shipment_schema_add_special_services_fields(shipment_schema, shipment)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_shipment_schema_add_special_services_fields(shipment_schema, shipment)</TD> | |
</TR> | |
<TR> | |
<TD> | |
if 'label_type' in shipment:<BR> | |
label_type_data = shipment_label_type(shipment, shipment['label_type'])<BR> | |
if label_type_data is not None:<BR> | |
_schema_add_enum(shipment_schema, 'label_size', label_type_data['sizes'], required=False)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
if 'label_type' in shipment:<BR> | |
label_type_data = shipment_label_type(shipment, shipment['label_type'])<BR> | |
if label_type_data is not None:<BR> | |
_schema_add_enum(shipment_schema, 'label_size', label_type_data['sizes'], required=False)</TD> | |
</TR> | |
<TR> | |
<TD> | |
validate(body, schema)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
validate(body, schema)</TD> | |
</TR> | |
<TR> | |
<TD> | |
ship_date = parse_date(shipment['ship_date'])</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
ship_date = parse_date(shipment['ship_date'])</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 94</B><BR>Distance between two fragments = 2 <BR>Clone size = 22<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./tests/main_test.py"<BR>The first line is 492</TD><TD></TD><TD>Source file "./tests/main_test.py"<BR>The first line is 297</TD></TR><TR> | |
<TD> | |
res = req_post(app, api_key, '/shippingaccount', params)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
res = req_post(app, api_key, '/shippingaccount', params)</TD> | |
</TR> | |
<TR> | |
<TD> | |
assert <span style="color: rgb(255, 0, 0);">'geosession'</span> in res['shipping_account']['auth']</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
assert <span style="color: rgb(255, 0, 0);">'password'</span> in res['shipping_account']['auth']</TD> | |
</TR> | |
<TR> | |
<TD> | |
acc_id = res['shipping_account']['id']</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
acc_id = res['shipping_account']['id']</TD> | |
</TR> | |
<TR> | |
<TD> | |
params = {'shipment': {'carrier': <span style="color: rgb(255, 0, 0);">'dpd'</span>, 'type': 'outbound', 'dim_units': 'CM', 'weight_units': 'KG', 'currency': 'USD', 'shipping_account': acc_id, 'packaging': 'your_packaging', 'sender': {'postal_code': '38017', 'country': 'US'}, 'recipient': {'postal_code': '27215', 'country': 'US'}, 'packages': [{'weight': 33}, {'weight': '33'}]}}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
params = {'shipment': {'carrier': <span style="color: rgb(255, 0, 0);">'dhl'</span>, 'type': 'outbound', 'dim_units': 'CM', 'weight_units': 'KG', 'currency': 'USD', 'shipping_account': acc_id, 'packaging': 'your_packaging', 'sender': {'postal_code': '38017', 'country': 'US'}, 'recipient': {'postal_code': '27215', 'country': 'US'}, 'packages': [{'weight': 33}, {'weight': '33'}]}}</TD> | |
</TR> | |
<TR> | |
<TD> | |
res = req_post(app, api_key, '/rate', params)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
res = req_post(app, api_key, '/rate', params)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 95</B><BR>Distance between two fragments = 2 <BR>Clone size = 22<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./tests/main_test.py"<BR>The first line is 492</TD><TD></TD><TD>Source file "./tests/main_test.py"<BR>The first line is 297</TD></TR><TR> | |
<TD> | |
res = req_post(app, api_key, '/shippingaccount', params)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
res = req_post(app, api_key, '/shippingaccount', params)</TD> | |
</TR> | |
<TR> | |
<TD> | |
assert <span style="color: rgb(255, 0, 0);">'geosession'</span> in res['shipping_account']['auth']</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
assert <span style="color: rgb(255, 0, 0);">'password'</span> in res['shipping_account']['auth']</TD> | |
</TR> | |
<TR> | |
<TD> | |
acc_id = res['shipping_account']['id']</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
acc_id = res['shipping_account']['id']</TD> | |
</TR> | |
<TR> | |
<TD> | |
params = {'shipment': {'carrier': <span style="color: rgb(255, 0, 0);">'dpd'</span>, 'type': 'outbound', 'dim_units': 'CM', 'weight_units': 'KG', 'currency': 'USD', 'shipping_account': acc_id, 'packaging': 'your_packaging', 'sender': {'postal_code': '38017', 'country': 'US'}, 'recipient': {'postal_code': '27215', 'country': 'US'}, 'packages': [{'weight': 33}, {'weight': '33'}]}}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
params = {'shipment': {'carrier': <span style="color: rgb(255, 0, 0);">'dhl'</span>, 'type': 'outbound', 'dim_units': 'CM', 'weight_units': 'KG', 'currency': 'USD', 'shipping_account': acc_id, 'packaging': 'your_packaging', 'sender': {'postal_code': '38017', 'country': 'US'}, 'recipient': {'postal_code': '27215', 'country': 'US'}, 'packages': [{'weight': 33}, {'weight': '33'}]}}</TD> | |
</TR> | |
<TR> | |
<TD> | |
res = req_post(app, api_key, '/rate', params)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
res = req_post(app, api_key, '/rate', params)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 101</B><BR>Distance between two fragments = 2 <BR>Clone size = 20<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/base.py"<BR>The first line is 1843</TD><TD></TD><TD>Source file "./carriers/base.py"<BR>The first line is 1799</TD></TR><TR> | |
<TD> | |
if (printers.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'docs'</span></span>, {}).get('id')) and (<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">docs_labels</span></span>):<BR> | |
for label in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">docs_labels</span></span>:<BR> | |
if label.get('label').find('http') != -1:<BR> | |
b64_file_string = base64.b64encode(requests.get(label.get('label')).content)<BR> | |
else:<BR> | |
b64_file_string = label.get('label')<BR> | |
payload = {'printerId': int(printers.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'docs'</span></span>, {}).get('id')), 'title': 'pdf_print', 'contentType': 'pdf_base64', 'content': b64_file_string, 'source': '{} {}'.format(account.name, account.company), 'options': {}}<BR> | |
if printers.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'docs'</span></span>, {}).get('bin') != 'Default':<BR> | |
payload['options']['bin'] = printers.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'docs'</span></span>, {}).get('bin')<BR> | |
requests.post(url=url, headers=headers, json=payload)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if (printers.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pdf'</span></span>, {}).get('id')) and (<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pdf_labels</span></span>):<BR> | |
for label in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pdf_labels</span></span>:<BR> | |
if label.get('label').find('http') != -1:<BR> | |
b64_file_string = base64.b64encode(requests.get(label.get('label')).content)<BR> | |
else:<BR> | |
b64_file_string = label.get('label')<BR> | |
payload = {'printerId': int(printers.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pdf'</span></span>, {}).get('id')), 'title': 'pdf_print', 'contentType': 'pdf_base64', 'content': b64_file_string, 'source': '{} {}'.format(account.name, account.company), 'options': {}}<BR> | |
if printers.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pdf'</span></span>, {}).get('bin') != 'Default':<BR> | |
payload['options']['bin'] = printers.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pdf'</span></span>, {}).get('bin')<BR> | |
requests.post(url=url, headers=headers, json=payload)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 102</B><BR>Distance between two fragments = 2 <BR>Clone size = 20<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/base.py"<BR>The first line is 1843</TD><TD></TD><TD>Source file "./carriers/base.py"<BR>The first line is 1799</TD></TR><TR> | |
<TD> | |
if (printers.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'docs'</span></span>, {}).get('id')) and (<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">docs_labels</span></span>):<BR> | |
for label in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">docs_labels</span></span>:<BR> | |
if label.get('label').find('http') != -1:<BR> | |
b64_file_string = base64.b64encode(requests.get(label.get('label')).content)<BR> | |
else:<BR> | |
b64_file_string = label.get('label')<BR> | |
payload = {'printerId': int(printers.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'docs'</span></span>, {}).get('id')), 'title': 'pdf_print', 'contentType': 'pdf_base64', 'content': b64_file_string, 'source': '{} {}'.format(account.name, account.company), 'options': {}}<BR> | |
if printers.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'docs'</span></span>, {}).get('bin') != 'Default':<BR> | |
payload['options']['bin'] = printers.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'docs'</span></span>, {}).get('bin')<BR> | |
requests.post(url=url, headers=headers, json=payload)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if (printers.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pdf'</span></span>, {}).get('id')) and (<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pdf_labels</span></span>):<BR> | |
for label in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pdf_labels</span></span>:<BR> | |
if label.get('label').find('http') != -1:<BR> | |
b64_file_string = base64.b64encode(requests.get(label.get('label')).content)<BR> | |
else:<BR> | |
b64_file_string = label.get('label')<BR> | |
payload = {'printerId': int(printers.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pdf'</span></span>, {}).get('id')), 'title': 'pdf_print', 'contentType': 'pdf_base64', 'content': b64_file_string, 'source': '{} {}'.format(account.name, account.company), 'options': {}}<BR> | |
if printers.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pdf'</span></span>, {}).get('bin') != 'Default':<BR> | |
payload['options']['bin'] = printers.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pdf'</span></span>, {}).get('bin')<BR> | |
requests.post(url=url, headers=headers, json=payload)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 104</B><BR>Distance between two fragments = 2 <BR>Clone size = 20<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/singapore_post.py"<BR>The first line is 374</TD><TD></TD><TD>Source file "./carriers/aramex.py"<BR>The first line is 349</TD></TR><TR> | |
<TD> | |
def rate(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">SingaporePost</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
rate_result = api_client.rate()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
result.update({'response': rate_result})<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def rate(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
rate_result = api_client.rate()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
result.update({'response': rate_result})<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">SingaporePost</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Singapore Post.'</span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Aramex. You must call Aramex to cancel and/or update a previously scheduled shipment.'</span></span></span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 105</B><BR>Distance between two fragments = 2 <BR>Clone size = 20<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/singapore_post.py"<BR>The first line is 374</TD><TD></TD><TD>Source file "./carriers/canpar.py"<BR>The first line is 411</TD></TR><TR> | |
<TD> | |
def rate(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
rate_result = api_client.rate()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
result.update({'response': rate_result})<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def rate(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
rate_result = api_client.rate()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
result.update({'response': rate_result})<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Singapore Post.'</span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Canpar. You must call Canpar to cancel and/or update a previously scheduled shipment.'</span></span></span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 106</B><BR>Distance between two fragments = 2 <BR>Clone size = 20<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/singapore_post.py"<BR>The first line is 374</TD><TD></TD><TD>Source file "./carriers/aramex.py"<BR>The first line is 349</TD></TR><TR> | |
<TD> | |
def rate(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
rate_result = api_client.rate()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
result.update({'response': rate_result})<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def rate(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
rate_result = api_client.rate()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
result.update({'response': rate_result})<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Singapore Post.'</span></span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Aramex. You must call Aramex to cancel and/or update a previously scheduled shipment.'</span></span></span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 107</B><BR>Distance between two fragments = 2 <BR>Clone size = 20<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/singapore_post.py"<BR>The first line is 374</TD><TD></TD><TD>Source file "./carriers/canpar.py"<BR>The first line is 411</TD></TR><TR> | |
<TD> | |
def rate(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
rate_result = api_client.rate()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
result.update({'response': rate_result})<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def rate(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
rate_result = api_client.rate()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
result.update({'response': rate_result})<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Singapore Post.'</span></span></span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Canpar. You must call Canpar to cancel and/or update a previously scheduled shipment.'</span></span></span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 108</B><BR>Distance between two fragments = 2 <BR>Clone size = 20<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/singapore_post.py"<BR>The first line is 374</TD><TD></TD><TD>Source file "./carriers/aramex.py"<BR>The first line is 349</TD></TR><TR> | |
<TD> | |
def rate(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">SingaporePost</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
rate_result = api_client.rate()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
result.update({'response': rate_result})<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def rate(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
rate_result = api_client.rate()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
result.update({'response': rate_result})<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">SingaporePost</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Singapore Post.'</span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Aramex. You must call Aramex to cancel and/or update a previously scheduled shipment.'</span></span></span></span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 109</B><BR>Distance between two fragments = 2 <BR>Clone size = 20<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/singapore_post.py"<BR>The first line is 374</TD><TD></TD><TD>Source file "./carriers/canpar.py"<BR>The first line is 411</TD></TR><TR> | |
<TD> | |
def rate(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
rate_result = api_client.rate()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
result.update({'response': rate_result})<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def rate(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
rate_result = api_client.rate()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
result.update({'response': rate_result})<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Singapore Post.'</span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Canpar. You must call Canpar to cancel and/or update a previously scheduled shipment.'</span></span></span></span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 110</B><BR>Distance between two fragments = 2 <BR>Clone size = 20<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/singapore_post.py"<BR>The first line is 374</TD><TD></TD><TD>Source file "./carriers/aramex.py"<BR>The first line is 349</TD></TR><TR> | |
<TD> | |
def rate(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
rate_result = api_client.rate()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
result.update({'response': rate_result})<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def rate(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
rate_result = api_client.rate()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
result.update({'response': rate_result})<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Singapore Post.'</span></span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Aramex. You must call Aramex to cancel and/or update a previously scheduled shipment.'</span></span></span></span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 111</B><BR>Distance between two fragments = 2 <BR>Clone size = 20<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/singapore_post.py"<BR>The first line is 374</TD><TD></TD><TD>Source file "./carriers/canpar.py"<BR>The first line is 411</TD></TR><TR> | |
<TD> | |
def rate(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
rate_result = api_client.rate()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
result.update({'response': rate_result})<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def rate(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
rate_result = api_client.rate()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
result.update({'response': rate_result})<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Singapore Post.'</span></span></span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Canpar. You must call Canpar to cancel and/or update a previously scheduled shipment.'</span></span></span></span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 112</B><BR>Distance between two fragments = 2 <BR>Clone size = 16<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/aramex.py"<BR>The first line is 384</TD><TD></TD><TD>Source file "./carriers/singapore_post.py"<BR>The first line is 403</TD></TR><TR> | |
<TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">SingaporePost</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel_pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.cancel_pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
return [{'success': {'message': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'The pickup has been canceled successfully'</span></span></span>}}, result['request'], result['response']]</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel_pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">SingaporePost</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.cancel_pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
return [{'success': {'message': <span style="color: rgb(255, 0, 0);">'Pickup cancelled'</span>}}, result['request'], result['response']]</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 113</B><BR>Distance between two fragments = 2 <BR>Clone size = 16<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/aramex.py"<BR>The first line is 384</TD><TD></TD><TD>Source file "./carriers/singapore_post.py"<BR>The first line is 403</TD></TR><TR> | |
<TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">SingaporePost</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel_pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.cancel_pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
return [{'success': {'message': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'The pickup has been canceled successfully'</span></span></span></span>}}, result['request'], result['response']]</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel_pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);">SingaporePost</span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.cancel_pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
return [{'success': {'message': <span style="color: rgb(255, 0, 0);">'Pickup cancelled'</span>}}, result['request'], result['response']]</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 114</B><BR>Distance between two fragments = 1 <BR>Clone size = 16<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canpar.py"<BR>The first line is 455</TD><TD></TD><TD>Source file "./carriers/singapore_post.py"<BR>The first line is 403</TD></TR><TR> | |
<TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel_pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.cancel_pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
return [{'success': {'message': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Pickup cancelled'</span></span>}}, result['request'], result['response']]</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel_pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.cancel_pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
return [{'success': {'message': <span style="color: rgb(255, 0, 0);">'Pickup cancelled'</span>}}, result['request'], result['response']]</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 115</B><BR>Distance between two fragments = 1 <BR>Clone size = 16<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canpar.py"<BR>The first line is 455</TD><TD></TD><TD>Source file "./carriers/singapore_post.py"<BR>The first line is 403</TD></TR><TR> | |
<TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel_pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.cancel_pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
return [{'success': {'message': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Pickup cancelled'</span></span>}}, result['request'], result['response']]</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel_pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.cancel_pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
return [{'success': {'message': <span style="color: rgb(255, 0, 0);">'Pickup cancelled'</span>}}, result['request'], result['response']]</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 116</B><BR>Distance between two fragments = 2 <BR>Clone size = 16<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/aramex.py"<BR>The first line is 384</TD><TD></TD><TD>Source file "./carriers/singapore_post.py"<BR>The first line is 403</TD></TR><TR> | |
<TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel_pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.cancel_pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
return [{'success': {'message': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'The pickup has been canceled successfully'</span></span></span>}}, result['request'], result['response']]</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel_pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.cancel_pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
return [{'success': {'message': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Pickup cancelled'</span></span>}}, result['request'], result['response']]</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 117</B><BR>Distance between two fragments = 2 <BR>Clone size = 16<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/aramex.py"<BR>The first line is 384</TD><TD></TD><TD>Source file "./carriers/singapore_post.py"<BR>The first line is 403</TD></TR><TR> | |
<TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel_pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.cancel_pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
return [{'success': {'message': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'The pickup has been canceled successfully'</span></span></span></span>}}, result['request'], result['response']]</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel_pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.cancel_pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
return [{'success': {'message': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Pickup cancelled'</span></span>}}, result['request'], result['response']]</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 118</B><BR>Distance between two fragments = 1 <BR>Clone size = 16<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canpar.py"<BR>The first line is 455</TD><TD></TD><TD>Source file "./carriers/singapore_post.py"<BR>The first line is 403</TD></TR><TR> | |
<TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel_pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.cancel_pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
return [{'success': {'message': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Pickup cancelled'</span></span>}}, result['request'], result['response']]</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel_pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.cancel_pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
return [{'success': {'message': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Pickup cancelled'</span></span>}}, result['request'], result['response']]</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 119</B><BR>Distance between two fragments = 1 <BR>Clone size = 16<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canpar.py"<BR>The first line is 455</TD><TD></TD><TD>Source file "./carriers/singapore_post.py"<BR>The first line is 403</TD></TR><TR> | |
<TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel_pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.cancel_pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
return [{'success': {'message': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Pickup cancelled'</span></span>}}, result['request'], result['response']]</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel_pickup(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.cancel_pickup()<BR> | |
result = api_client.get_soap_vars()<BR> | |
return [{'success': {'message': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Pickup cancelled'</span></span>}}, result['request'], result['response']]</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 120</B><BR>Distance between two fragments = 1 <BR>Clone size = 16<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./tests/unit_test.py"<BR>The first line is 975</TD><TD></TD><TD>Source file "./tests/unit_test.py"<BR>The first line is 1073</TD></TR><TR> | |
<TD> | |
auth = {'password': 'gtVcN2veY9sqhhhGGN1Ltje4X', 'key': 'ZBLyivv3coYcYaWD', 'meter_number': '118777490', 'account_number': '630081440', 'name': 'Person Name', 'company': 'Test Company', 'phone': '1231231231', 'street1': '1202 Chalet Ln', 'street2': '', 'city': 'Harrison', 'state': 'AR', 'postal_code': '72601', 'country': 'US'}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
auth = {'password': 'gtVcN2veY9sqhhhGGN1Ltje4X', 'key': 'ZBLyivv3coYcYaWD', 'meter_number': '118777490', 'account_number': '630081440', 'name': 'Person Name', 'company': 'Test Company', 'phone': '1231231231', 'street1': '1202 Chalet Ln', 'street2': '', 'city': 'Harrison', 'state': 'AR', 'postal_code': '72601', 'country': 'US'}</TD> | |
</TR> | |
<TR> | |
<TD> | |
actual = fedex_freight.<span style="color: rgb(255, 0, 0);">_rate_create_request</span>(shipment, auth)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
actual = fedex_freight.<span style="color: rgb(255, 0, 0);">_ship_create_request</span>(shipment, auth)</TD> | |
</TR> | |
<TR> | |
<TD> | |
xml = ET.fromstring(actual)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
xml = ET.fromstring(actual)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 121</B><BR>Distance between two fragments = 1 <BR>Clone size = 16<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./tests/unit_test.py"<BR>The first line is 975</TD><TD></TD><TD>Source file "./tests/unit_test.py"<BR>The first line is 1073</TD></TR><TR> | |
<TD> | |
auth = {'password': 'gtVcN2veY9sqhhhGGN1Ltje4X', 'key': 'ZBLyivv3coYcYaWD', 'meter_number': '118777490', 'account_number': '630081440', 'name': 'Person Name', 'company': 'Test Company', 'phone': '1231231231', 'street1': '1202 Chalet Ln', 'street2': '', 'city': 'Harrison', 'state': 'AR', 'postal_code': '72601', 'country': 'US'}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
auth = {'password': 'gtVcN2veY9sqhhhGGN1Ltje4X', 'key': 'ZBLyivv3coYcYaWD', 'meter_number': '118777490', 'account_number': '630081440', 'name': 'Person Name', 'company': 'Test Company', 'phone': '1231231231', 'street1': '1202 Chalet Ln', 'street2': '', 'city': 'Harrison', 'state': 'AR', 'postal_code': '72601', 'country': 'US'}</TD> | |
</TR> | |
<TR> | |
<TD> | |
actual = fedex_freight.<span style="color: rgb(255, 0, 0);">_rate_create_request</span>(shipment, auth)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
actual = fedex_freight.<span style="color: rgb(255, 0, 0);">_ship_create_request</span>(shipment, auth)</TD> | |
</TR> | |
<TR> | |
<TD> | |
xml = ET.fromstring(actual)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
xml = ET.fromstring(actual)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 122</B><BR>Distance between two fragments = 4 <BR>Clone size = 16<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 68</TD><TD></TD><TD>Source file "./carriers/dpd.py"<BR>The first line is 94</TD></TR><TR> | |
<TD> | |
def rate(is_test, shipment, auth):<BR> | |
<span style="color: rgb(255, 0, 0);">service_types</span> = deepcopy(data.carrier_meta(<span style="color: rgb(255, 0, 0);">'dpd_france'</span>, 'service_types'))<BR> | |
for <span style="color: rgb(255, 0, 0);">service_type</span> in <span style="color: rgb(255, 0, 0);">service_types</span>:<BR> | |
<span style="color: rgb(255, 0, 0);">service_type</span>['carrier'] = <span style="color: rgb(255, 0, 0);">'dpd_france'</span><BR> | |
<span style="color: rgb(255, 0, 0);">service_type</span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);">service_type</span>['currency'] = <span style="color: rgb(255, 0, 0);">'eur'</span><BR> | |
<span style="color: rgb(255, 0, 0);">service_type</span>['service_name'] = <span style="color: rgb(255, 0, 0);">service_type</span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);">service_type</span>['service_type'] = <span style="color: rgb(255, 0, 0);">service_type</span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);">service_type</span>['code']<BR> | |
response = {'rates': <span style="color: rgb(255, 0, 0);">service_types</span>}<BR> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def rate(is_test, shipment, auth):<BR> | |
<span style="color: rgb(255, 0, 0);">rate_list</span> = deepcopy(data.carrier_meta(<span style="color: rgb(255, 0, 0);">'dpd'</span>, 'service_types'))<BR> | |
for <span style="color: rgb(255, 0, 0);">_rate</span> in <span style="color: rgb(255, 0, 0);">rate_list</span>:<BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['carrier'] = <span style="color: rgb(255, 0, 0);">'dpd'</span><BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['currency'] = <span style="color: rgb(255, 0, 0);">'gbp'</span><BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['service_name'] = <span style="color: rgb(255, 0, 0);">_rate</span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['service_type'] = <span style="color: rgb(255, 0, 0);">_rate</span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['code']<BR> | |
response = {'rates': <span style="color: rgb(255, 0, 0);">rate_list</span>}<BR> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 123</B><BR>Distance between two fragments = 4 <BR>Clone size = 16<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 68</TD><TD></TD><TD>Source file "./carriers/dpd.py"<BR>The first line is 94</TD></TR><TR> | |
<TD> | |
def rate(is_test, shipment, auth):<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_types</span></span> = deepcopy(data.carrier_meta(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_france'</span></span>, 'service_types'))<BR> | |
for <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span> in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_types</span></span>:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span>['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_france'</span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span>['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'eur'</span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span>['service_name'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span>['service_type'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span>['code']<BR> | |
response = {'rates': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_types</span></span>}<BR> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def rate(is_test, shipment, auth):<BR> | |
<span style="color: rgb(255, 0, 0);">rate_list</span> = deepcopy(data.carrier_meta(<span style="color: rgb(255, 0, 0);">'dpd'</span>, 'service_types'))<BR> | |
for <span style="color: rgb(255, 0, 0);">_rate</span> in <span style="color: rgb(255, 0, 0);">rate_list</span>:<BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['carrier'] = <span style="color: rgb(255, 0, 0);">'dpd'</span><BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['currency'] = <span style="color: rgb(255, 0, 0);">'gbp'</span><BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['service_name'] = <span style="color: rgb(255, 0, 0);">_rate</span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['service_type'] = <span style="color: rgb(255, 0, 0);">_rate</span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['code']<BR> | |
response = {'rates': <span style="color: rgb(255, 0, 0);">rate_list</span>}<BR> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 124</B><BR>Distance between two fragments = 4 <BR>Clone size = 16<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 68</TD><TD></TD><TD>Source file "./carriers/dpd.py"<BR>The first line is 94</TD></TR><TR> | |
<TD> | |
def rate(is_test, shipment, auth):<BR> | |
<span style="color: rgb(255, 0, 0);">service_types</span> = deepcopy(data.carrier_meta(<span style="color: rgb(255, 0, 0);">'dpd_france'</span>, 'service_types'))<BR> | |
for <span style="color: rgb(255, 0, 0);">service_type</span> in <span style="color: rgb(255, 0, 0);">service_types</span>:<BR> | |
<span style="color: rgb(255, 0, 0);">service_type</span>['carrier'] = <span style="color: rgb(255, 0, 0);">'dpd_france'</span><BR> | |
<span style="color: rgb(255, 0, 0);">service_type</span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);">service_type</span>['currency'] = <span style="color: rgb(255, 0, 0);">'eur'</span><BR> | |
<span style="color: rgb(255, 0, 0);">service_type</span>['service_name'] = <span style="color: rgb(255, 0, 0);">service_type</span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);">service_type</span>['service_type'] = <span style="color: rgb(255, 0, 0);">service_type</span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);">service_type</span>['code']<BR> | |
response = {'rates': <span style="color: rgb(255, 0, 0);">service_types</span>}<BR> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def rate(is_test, shipment, auth):<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span> = deepcopy(data.carrier_meta(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd'</span></span>, 'service_types'))<BR> | |
for <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span> in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span>:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd'</span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'gbp'</span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['service_name'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['service_type'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['code']<BR> | |
response = {'rates': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span>}<BR> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 125</B><BR>Distance between two fragments = 4 <BR>Clone size = 16<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 68</TD><TD></TD><TD>Source file "./carriers/dpd.py"<BR>The first line is 94</TD></TR><TR> | |
<TD> | |
def rate(is_test, shipment, auth):<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_types</span></span> = deepcopy(data.carrier_meta(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_france'</span></span>, 'service_types'))<BR> | |
for <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span> in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_types</span></span>:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span>['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_france'</span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span>['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'eur'</span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span>['service_name'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span>['service_type'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span>['code']<BR> | |
response = {'rates': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_types</span></span>}<BR> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def rate(is_test, shipment, auth):<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span> = deepcopy(data.carrier_meta(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd'</span></span>, 'service_types'))<BR> | |
for <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span> in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span>:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd'</span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'gbp'</span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['service_name'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['service_type'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['code']<BR> | |
response = {'rates': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span>}<BR> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 126</B><BR>Distance between two fragments = 4 <BR>Clone size = 16<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 282</TD><TD></TD><TD>Source file "./carriers/flexport.py"<BR>The first line is 272</TD></TR><TR> | |
<TD> | |
def rate(is_test, req, auth):<BR> | |
rate_list = deepcopy(<span style="color: rgb(255, 0, 0);">carrier_meta</span>(<span style="color: rgb(255, 0, 0);">'dpd_germany'</span>, 'service_types'))<BR> | |
for _rate in rate_list:<BR> | |
_rate['carrier'] = <span style="color: rgb(255, 0, 0);">'dpd_germany'</span><BR> | |
_rate['total_cost'] = '0.00'<BR> | |
_rate['currency'] = <span style="color: rgb(255, 0, 0);">'EUR'</span><BR> | |
_rate['service_name'] = _rate.pop('name')<BR> | |
_rate['service_type'] = _rate.pop('slug')<BR> | |
_rate['code']<BR> | |
response = {'rates': rate_list}<BR> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def rate(is_test, req, auth):<BR> | |
rate_list = deepcopy(<span style="color: rgb(255, 0, 0);">data.carrier_meta</span>(<span style="color: rgb(255, 0, 0);">'flexport'</span>, 'service_types'))<BR> | |
for _rate in rate_list:<BR> | |
_rate['carrier'] = <span style="color: rgb(255, 0, 0);">'flexport'</span><BR> | |
_rate['total_cost'] = '0.00'<BR> | |
_rate['currency'] = <span style="color: rgb(255, 0, 0);">'usd'</span><BR> | |
_rate['service_name'] = _rate.pop('name')<BR> | |
_rate['service_type'] = _rate.pop('slug')<BR> | |
_rate['code']<BR> | |
response = {'rates': rate_list}<BR> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 127</B><BR>Distance between two fragments = 4 <BR>Clone size = 16<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 282</TD><TD></TD><TD>Source file "./carriers/flexport.py"<BR>The first line is 272</TD></TR><TR> | |
<TD> | |
def rate(is_test, req, auth):<BR> | |
rate_list = deepcopy(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">carrier_meta</span></span>(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_germany'</span></span>, 'service_types'))<BR> | |
for _rate in rate_list:<BR> | |
_rate['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_germany'</span></span><BR> | |
_rate['total_cost'] = '0.00'<BR> | |
_rate['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'EUR'</span></span><BR> | |
_rate['service_name'] = _rate.pop('name')<BR> | |
_rate['service_type'] = _rate.pop('slug')<BR> | |
_rate['code']<BR> | |
response = {'rates': rate_list}<BR> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def rate(is_test, req, auth):<BR> | |
rate_list = deepcopy(<span style="color: rgb(255, 0, 0);">data.carrier_meta</span>(<span style="color: rgb(255, 0, 0);">'flexport'</span>, 'service_types'))<BR> | |
for _rate in rate_list:<BR> | |
_rate['carrier'] = <span style="color: rgb(255, 0, 0);">'flexport'</span><BR> | |
_rate['total_cost'] = '0.00'<BR> | |
_rate['currency'] = <span style="color: rgb(255, 0, 0);">'usd'</span><BR> | |
_rate['service_name'] = _rate.pop('name')<BR> | |
_rate['service_type'] = _rate.pop('slug')<BR> | |
_rate['code']<BR> | |
response = {'rates': rate_list}<BR> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 128</B><BR>Distance between two fragments = 4 <BR>Clone size = 16<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 282</TD><TD></TD><TD>Source file "./carriers/flexport.py"<BR>The first line is 272</TD></TR><TR> | |
<TD> | |
def rate(is_test, req, auth):<BR> | |
rate_list = deepcopy(<span style="color: rgb(255, 0, 0);">carrier_meta</span>(<span style="color: rgb(255, 0, 0);">'dpd_germany'</span>, 'service_types'))<BR> | |
for _rate in rate_list:<BR> | |
_rate['carrier'] = <span style="color: rgb(255, 0, 0);">'dpd_germany'</span><BR> | |
_rate['total_cost'] = '0.00'<BR> | |
_rate['currency'] = <span style="color: rgb(255, 0, 0);">'EUR'</span><BR> | |
_rate['service_name'] = _rate.pop('name')<BR> | |
_rate['service_type'] = _rate.pop('slug')<BR> | |
_rate['code']<BR> | |
response = {'rates': rate_list}<BR> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def rate(is_test, req, auth):<BR> | |
rate_list = deepcopy(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">data.carrier_meta</span></span>(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'flexport'</span></span>, 'service_types'))<BR> | |
for _rate in rate_list:<BR> | |
_rate['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'flexport'</span></span><BR> | |
_rate['total_cost'] = '0.00'<BR> | |
_rate['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'usd'</span></span><BR> | |
_rate['service_name'] = _rate.pop('name')<BR> | |
_rate['service_type'] = _rate.pop('slug')<BR> | |
_rate['code']<BR> | |
response = {'rates': rate_list}<BR> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 129</B><BR>Distance between two fragments = 4 <BR>Clone size = 16<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 282</TD><TD></TD><TD>Source file "./carriers/flexport.py"<BR>The first line is 272</TD></TR><TR> | |
<TD> | |
def rate(is_test, req, auth):<BR> | |
rate_list = deepcopy(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">carrier_meta</span></span>(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_germany'</span></span>, 'service_types'))<BR> | |
for _rate in rate_list:<BR> | |
_rate['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_germany'</span></span><BR> | |
_rate['total_cost'] = '0.00'<BR> | |
_rate['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'EUR'</span></span><BR> | |
_rate['service_name'] = _rate.pop('name')<BR> | |
_rate['service_type'] = _rate.pop('slug')<BR> | |
_rate['code']<BR> | |
response = {'rates': rate_list}<BR> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def rate(is_test, req, auth):<BR> | |
rate_list = deepcopy(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">data.carrier_meta</span></span>(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'flexport'</span></span>, 'service_types'))<BR> | |
for _rate in rate_list:<BR> | |
_rate['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'flexport'</span></span><BR> | |
_rate['total_cost'] = '0.00'<BR> | |
_rate['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'usd'</span></span><BR> | |
_rate['service_name'] = _rate.pop('name')<BR> | |
_rate['service_type'] = _rate.pop('slug')<BR> | |
_rate['code']<BR> | |
response = {'rates': rate_list}<BR> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 130</B><BR>Distance between two fragments = 3 <BR>Clone size = 16<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd.py"<BR>The first line is 94</TD><TD></TD><TD>Source file "./carriers/flexport.py"<BR>The first line is 272</TD></TR><TR> | |
<TD> | |
def rate(is_test, <span style="color: rgb(255, 0, 0);">shipment</span>, auth):<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span> = deepcopy(data.carrier_meta(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd'</span></span></span>, 'service_types'))<BR> | |
for <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span> in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span>:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd'</span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'gbp'</span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['service_name'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['service_type'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['code']<BR> | |
response = {'rates': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span>}<BR> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def rate(is_test, <span style="color: rgb(255, 0, 0);">req</span>, auth):<BR> | |
rate_list = deepcopy(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">data.carrier_meta</span></span>(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'flexport'</span></span></span>, 'service_types'))<BR> | |
for _rate in rate_list:<BR> | |
_rate['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'flexport'</span></span></span><BR> | |
_rate['total_cost'] = '0.00'<BR> | |
_rate['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'usd'</span></span></span><BR> | |
_rate['service_name'] = _rate.pop('name')<BR> | |
_rate['service_type'] = _rate.pop('slug')<BR> | |
_rate['code']<BR> | |
response = {'rates': rate_list}<BR> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 131</B><BR>Distance between two fragments = 3 <BR>Clone size = 16<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd.py"<BR>The first line is 94</TD><TD></TD><TD>Source file "./carriers/flexport.py"<BR>The first line is 272</TD></TR><TR> | |
<TD> | |
def rate(is_test, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipment</span></span>, auth):<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span> = deepcopy(data.carrier_meta(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd'</span></span></span></span>, 'service_types'))<BR> | |
for <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span> in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span>:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd'</span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'gbp'</span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['service_name'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['service_type'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['code']<BR> | |
response = {'rates': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span>}<BR> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def rate(is_test, <span style="color: rgb(255, 0, 0);">req</span>, auth):<BR> | |
rate_list = deepcopy(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">data.carrier_meta</span></span>(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'flexport'</span></span></span>, 'service_types'))<BR> | |
for _rate in rate_list:<BR> | |
_rate['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'flexport'</span></span></span><BR> | |
_rate['total_cost'] = '0.00'<BR> | |
_rate['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'usd'</span></span></span><BR> | |
_rate['service_name'] = _rate.pop('name')<BR> | |
_rate['service_type'] = _rate.pop('slug')<BR> | |
_rate['code']<BR> | |
response = {'rates': rate_list}<BR> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 132</B><BR>Distance between two fragments = 3 <BR>Clone size = 16<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd.py"<BR>The first line is 94</TD><TD></TD><TD>Source file "./carriers/flexport.py"<BR>The first line is 272</TD></TR><TR> | |
<TD> | |
def rate(is_test, <span style="color: rgb(255, 0, 0);">shipment</span>, auth):<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span> = deepcopy(data.carrier_meta(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd'</span></span></span>, 'service_types'))<BR> | |
for <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span> in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span>:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd'</span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'gbp'</span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['service_name'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['service_type'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['code']<BR> | |
response = {'rates': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span>}<BR> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def rate(is_test, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">req</span></span>, auth):<BR> | |
rate_list = deepcopy(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">data.carrier_meta</span></span>(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'flexport'</span></span></span></span>, 'service_types'))<BR> | |
for _rate in rate_list:<BR> | |
_rate['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'flexport'</span></span></span></span><BR> | |
_rate['total_cost'] = '0.00'<BR> | |
_rate['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'usd'</span></span></span></span><BR> | |
_rate['service_name'] = _rate.pop('name')<BR> | |
_rate['service_type'] = _rate.pop('slug')<BR> | |
_rate['code']<BR> | |
response = {'rates': rate_list}<BR> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 133</B><BR>Distance between two fragments = 3 <BR>Clone size = 16<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd.py"<BR>The first line is 94</TD><TD></TD><TD>Source file "./carriers/flexport.py"<BR>The first line is 272</TD></TR><TR> | |
<TD> | |
def rate(is_test, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipment</span></span>, auth):<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span> = deepcopy(data.carrier_meta(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd'</span></span></span></span>, 'service_types'))<BR> | |
for <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span> in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span>:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd'</span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'gbp'</span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['service_name'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['service_type'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['code']<BR> | |
response = {'rates': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span>}<BR> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def rate(is_test, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">req</span></span>, auth):<BR> | |
rate_list = deepcopy(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">data.carrier_meta</span></span>(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'flexport'</span></span></span></span>, 'service_types'))<BR> | |
for _rate in rate_list:<BR> | |
_rate['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'flexport'</span></span></span></span><BR> | |
_rate['total_cost'] = '0.00'<BR> | |
_rate['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'usd'</span></span></span></span><BR> | |
_rate['service_name'] = _rate.pop('name')<BR> | |
_rate['service_type'] = _rate.pop('slug')<BR> | |
_rate['code']<BR> | |
response = {'rates': rate_list}<BR> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 145</B><BR>Distance between two fragments = 4 <BR>Clone size = 15<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd.py"<BR>The first line is 95</TD><TD></TD><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 283</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span> = deepcopy(<span style="color: rgb(255, 0, 0);">data.carrier_meta</span>(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd'</span></span></span></span></span>, 'service_types'))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
rate_list = deepcopy(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">carrier_meta</span></span></span>(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_germany'</span></span></span>, 'service_types'))</TD> | |
</TR> | |
<TR> | |
<TD> | |
for <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span> in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span>:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd'</span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'gbp'</span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['service_name'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['service_type'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['code']</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
for _rate in rate_list:<BR> | |
_rate['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_germany'</span></span></span><BR> | |
_rate['total_cost'] = '0.00'<BR> | |
_rate['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'EUR'</span></span></span><BR> | |
_rate['service_name'] = _rate.pop('name')<BR> | |
_rate['service_type'] = _rate.pop('slug')<BR> | |
_rate['code']</TD> | |
</TR> | |
<TR> | |
<TD> | |
response = {'rates': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span>}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
response = {'rates': rate_list}</TD> | |
</TR> | |
<TR> | |
<TD> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 146</B><BR>Distance between two fragments = 4 <BR>Clone size = 15<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd.py"<BR>The first line is 95</TD><TD></TD><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 283</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span> = deepcopy(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">data.carrier_meta</span></span>(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd'</span></span></span></span></span></span>, 'service_types'))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
rate_list = deepcopy(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">carrier_meta</span></span></span>(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_germany'</span></span></span>, 'service_types'))</TD> | |
</TR> | |
<TR> | |
<TD> | |
for <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span> in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span>:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd'</span></span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'gbp'</span></span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['service_name'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['service_type'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['code']</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
for _rate in rate_list:<BR> | |
_rate['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_germany'</span></span></span><BR> | |
_rate['total_cost'] = '0.00'<BR> | |
_rate['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'EUR'</span></span></span><BR> | |
_rate['service_name'] = _rate.pop('name')<BR> | |
_rate['service_type'] = _rate.pop('slug')<BR> | |
_rate['code']</TD> | |
</TR> | |
<TR> | |
<TD> | |
response = {'rates': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span>}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
response = {'rates': rate_list}</TD> | |
</TR> | |
<TR> | |
<TD> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 147</B><BR>Distance between two fragments = 4 <BR>Clone size = 15<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 69</TD><TD></TD><TD>Source file "./carriers/flexport.py"<BR>The first line is 273</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_types</span></span></span> = deepcopy(data.carrier_meta(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_france'</span></span></span>, 'service_types'))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">rate_list</span> = deepcopy(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">data.carrier_meta</span></span>(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'flexport'</span></span></span></span></span>, 'service_types'))</TD> | |
</TR> | |
<TR> | |
<TD> | |
for <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span> in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_types</span></span></span>:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span>['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_france'</span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span>['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'eur'</span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span>['service_name'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span>['service_type'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span>['code']</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
for <span style="color: rgb(255, 0, 0);">_rate</span> in <span style="color: rgb(255, 0, 0);">rate_list</span>:<BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'flexport'</span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'usd'</span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['service_name'] = <span style="color: rgb(255, 0, 0);">_rate</span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['service_type'] = <span style="color: rgb(255, 0, 0);">_rate</span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['code']</TD> | |
</TR> | |
<TR> | |
<TD> | |
response = {'rates': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_types</span></span></span>}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
response = {'rates': <span style="color: rgb(255, 0, 0);">rate_list</span>}</TD> | |
</TR> | |
<TR> | |
<TD> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 148</B><BR>Distance between two fragments = 4 <BR>Clone size = 15<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 69</TD><TD></TD><TD>Source file "./carriers/flexport.py"<BR>The first line is 273</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_types</span></span></span></span> = deepcopy(data.carrier_meta(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_france'</span></span></span></span>, 'service_types'))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">rate_list</span> = deepcopy(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">data.carrier_meta</span></span>(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'flexport'</span></span></span></span></span>, 'service_types'))</TD> | |
</TR> | |
<TR> | |
<TD> | |
for <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span> in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_types</span></span></span></span>:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span>['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_france'</span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span>['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'eur'</span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span>['service_name'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span>['service_type'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span>['code']</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
for <span style="color: rgb(255, 0, 0);">_rate</span> in <span style="color: rgb(255, 0, 0);">rate_list</span>:<BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'flexport'</span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'usd'</span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['service_name'] = <span style="color: rgb(255, 0, 0);">_rate</span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['service_type'] = <span style="color: rgb(255, 0, 0);">_rate</span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['code']</TD> | |
</TR> | |
<TR> | |
<TD> | |
response = {'rates': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_types</span></span></span></span>}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
response = {'rates': <span style="color: rgb(255, 0, 0);">rate_list</span>}</TD> | |
</TR> | |
<TR> | |
<TD> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 149</B><BR>Distance between two fragments = 4 <BR>Clone size = 15<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 283</TD><TD></TD><TD>Source file "./carriers/dpd.py"<BR>The first line is 95</TD></TR><TR> | |
<TD> | |
rate_list = deepcopy(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">carrier_meta</span></span></span></span>(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_germany'</span></span></span></span>, 'service_types'))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span> = deepcopy(<span style="color: rgb(255, 0, 0);">data.carrier_meta</span>(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd'</span></span></span></span></span>, 'service_types'))</TD> | |
</TR> | |
<TR> | |
<TD> | |
for _rate in rate_list:<BR> | |
_rate['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_germany'</span></span></span></span><BR> | |
_rate['total_cost'] = '0.00'<BR> | |
_rate['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'EUR'</span></span></span></span><BR> | |
_rate['service_name'] = _rate.pop('name')<BR> | |
_rate['service_type'] = _rate.pop('slug')<BR> | |
_rate['code']</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
for <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span> in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span>:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd'</span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'gbp'</span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['service_name'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['service_type'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['code']</TD> | |
</TR> | |
<TR> | |
<TD> | |
response = {'rates': rate_list}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
response = {'rates': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span>}</TD> | |
</TR> | |
<TR> | |
<TD> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 150</B><BR>Distance between two fragments = 4 <BR>Clone size = 15<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/flexport.py"<BR>The first line is 273</TD><TD></TD><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 69</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span> = deepcopy(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">data.carrier_meta</span></span>(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'flexport'</span></span></span></span></span></span>, 'service_types'))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_types</span></span></span> = deepcopy(data.carrier_meta(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_france'</span></span></span>, 'service_types'))</TD> | |
</TR> | |
<TR> | |
<TD> | |
for <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span> in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span>:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'flexport'</span></span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'usd'</span></span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['service_name'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['service_type'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['code']</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
for <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span> in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_types</span></span></span>:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span>['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_france'</span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span>['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'eur'</span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span>['service_name'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span>['service_type'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span>['code']</TD> | |
</TR> | |
<TR> | |
<TD> | |
response = {'rates': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span>}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
response = {'rates': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_types</span></span></span>}</TD> | |
</TR> | |
<TR> | |
<TD> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 151</B><BR>Distance between two fragments = 4 <BR>Clone size = 15<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd.py"<BR>The first line is 95</TD><TD></TD><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 283</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span> = deepcopy(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">data.carrier_meta</span></span>(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd'</span></span></span></span></span></span>, 'service_types'))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
rate_list = deepcopy(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">carrier_meta</span></span></span></span>(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_germany'</span></span></span></span>, 'service_types'))</TD> | |
</TR> | |
<TR> | |
<TD> | |
for <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span> in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span>:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd'</span></span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'gbp'</span></span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['service_name'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['service_type'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['code']</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
for _rate in rate_list:<BR> | |
_rate['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_germany'</span></span></span></span><BR> | |
_rate['total_cost'] = '0.00'<BR> | |
_rate['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'EUR'</span></span></span></span><BR> | |
_rate['service_name'] = _rate.pop('name')<BR> | |
_rate['service_type'] = _rate.pop('slug')<BR> | |
_rate['code']</TD> | |
</TR> | |
<TR> | |
<TD> | |
response = {'rates': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span>}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
response = {'rates': rate_list}</TD> | |
</TR> | |
<TR> | |
<TD> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 152</B><BR>Distance between two fragments = 4 <BR>Clone size = 15<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 69</TD><TD></TD><TD>Source file "./carriers/flexport.py"<BR>The first line is 273</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_types</span></span></span></span> = deepcopy(data.carrier_meta(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_france'</span></span></span></span>, 'service_types'))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span> = deepcopy(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">data.carrier_meta</span></span>(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'flexport'</span></span></span></span></span></span>, 'service_types'))</TD> | |
</TR> | |
<TR> | |
<TD> | |
for <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span> in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_types</span></span></span></span>:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span>['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_france'</span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span>['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'eur'</span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span>['service_name'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span>['service_type'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span>['code']</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
for <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span> in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span>:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'flexport'</span></span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'usd'</span></span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['service_name'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['service_type'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['code']</TD> | |
</TR> | |
<TR> | |
<TD> | |
response = {'rates': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_types</span></span></span></span>}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
response = {'rates': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span>}</TD> | |
</TR> | |
<TR> | |
<TD> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 154</B><BR>Distance between two fragments = 2 <BR>Clone size = 15<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/base.py"<BR>The first line is 671</TD><TD></TD><TD>Source file "./carriers/base.py"<BR>The first line is 649</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">_CANCEL_PICKUP_SCHEMA</span> = {'type': 'object', 'properties': {'cancel': {'type': 'object', 'properties': {'shipping_account': deepcopy(_SHIPPING_ACCOUNT_SCHEMA), 'carrier': deepcopy(_CARRIER_SCHEMA), <span style="color: rgb(255, 0, 0);">'confirmation_number'</span>: {'type': 'string'}, 'test': deepcopy(_TEST_SCHEMA)}, 'required': ['shipping_account', 'carrier', <span style="color: rgb(255, 0, 0);">'confirmation_number'</span>]}}, 'required': ['cancel'], 'additionalProperties': False}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">_CANCEL_SCHEMA</span> = {'type': 'object', 'properties': {'cancel': {'type': 'object', 'properties': {'shipping_account': deepcopy(_SHIPPING_ACCOUNT_SCHEMA), 'carrier': deepcopy(_CARRIER_SCHEMA), <span style="color: rgb(255, 0, 0);">'tracking_number'</span>: {'type': 'string'}, 'test': deepcopy(_TEST_SCHEMA)}, 'required': ['shipping_account', 'carrier', <span style="color: rgb(255, 0, 0);">'tracking_number'</span>]}}, 'required': ['cancel'], 'additionalProperties': False}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 155</B><BR>Distance between two fragments = 2 <BR>Clone size = 15<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/base.py"<BR>The first line is 671</TD><TD></TD><TD>Source file "./carriers/base.py"<BR>The first line is 649</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_CANCEL_PICKUP_SCHEMA</span></span> = {'type': 'object', 'properties': {'cancel': {'type': 'object', 'properties': {'shipping_account': deepcopy(_SHIPPING_ACCOUNT_SCHEMA), 'carrier': deepcopy(_CARRIER_SCHEMA), <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'confirmation_number'</span></span>: {'type': 'string'}, 'test': deepcopy(_TEST_SCHEMA)}, 'required': ['shipping_account', 'carrier', <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'confirmation_number'</span></span>]}}, 'required': ['cancel'], 'additionalProperties': False}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">_CANCEL_SCHEMA</span> = {'type': 'object', 'properties': {'cancel': {'type': 'object', 'properties': {'shipping_account': deepcopy(_SHIPPING_ACCOUNT_SCHEMA), 'carrier': deepcopy(_CARRIER_SCHEMA), <span style="color: rgb(255, 0, 0);">'tracking_number'</span>: {'type': 'string'}, 'test': deepcopy(_TEST_SCHEMA)}, 'required': ['shipping_account', 'carrier', <span style="color: rgb(255, 0, 0);">'tracking_number'</span>]}}, 'required': ['cancel'], 'additionalProperties': False}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 156</B><BR>Distance between two fragments = 2 <BR>Clone size = 15<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/base.py"<BR>The first line is 671</TD><TD></TD><TD>Source file "./carriers/base.py"<BR>The first line is 649</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">_CANCEL_PICKUP_SCHEMA</span> = {'type': 'object', 'properties': {'cancel': {'type': 'object', 'properties': {'shipping_account': deepcopy(_SHIPPING_ACCOUNT_SCHEMA), 'carrier': deepcopy(_CARRIER_SCHEMA), <span style="color: rgb(255, 0, 0);">'confirmation_number'</span>: {'type': 'string'}, 'test': deepcopy(_TEST_SCHEMA)}, 'required': ['shipping_account', 'carrier', <span style="color: rgb(255, 0, 0);">'confirmation_number'</span>]}}, 'required': ['cancel'], 'additionalProperties': False}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_CANCEL_SCHEMA</span></span> = {'type': 'object', 'properties': {'cancel': {'type': 'object', 'properties': {'shipping_account': deepcopy(_SHIPPING_ACCOUNT_SCHEMA), 'carrier': deepcopy(_CARRIER_SCHEMA), <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'tracking_number'</span></span>: {'type': 'string'}, 'test': deepcopy(_TEST_SCHEMA)}, 'required': ['shipping_account', 'carrier', <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'tracking_number'</span></span>]}}, 'required': ['cancel'], 'additionalProperties': False}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 157</B><BR>Distance between two fragments = 2 <BR>Clone size = 15<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/base.py"<BR>The first line is 671</TD><TD></TD><TD>Source file "./carriers/base.py"<BR>The first line is 649</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_CANCEL_PICKUP_SCHEMA</span></span> = {'type': 'object', 'properties': {'cancel': {'type': 'object', 'properties': {'shipping_account': deepcopy(_SHIPPING_ACCOUNT_SCHEMA), 'carrier': deepcopy(_CARRIER_SCHEMA), <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'confirmation_number'</span></span>: {'type': 'string'}, 'test': deepcopy(_TEST_SCHEMA)}, 'required': ['shipping_account', 'carrier', <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'confirmation_number'</span></span>]}}, 'required': ['cancel'], 'additionalProperties': False}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_CANCEL_SCHEMA</span></span> = {'type': 'object', 'properties': {'cancel': {'type': 'object', 'properties': {'shipping_account': deepcopy(_SHIPPING_ACCOUNT_SCHEMA), 'carrier': deepcopy(_CARRIER_SCHEMA), <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'tracking_number'</span></span>: {'type': 'string'}, 'test': deepcopy(_TEST_SCHEMA)}, 'required': ['shipping_account', 'carrier', <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'tracking_number'</span></span>]}}, 'required': ['cancel'], 'additionalProperties': False}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 158</B><BR>Distance between two fragments = 4 <BR>Clone size = 14<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 70</TD><TD></TD><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 284</TD></TR><TR> | |
<TD> | |
for <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span> in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_types</span></span></span></span></span>:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span>['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_france'</span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span>['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'eur'</span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span>['service_name'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span>['service_type'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span>['code']</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
for <span style="color: rgb(255, 0, 0);">_rate</span> in <span style="color: rgb(255, 0, 0);">rate_list</span>:<BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_germany'</span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'EUR'</span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['service_name'] = <span style="color: rgb(255, 0, 0);">_rate</span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['service_type'] = <span style="color: rgb(255, 0, 0);">_rate</span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['code']</TD> | |
</TR> | |
<TR> | |
<TD> | |
response = {'rates': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_types</span></span></span></span></span>}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
response = {'rates': <span style="color: rgb(255, 0, 0);">rate_list</span>}</TD> | |
</TR> | |
<TR> | |
<TD> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 159</B><BR>Distance between two fragments = 4 <BR>Clone size = 14<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 70</TD><TD></TD><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 284</TD></TR><TR> | |
<TD> | |
for <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span></span> in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_types</span></span></span></span></span></span>:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span></span>['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_france'</span></span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span></span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span></span>['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'eur'</span></span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span></span>['service_name'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span></span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span></span>['service_type'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span></span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span></span>['code']</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
for <span style="color: rgb(255, 0, 0);">_rate</span> in <span style="color: rgb(255, 0, 0);">rate_list</span>:<BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_germany'</span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'EUR'</span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['service_name'] = <span style="color: rgb(255, 0, 0);">_rate</span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['service_type'] = <span style="color: rgb(255, 0, 0);">_rate</span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);">_rate</span>['code']</TD> | |
</TR> | |
<TR> | |
<TD> | |
response = {'rates': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_types</span></span></span></span></span></span>}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
response = {'rates': <span style="color: rgb(255, 0, 0);">rate_list</span>}</TD> | |
</TR> | |
<TR> | |
<TD> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 160</B><BR>Distance between two fragments = 4 <BR>Clone size = 14<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 284</TD><TD></TD><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 70</TD></TR><TR> | |
<TD> | |
for <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span> in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span>:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_germany'</span></span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'EUR'</span></span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['service_name'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['service_type'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['code']</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
for <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span> in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_types</span></span></span></span></span>:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span>['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_france'</span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span>['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'eur'</span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span>['service_name'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span>['service_type'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span>['code']</TD> | |
</TR> | |
<TR> | |
<TD> | |
response = {'rates': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span>}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
response = {'rates': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_types</span></span></span></span></span>}</TD> | |
</TR> | |
<TR> | |
<TD> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 161</B><BR>Distance between two fragments = 4 <BR>Clone size = 14<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 70</TD><TD></TD><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 284</TD></TR><TR> | |
<TD> | |
for <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span></span> in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_types</span></span></span></span></span></span>:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span></span>['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_france'</span></span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span></span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span></span>['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'eur'</span></span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span></span>['service_name'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span></span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span></span>['service_type'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span></span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_type</span></span></span></span></span></span>['code']</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
for <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span> in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span>:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['carrier'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'dpd_germany'</span></span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['total_cost'] = '0.00'<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['currency'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'EUR'</span></span></span></span></span></span><BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['service_name'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>.pop('name')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['service_type'] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>.pop('slug')<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate</span></span>['code']</TD> | |
</TR> | |
<TR> | |
<TD> | |
response = {'rates': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service_types</span></span></span></span></span></span>}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
response = {'rates': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span>}</TD> | |
</TR> | |
<TR> | |
<TD> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
return {'response': response, 'endpoint': '', 'carrier_request': '', 'carrier_response': dumps(response, indent=2)}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 162</B><BR>Distance between two fragments = 2 <BR>Clone size = 14<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/ups.py"<BR>The first line is 1478</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 1525</TD></TR><TR> | |
<TD> | |
if config.DEV:<BR> | |
result = requests.post(url='https://api.zenkraft.com/bridge', <span style="color: rgb(255, 0, 0);">payload</span>=request, deadline=30, headers={'endpoint': endpoint(<span style="color: rgb(255, 0, 0);">'pickup'</span>, obj.test)})<BR> | |
else:<BR> | |
result = requests.post(url=endpoint(<span style="color: rgb(255, 0, 0);">'pickup'</span>, obj.test), <span style="color: rgb(255, 0, 0);">json</span>=request, deadline=30, headers={})</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if config.DEV:<BR> | |
result = requests.post(url='https://api.zenkraft.com/bridge', <span style="color: rgb(255, 0, 0);">json</span>=request, deadline=30, headers={'endpoint': endpoint(<span style="color: rgb(255, 0, 0);">'validate'</span>, obj.test)})<BR> | |
else:<BR> | |
result = requests.post(url=endpoint(<span style="color: rgb(255, 0, 0);">'validate'</span>, obj.test), <span style="color: rgb(255, 0, 0);">json</span>=request, deadline=30, headers={})</TD> | |
</TR> | |
<TR> | |
<TD> | |
resp = result.json()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
resp = result.json()</TD> | |
</TR> | |
<TR> | |
<TD> | |
logging_info(resp)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
logging_info(resp)</TD> | |
</TR> | |
<TR> | |
<TD> | |
if resp.get('Fault', None):<BR> | |
return api_error(resp.get('Fault', None).get('detail', None).get('Errors', None).get('ErrorDetail', None).get('PrimaryErrorCode', None).get('Description', None))</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
if resp.get('Fault', None):<BR> | |
return api_error(resp.get('Fault', None).get('detail', None).get('Errors', None).get('ErrorDetail', None).get('PrimaryErrorCode', None).get('Description', None))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 163</B><BR>Distance between two fragments = 2 <BR>Clone size = 14<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/ups.py"<BR>The first line is 1478</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 1525</TD></TR><TR> | |
<TD> | |
if config.DEV:<BR> | |
result = requests.post(url='https://api.zenkraft.com/bridge', <span style="color: rgb(255, 0, 0);">payload</span>=request, deadline=30, headers={'endpoint': endpoint(<span style="color: rgb(255, 0, 0);">'pickup'</span>, obj.test)})<BR> | |
else:<BR> | |
result = requests.post(url=endpoint(<span style="color: rgb(255, 0, 0);">'pickup'</span>, obj.test), <span style="color: rgb(255, 0, 0);">json</span>=request, deadline=30, headers={})</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if config.DEV:<BR> | |
result = requests.post(url='https://api.zenkraft.com/bridge', <span style="color: rgb(255, 0, 0);">json</span>=request, deadline=30, headers={'endpoint': endpoint(<span style="color: rgb(255, 0, 0);">'validate'</span>, obj.test)})<BR> | |
else:<BR> | |
result = requests.post(url=endpoint(<span style="color: rgb(255, 0, 0);">'validate'</span>, obj.test), <span style="color: rgb(255, 0, 0);">json</span>=request, deadline=30, headers={})</TD> | |
</TR> | |
<TR> | |
<TD> | |
resp = result.json()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
resp = result.json()</TD> | |
</TR> | |
<TR> | |
<TD> | |
logging_info(resp)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
logging_info(resp)</TD> | |
</TR> | |
<TR> | |
<TD> | |
if resp.get('Fault', None):<BR> | |
return api_error(resp.get('Fault', None).get('detail', None).get('Errors', None).get('ErrorDetail', None).get('PrimaryErrorCode', None).get('Description', None))</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
if resp.get('Fault', None):<BR> | |
return api_error(resp.get('Fault', None).get('detail', None).get('Errors', None).get('ErrorDetail', None).get('PrimaryErrorCode', None).get('Description', None))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 164</B><BR>Distance between two fragments = 2 <BR>Clone size = 13<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canpar.py"<BR>The first line is 240</TD><TD></TD><TD>Source file "./carriers/aramex.py"<BR>The first line is 167</TD></TR><TR> | |
<TD> | |
services = self.get_available_services()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
services = self.get_available_services()</TD> | |
</TR> | |
<TR> | |
<TD> | |
_threads = []</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_threads = []</TD> | |
</TR> | |
<TR> | |
<TD> | |
_results = []</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_results = []</TD> | |
</TR> | |
<TR> | |
<TD> | |
for service in services:<BR> | |
_thread = Thread(target=self.rate_shipment, args=[<span style="color: rgb(255, 0, 0);">service.type</span>, _results])<BR> | |
_thread.start()<BR> | |
_threads.append(_thread)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
for service in services:<BR> | |
_thread = Thread(target=self.rate_shipment, args=[<span style="color: rgb(255, 0, 0);">service</span>, _results])<BR> | |
_thread.start()<BR> | |
_threads.append(_thread)</TD> | |
</TR> | |
<TR> | |
<TD> | |
for _t in _threads:<BR> | |
_t.join()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
for _t in _threads:<BR> | |
_t.join()</TD> | |
</TR> | |
<TR> | |
<TD> | |
result = []</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
result = []</TD> | |
</TR> | |
<TR> | |
<TD> | |
errors = []</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
errors = []</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 165</B><BR>Distance between two fragments = 2 <BR>Clone size = 13<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canpar.py"<BR>The first line is 240</TD><TD></TD><TD>Source file "./carriers/aramex.py"<BR>The first line is 167</TD></TR><TR> | |
<TD> | |
services = self.get_available_services()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
services = self.get_available_services()</TD> | |
</TR> | |
<TR> | |
<TD> | |
_threads = []</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_threads = []</TD> | |
</TR> | |
<TR> | |
<TD> | |
_results = []</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_results = []</TD> | |
</TR> | |
<TR> | |
<TD> | |
for service in services:<BR> | |
_thread = Thread(target=self.rate_shipment, args=[<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service.type</span></span>, _results])<BR> | |
_thread.start()<BR> | |
_threads.append(_thread)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
for service in services:<BR> | |
_thread = Thread(target=self.rate_shipment, args=[<span style="color: rgb(255, 0, 0);">service</span>, _results])<BR> | |
_thread.start()<BR> | |
_threads.append(_thread)</TD> | |
</TR> | |
<TR> | |
<TD> | |
for _t in _threads:<BR> | |
_t.join()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
for _t in _threads:<BR> | |
_t.join()</TD> | |
</TR> | |
<TR> | |
<TD> | |
result = []</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
result = []</TD> | |
</TR> | |
<TR> | |
<TD> | |
errors = []</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
errors = []</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 166</B><BR>Distance between two fragments = 2 <BR>Clone size = 13<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canpar.py"<BR>The first line is 240</TD><TD></TD><TD>Source file "./carriers/aramex.py"<BR>The first line is 167</TD></TR><TR> | |
<TD> | |
services = self.get_available_services()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
services = self.get_available_services()</TD> | |
</TR> | |
<TR> | |
<TD> | |
_threads = []</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_threads = []</TD> | |
</TR> | |
<TR> | |
<TD> | |
_results = []</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_results = []</TD> | |
</TR> | |
<TR> | |
<TD> | |
for service in services:<BR> | |
_thread = Thread(target=self.rate_shipment, args=[<span style="color: rgb(255, 0, 0);">service.type</span>, _results])<BR> | |
_thread.start()<BR> | |
_threads.append(_thread)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
for service in services:<BR> | |
_thread = Thread(target=self.rate_shipment, args=[<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service</span></span>, _results])<BR> | |
_thread.start()<BR> | |
_threads.append(_thread)</TD> | |
</TR> | |
<TR> | |
<TD> | |
for _t in _threads:<BR> | |
_t.join()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
for _t in _threads:<BR> | |
_t.join()</TD> | |
</TR> | |
<TR> | |
<TD> | |
result = []</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
result = []</TD> | |
</TR> | |
<TR> | |
<TD> | |
errors = []</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
errors = []</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 167</B><BR>Distance between two fragments = 2 <BR>Clone size = 13<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canpar.py"<BR>The first line is 240</TD><TD></TD><TD>Source file "./carriers/aramex.py"<BR>The first line is 167</TD></TR><TR> | |
<TD> | |
services = self.get_available_services()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
services = self.get_available_services()</TD> | |
</TR> | |
<TR> | |
<TD> | |
_threads = []</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_threads = []</TD> | |
</TR> | |
<TR> | |
<TD> | |
_results = []</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_results = []</TD> | |
</TR> | |
<TR> | |
<TD> | |
for service in services:<BR> | |
_thread = Thread(target=self.rate_shipment, args=[<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service.type</span></span>, _results])<BR> | |
_thread.start()<BR> | |
_threads.append(_thread)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
for service in services:<BR> | |
_thread = Thread(target=self.rate_shipment, args=[<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">service</span></span>, _results])<BR> | |
_thread.start()<BR> | |
_threads.append(_thread)</TD> | |
</TR> | |
<TR> | |
<TD> | |
for _t in _threads:<BR> | |
_t.join()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
for _t in _threads:<BR> | |
_t.join()</TD> | |
</TR> | |
<TR> | |
<TD> | |
result = []</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
result = []</TD> | |
</TR> | |
<TR> | |
<TD> | |
errors = []</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
errors = []</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 168</B><BR>Distance between two fragments = 1 <BR>Clone size = 13<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./zeep/xsd/visitor.py"<BR>The first line is 753</TD><TD></TD><TD>Source file "./zeep/xsd/visitor.py"<BR>The first line is 719</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">visit_extension_complex_content</span>(self, node, parent):<BR> | |
base_name = qname_attr(node, 'base')<BR> | |
base_type = self._get_type(base_name)<BR> | |
annotation, children = self._pop_annotation(list(node))<BR> | |
element = None<BR> | |
attributes = []<BR> | |
if children:<BR> | |
child = children[0]<BR> | |
if child.tag in (tags.group, tags.all, tags.choice, tags.sequence):<BR> | |
children.pop(0)<BR> | |
element = self.process(child, node)<BR> | |
attributes = self._process_attributes(node, children)<BR> | |
return (base_type, element, attributes)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">visit_restriction_complex_content</span>(self, node, parent):<BR> | |
base_name = qname_attr(node, 'base')<BR> | |
base_type = self._get_type(base_name)<BR> | |
annotation, children = self._pop_annotation(list(node))<BR> | |
element = None<BR> | |
attributes = []<BR> | |
if children:<BR> | |
child = children[0]<BR> | |
if child.tag in (tags.group, tags.all, tags.choice, tags.sequence):<BR> | |
children.pop(0)<BR> | |
element = self.process(child, node)<BR> | |
attributes = self._process_attributes(node, children)<BR> | |
return (base_type, element, attributes)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 171</B><BR>Distance between two fragments = 3 <BR>Clone size = 13<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./ws.py"<BR>The first line is 57</TD><TD></TD><TD>Source file "./ws.py"<BR>The first line is 181</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">_rate_error</span>(e):<BR> | |
error = ['ns1:Error', ['ns1:Message', str(e)]]<BR> | |
if e.detail is not None:<BR> | |
error.append(['ns1:Detail', e.detail])<BR> | |
return ['ns0:Envelope', {'xmlns:ns0': 'http://schemas.xmlsoap.org/soap/envelope/', 'xmlns:ns1': 'http://api.zenkraft.com/wsdl/v1'}, ['ns0:Body', [<span style="color: rgb(255, 0, 0);">'ns1:getRates'</span>, [<span style="color: rgb(255, 0, 0);">'ns1:GetRatesResponse'</span>, error]]]]</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">_ship_error</span>(e):<BR> | |
error = ['ns1:Error', ['ns1:Message', str(e)]]<BR> | |
if e.detail is not None:<BR> | |
error.append(['ns1:Detail', e.detail])<BR> | |
return ['ns0:Envelope', {'xmlns:ns0': 'http://schemas.xmlsoap.org/soap/envelope/', 'xmlns:ns1': 'http://api.zenkraft.com/wsdl/v1'}, ['ns0:Body', [<span style="color: rgb(255, 0, 0);">'ns1:ship'</span>, [<span style="color: rgb(255, 0, 0);">'ns1:ShipResponse'</span>, error]]]]</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 172</B><BR>Distance between two fragments = 3 <BR>Clone size = 13<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./ws.py"<BR>The first line is 57</TD><TD></TD><TD>Source file "./ws.py"<BR>The first line is 181</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate_error</span></span>(e):<BR> | |
error = ['ns1:Error', ['ns1:Message', str(e)]]<BR> | |
if e.detail is not None:<BR> | |
error.append(['ns1:Detail', e.detail])<BR> | |
return ['ns0:Envelope', {'xmlns:ns0': 'http://schemas.xmlsoap.org/soap/envelope/', 'xmlns:ns1': 'http://api.zenkraft.com/wsdl/v1'}, ['ns0:Body', [<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ns1:getRates'</span></span>, [<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ns1:GetRatesResponse'</span></span>, error]]]]</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">_ship_error</span>(e):<BR> | |
error = ['ns1:Error', ['ns1:Message', str(e)]]<BR> | |
if e.detail is not None:<BR> | |
error.append(['ns1:Detail', e.detail])<BR> | |
return ['ns0:Envelope', {'xmlns:ns0': 'http://schemas.xmlsoap.org/soap/envelope/', 'xmlns:ns1': 'http://api.zenkraft.com/wsdl/v1'}, ['ns0:Body', [<span style="color: rgb(255, 0, 0);">'ns1:ship'</span>, [<span style="color: rgb(255, 0, 0);">'ns1:ShipResponse'</span>, error]]]]</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 173</B><BR>Distance between two fragments = 3 <BR>Clone size = 13<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./ws.py"<BR>The first line is 57</TD><TD></TD><TD>Source file "./ws.py"<BR>The first line is 181</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">_rate_error</span>(e):<BR> | |
error = ['ns1:Error', ['ns1:Message', str(e)]]<BR> | |
if e.detail is not None:<BR> | |
error.append(['ns1:Detail', e.detail])<BR> | |
return ['ns0:Envelope', {'xmlns:ns0': 'http://schemas.xmlsoap.org/soap/envelope/', 'xmlns:ns1': 'http://api.zenkraft.com/wsdl/v1'}, ['ns0:Body', [<span style="color: rgb(255, 0, 0);">'ns1:getRates'</span>, [<span style="color: rgb(255, 0, 0);">'ns1:GetRatesResponse'</span>, error]]]]</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_ship_error</span></span>(e):<BR> | |
error = ['ns1:Error', ['ns1:Message', str(e)]]<BR> | |
if e.detail is not None:<BR> | |
error.append(['ns1:Detail', e.detail])<BR> | |
return ['ns0:Envelope', {'xmlns:ns0': 'http://schemas.xmlsoap.org/soap/envelope/', 'xmlns:ns1': 'http://api.zenkraft.com/wsdl/v1'}, ['ns0:Body', [<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ns1:ship'</span></span>, [<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ns1:ShipResponse'</span></span>, error]]]]</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 174</B><BR>Distance between two fragments = 3 <BR>Clone size = 13<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./ws.py"<BR>The first line is 57</TD><TD></TD><TD>Source file "./ws.py"<BR>The first line is 181</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate_error</span></span>(e):<BR> | |
error = ['ns1:Error', ['ns1:Message', str(e)]]<BR> | |
if e.detail is not None:<BR> | |
error.append(['ns1:Detail', e.detail])<BR> | |
return ['ns0:Envelope', {'xmlns:ns0': 'http://schemas.xmlsoap.org/soap/envelope/', 'xmlns:ns1': 'http://api.zenkraft.com/wsdl/v1'}, ['ns0:Body', [<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ns1:getRates'</span></span>, [<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ns1:GetRatesResponse'</span></span>, error]]]]</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_ship_error</span></span>(e):<BR> | |
error = ['ns1:Error', ['ns1:Message', str(e)]]<BR> | |
if e.detail is not None:<BR> | |
error.append(['ns1:Detail', e.detail])<BR> | |
return ['ns0:Envelope', {'xmlns:ns0': 'http://schemas.xmlsoap.org/soap/envelope/', 'xmlns:ns1': 'http://api.zenkraft.com/wsdl/v1'}, ['ns0:Body', [<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ns1:ship'</span></span>, [<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ns1:ShipResponse'</span></span>, error]]]]</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 175</B><BR>Distance between two fragments = 4 <BR>Clone size = 12<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./account.py"<BR>The first line is 1175</TD><TD></TD><TD>Source file "./account.py"<BR>The first line is 1185</TD></TR><TR> | |
<TD> | |
class <span style="color: rgb(255, 0, 0);">PrinterDefaultThermalSetHandler</span>(ExtendedRequestHandler):<BR> | |
def post(self):<BR> | |
printer_id = self.request.get('id')<BR> | |
if printer_id:<BR> | |
self.account.<span style="color: rgb(255, 0, 0);">thermal_printer_default_id</span> = printer_id<BR> | |
self.account.save()<BR> | |
</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
class <span style="color: rgb(255, 0, 0);">PrinterDefaultNonThermalSetHandler</span>(ExtendedRequestHandler):<BR> | |
def post(self):<BR> | |
printer_id = self.request.get('id')<BR> | |
if printer_id:<BR> | |
self.account.<span style="color: rgb(255, 0, 0);">non_thermal_printer_default_id</span> = printer_id<BR> | |
self.account.save()<BR> | |
</TD> | |
</TR> | |
<TR> | |
<TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">PrinterDefaultNonThermalSetHandler</span></span>(ExtendedRequestHandler):<BR> | |
def post(self):<BR> | |
printer_id = self.request.get('id')<BR> | |
if printer_id:<BR> | |
self.account.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">non_thermal_printer_default_id</span></span> = printer_id<BR> | |
self.account.save()<BR> | |
</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
class <span style="color: rgb(255, 0, 0);">PrinterDefaultShippingSetHandler</span>(ExtendedRequestHandler):<BR> | |
def post(self):<BR> | |
printer_id = self.request.get('id')<BR> | |
if printer_id:<BR> | |
self.account.<span style="color: rgb(255, 0, 0);">shipping_documents_printer_default_id</span> = printer_id<BR> | |
self.account.save()<BR> | |
</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 176</B><BR>Distance between two fragments = 4 <BR>Clone size = 12<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./account.py"<BR>The first line is 1175</TD><TD></TD><TD>Source file "./account.py"<BR>The first line is 1185</TD></TR><TR> | |
<TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">PrinterDefaultThermalSetHandler</span></span>(ExtendedRequestHandler):<BR> | |
def post(self):<BR> | |
printer_id = self.request.get('id')<BR> | |
if printer_id:<BR> | |
self.account.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">thermal_printer_default_id</span></span> = printer_id<BR> | |
self.account.save()<BR> | |
</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
class <span style="color: rgb(255, 0, 0);">PrinterDefaultNonThermalSetHandler</span>(ExtendedRequestHandler):<BR> | |
def post(self):<BR> | |
printer_id = self.request.get('id')<BR> | |
if printer_id:<BR> | |
self.account.<span style="color: rgb(255, 0, 0);">non_thermal_printer_default_id</span> = printer_id<BR> | |
self.account.save()<BR> | |
</TD> | |
</TR> | |
<TR> | |
<TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">PrinterDefaultNonThermalSetHandler</span></span></span>(ExtendedRequestHandler):<BR> | |
def post(self):<BR> | |
printer_id = self.request.get('id')<BR> | |
if printer_id:<BR> | |
self.account.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">non_thermal_printer_default_id</span></span></span> = printer_id<BR> | |
self.account.save()<BR> | |
</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
class <span style="color: rgb(255, 0, 0);">PrinterDefaultShippingSetHandler</span>(ExtendedRequestHandler):<BR> | |
def post(self):<BR> | |
printer_id = self.request.get('id')<BR> | |
if printer_id:<BR> | |
self.account.<span style="color: rgb(255, 0, 0);">shipping_documents_printer_default_id</span> = printer_id<BR> | |
self.account.save()<BR> | |
</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 177</B><BR>Distance between two fragments = 4 <BR>Clone size = 12<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./account.py"<BR>The first line is 1175</TD><TD></TD><TD>Source file "./account.py"<BR>The first line is 1185</TD></TR><TR> | |
<TD> | |
class <span style="color: rgb(255, 0, 0);">PrinterDefaultThermalSetHandler</span>(ExtendedRequestHandler):<BR> | |
def post(self):<BR> | |
printer_id = self.request.get('id')<BR> | |
if printer_id:<BR> | |
self.account.<span style="color: rgb(255, 0, 0);">thermal_printer_default_id</span> = printer_id<BR> | |
self.account.save()<BR> | |
</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">PrinterDefaultNonThermalSetHandler</span></span></span></span>(ExtendedRequestHandler):<BR> | |
def post(self):<BR> | |
printer_id = self.request.get('id')<BR> | |
if printer_id:<BR> | |
self.account.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">non_thermal_printer_default_id</span></span></span></span> = printer_id<BR> | |
self.account.save()<BR> | |
</TD> | |
</TR> | |
<TR> | |
<TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">PrinterDefaultNonThermalSetHandler</span></span>(ExtendedRequestHandler):<BR> | |
def post(self):<BR> | |
printer_id = self.request.get('id')<BR> | |
if printer_id:<BR> | |
self.account.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">non_thermal_printer_default_id</span></span> = printer_id<BR> | |
self.account.save()<BR> | |
</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">PrinterDefaultShippingSetHandler</span></span>(ExtendedRequestHandler):<BR> | |
def post(self):<BR> | |
printer_id = self.request.get('id')<BR> | |
if printer_id:<BR> | |
self.account.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipping_documents_printer_default_id</span></span> = printer_id<BR> | |
self.account.save()<BR> | |
</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 178</B><BR>Distance between two fragments = 4 <BR>Clone size = 12<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./account.py"<BR>The first line is 1175</TD><TD></TD><TD>Source file "./account.py"<BR>The first line is 1185</TD></TR><TR> | |
<TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">PrinterDefaultThermalSetHandler</span></span>(ExtendedRequestHandler):<BR> | |
def post(self):<BR> | |
printer_id = self.request.get('id')<BR> | |
if printer_id:<BR> | |
self.account.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">thermal_printer_default_id</span></span> = printer_id<BR> | |
self.account.save()<BR> | |
</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">PrinterDefaultNonThermalSetHandler</span></span></span>(ExtendedRequestHandler):<BR> | |
def post(self):<BR> | |
printer_id = self.request.get('id')<BR> | |
if printer_id:<BR> | |
self.account.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">non_thermal_printer_default_id</span></span></span> = printer_id<BR> | |
self.account.save()<BR> | |
</TD> | |
</TR> | |
<TR> | |
<TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">PrinterDefaultNonThermalSetHandler</span></span></span></span>(ExtendedRequestHandler):<BR> | |
def post(self):<BR> | |
printer_id = self.request.get('id')<BR> | |
if printer_id:<BR> | |
self.account.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">non_thermal_printer_default_id</span></span></span></span> = printer_id<BR> | |
self.account.save()<BR> | |
</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">PrinterDefaultShippingSetHandler</span></span>(ExtendedRequestHandler):<BR> | |
def post(self):<BR> | |
printer_id = self.request.get('id')<BR> | |
if printer_id:<BR> | |
self.account.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipping_documents_printer_default_id</span></span> = printer_id<BR> | |
self.account.save()<BR> | |
</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 183</B><BR>Distance between two fragments = 1 <BR>Clone size = 12<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 109</TD><TD></TD><TD>Source file "./carriers/canada_post.py"<BR>The first line is 201</TD></TR><TR> | |
<TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);">'rate'</span>, is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);">'ship'</span>, is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);">'rate'</span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);">'ship'</span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
</TR> | |
<TR> | |
<TD> | |
sender = shipment['sender']</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
sender = shipment['sender']</TD> | |
</TR> | |
<TR> | |
<TD> | |
recipient = shipment['recipient']</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
recipient = shipment['recipient']</TD> | |
</TR> | |
<TR> | |
<TD> | |
packages = shipment['packages']</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
packages = shipment['packages']</TD> | |
</TR> | |
<TR> | |
<TD> | |
special_services = shipment.get('special_services', [])</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
special_services = shipment.get('special_services', [])</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 184</B><BR>Distance between two fragments = 1 <BR>Clone size = 12<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 109</TD><TD></TD><TD>Source file "./carriers/canada_post.py"<BR>The first line is 201</TD></TR><TR> | |
<TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);">'rate'</span>, is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);">'ship'</span>, is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);">'rate'</span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);">'ship'</span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
</TR> | |
<TR> | |
<TD> | |
sender = shipment['sender']</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
sender = shipment['sender']</TD> | |
</TR> | |
<TR> | |
<TD> | |
recipient = shipment['recipient']</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
recipient = shipment['recipient']</TD> | |
</TR> | |
<TR> | |
<TD> | |
packages = shipment['packages']</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
packages = shipment['packages']</TD> | |
</TR> | |
<TR> | |
<TD> | |
special_services = shipment.get('special_services', [])</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
special_services = shipment.get('special_services', [])</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 186</B><BR>Distance between two fragments = 3 <BR>Clone size = 12<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/purolator.py"<BR>The first line is 525</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 505</TD></TR><TR> | |
<TD> | |
headers = {'SOAPAction': <span style="color: rgb(255, 0, 0);">'http://purolator.com/pws/service/v1/GetDocuments'</span>}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
headers = {'SOAPAction': <span style="color: rgb(255, 0, 0);">'http://purolator.com/pws/service/v2/CreateShipment'</span>}</TD> | |
</TR> | |
<TR> | |
<TD> | |
result = _post(url, request, is_test, headers)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
result = _post(url, request, is_test, headers)</TD> | |
</TR> | |
<TR> | |
<TD> | |
xml_str = result.content</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
xml_str = result.content</TD> | |
</TR> | |
<TR> | |
<TD> | |
xml = parse_carrier_xml(xml_str)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
xml = parse_carrier_xml(xml_str)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=request, carrier_response=<span style="color: rgb(255, 0, 0);">xml_str</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=request, carrier_response=<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 187</B><BR>Distance between two fragments = 3 <BR>Clone size = 12<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/purolator.py"<BR>The first line is 525</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 505</TD></TR><TR> | |
<TD> | |
headers = {'SOAPAction': <span style="color: rgb(255, 0, 0);">'http://purolator.com/pws/service/v1/GetDocuments'</span>}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
headers = {'SOAPAction': <span style="color: rgb(255, 0, 0);">'http://purolator.com/pws/service/v2/CreateShipment'</span>}</TD> | |
</TR> | |
<TR> | |
<TD> | |
result = _post(url, request, is_test, headers)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
result = _post(url, request, is_test, headers)</TD> | |
</TR> | |
<TR> | |
<TD> | |
xml_str = result.content</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
xml_str = result.content</TD> | |
</TR> | |
<TR> | |
<TD> | |
xml = parse_carrier_xml(xml_str)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
xml = parse_carrier_xml(xml_str)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=request, carrier_response=<span style="color: rgb(255, 0, 0);">xml_str</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=request, carrier_response=<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 188</B><BR>Distance between two fragments = 4 <BR>Clone size = 12<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/parcelforce.py"<BR>The first line is 407</TD><TD></TD><TD>Source file "./carriers/parcelforce.py"<BR>The first line is 562</TD></TR><TR> | |
<TD> | |
_endpoint = endpoint(is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_endpoint = endpoint(is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">req</span> = ['soapenv:Envelope', {'xmlns:soapenv': 'http://schemas.xmlsoap.org/soap/envelope/', 'xmlns': 'http://www.parcelforce.net/ws/ship/v14'}, ['soapenv:Header'], ['soapenv:Body', [<span style="color: rgb(255, 0, 0);">'ReturnShipmentRequest'</span>, _get_authentication(auth), ['ShipmentNumber', <span style="color: rgb(255, 0, 0);">shipment</span>['tracking_number']]]]]</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">request</span> = ['soapenv:Envelope', {'xmlns:soapenv': 'http://schemas.xmlsoap.org/soap/envelope/', 'xmlns': 'http://www.parcelforce.net/ws/ship/v14'}, ['soapenv:Header'], ['soapenv:Body', [<span style="color: rgb(255, 0, 0);">'CancelShipmentRequest'</span>, _get_authentication(auth), ['ShipmentNumber', <span style="color: rgb(255, 0, 0);">req</span>['tracking_number']]]]]</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">req_result</span> = post_xml(_endpoint, to_xml_str(<span style="color: rgb(255, 0, 0);">req</span>))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">result</span> = post_xml(_endpoint, to_xml_str(<span style="color: rgb(255, 0, 0);">request</span>))</TD> | |
</TR> | |
<TR> | |
<TD> | |
result_xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">req_result</span>.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
result_xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result</span>.content)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 189</B><BR>Distance between two fragments = 4 <BR>Clone size = 12<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/parcelforce.py"<BR>The first line is 407</TD><TD></TD><TD>Source file "./carriers/parcelforce.py"<BR>The first line is 562</TD></TR><TR> | |
<TD> | |
_endpoint = endpoint(is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_endpoint = endpoint(is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">req</span> = ['soapenv:Envelope', {'xmlns:soapenv': 'http://schemas.xmlsoap.org/soap/envelope/', 'xmlns': 'http://www.parcelforce.net/ws/ship/v14'}, ['soapenv:Header'], ['soapenv:Body', [<span style="color: rgb(255, 0, 0);">'ReturnShipmentRequest'</span>, _get_authentication(auth), ['ShipmentNumber', <span style="color: rgb(255, 0, 0);">shipment</span>['tracking_number']]]]]</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">request</span> = ['soapenv:Envelope', {'xmlns:soapenv': 'http://schemas.xmlsoap.org/soap/envelope/', 'xmlns': 'http://www.parcelforce.net/ws/ship/v14'}, ['soapenv:Header'], ['soapenv:Body', [<span style="color: rgb(255, 0, 0);">'CancelShipmentRequest'</span>, _get_authentication(auth), ['ShipmentNumber', <span style="color: rgb(255, 0, 0);">req</span>['tracking_number']]]]]</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">req_result</span> = post_xml(_endpoint, to_xml_str(<span style="color: rgb(255, 0, 0);">req</span>))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">result</span> = post_xml(_endpoint, to_xml_str(<span style="color: rgb(255, 0, 0);">request</span>))</TD> | |
</TR> | |
<TR> | |
<TD> | |
result_xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">req_result</span>.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
result_xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result</span>.content)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 190</B><BR>Distance between two fragments = 3 <BR>Clone size = 13<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1121</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 1292</TD></TR><TR> | |
<TD> | |
port_name = <span style="color: rgb(255, 0, 0);">'PickupServiceProdPort'</span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = <span style="color: rgb(255, 0, 0);">'PickupProdPort'</span></TD> | |
</TR> | |
<TR> | |
<TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);">'PickupServiceTestPort'</span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);">'PickupTestPort'</span></TD> | |
</TR> | |
<TR> | |
<TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/PickupService_v17.wsdl'</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/ups/Pickup.wsdl'</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
</TR> | |
<TR> | |
<TD> | |
total_weight = 0</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
total_weight = 0</TD> | |
</TR> | |
<TR> | |
<TD> | |
total_pieces = 0</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
total_pieces = 0</TD> | |
</TR> | |
<TR> | |
<TD> | |
line_items = []</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
line_items = []</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 191</B><BR>Distance between two fragments = 3 <BR>Clone size = 13<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1121</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 1292</TD></TR><TR> | |
<TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceProdPort'</span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = <span style="color: rgb(255, 0, 0);">'PickupProdPort'</span></TD> | |
</TR> | |
<TR> | |
<TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceTestPort'</span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);">'PickupTestPort'</span></TD> | |
</TR> | |
<TR> | |
<TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/PickupService_v17.wsdl'</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/ups/Pickup.wsdl'</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
</TR> | |
<TR> | |
<TD> | |
total_weight = 0</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
total_weight = 0</TD> | |
</TR> | |
<TR> | |
<TD> | |
total_pieces = 0</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
total_pieces = 0</TD> | |
</TR> | |
<TR> | |
<TD> | |
line_items = []</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
line_items = []</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 192</B><BR>Distance between two fragments = 3 <BR>Clone size = 13<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1121</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 1292</TD></TR><TR> | |
<TD> | |
port_name = <span style="color: rgb(255, 0, 0);">'PickupServiceProdPort'</span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupProdPort'</span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);">'PickupServiceTestPort'</span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupTestPort'</span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/PickupService_v17.wsdl'</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/ups/Pickup.wsdl'</span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
</TR> | |
<TR> | |
<TD> | |
total_weight = 0</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
total_weight = 0</TD> | |
</TR> | |
<TR> | |
<TD> | |
total_pieces = 0</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
total_pieces = 0</TD> | |
</TR> | |
<TR> | |
<TD> | |
line_items = []</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
line_items = []</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 193</B><BR>Distance between two fragments = 3 <BR>Clone size = 13<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1121</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 1292</TD></TR><TR> | |
<TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceProdPort'</span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupProdPort'</span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceTestPort'</span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupTestPort'</span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/PickupService_v17.wsdl'</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/ups/Pickup.wsdl'</span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
</TR> | |
<TR> | |
<TD> | |
total_weight = 0</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
total_weight = 0</TD> | |
</TR> | |
<TR> | |
<TD> | |
total_pieces = 0</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
total_pieces = 0</TD> | |
</TR> | |
<TR> | |
<TD> | |
line_items = []</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
line_items = []</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 202</B><BR>Distance between two fragments = 3 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/base.py"<BR>The first line is 1787</TD><TD></TD><TD>Source file "./account.py"<BR>The first line is 319</TD></TR><TR> | |
<TD> | |
pdf_labels = [label for label in <span style="color: rgb(255, 0, 0);">shipment_model</span>.label_summary if label.get('label_type') == u'PDF']</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
pdf_labels = [label for label in <span style="color: rgb(255, 0, 0);">shipment</span>.label_summary if label.get('label_type') == u'PDF']</TD> | |
</TR> | |
<TR> | |
<TD> | |
non_pdf_labels = [label for label in <span style="color: rgb(255, 0, 0);">shipment_model</span>.label_summary if label.get('label_type') != u'PDF']</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
non_pdf_labels = [label for label in <span style="color: rgb(255, 0, 0);">shipment</span>.label_summary if label.get('label_type') != u'PDF']</TD> | |
</TR> | |
<TR> | |
<TD> | |
docs_labels = <span style="color: rgb(255, 0, 0);">shipment_model</span>.response.get('shipment', {}).get('shipping_documents', [])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
docs_labels = <span style="color: rgb(255, 0, 0);">shipment</span>.response.get('shipment', {}).get('shipping_documents', [])</TD> | |
</TR> | |
<TR> | |
<TD> | |
url = 'https://api.printnode.com/printjobs'</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
url = 'https://api.printnode.com/printjobs'</TD> | |
</TR> | |
<TR> | |
<TD> | |
headers = {'Authorization': 'Basic {}'.format(base64.b64encode(master_keys.get('printnode'))), 'X-Child-Account-By-Email': <span style="color: rgb(255, 0, 0);">account</span>.printnode_email}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
headers = {'Authorization': 'Basic {}'.format(base64.b64encode(master_keys.get('printnode'))), 'X-Child-Account-By-Email': <span style="color: rgb(255, 0, 0);">self.account</span>.printnode_email}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 203</B><BR>Distance between two fragments = 3 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/base.py"<BR>The first line is 1787</TD><TD></TD><TD>Source file "./account.py"<BR>The first line is 319</TD></TR><TR> | |
<TD> | |
pdf_labels = [label for label in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipment_model</span></span>.label_summary if label.get('label_type') == u'PDF']</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
pdf_labels = [label for label in <span style="color: rgb(255, 0, 0);">shipment</span>.label_summary if label.get('label_type') == u'PDF']</TD> | |
</TR> | |
<TR> | |
<TD> | |
non_pdf_labels = [label for label in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipment_model</span></span>.label_summary if label.get('label_type') != u'PDF']</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
non_pdf_labels = [label for label in <span style="color: rgb(255, 0, 0);">shipment</span>.label_summary if label.get('label_type') != u'PDF']</TD> | |
</TR> | |
<TR> | |
<TD> | |
docs_labels = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipment_model</span></span>.response.get('shipment', {}).get('shipping_documents', [])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
docs_labels = <span style="color: rgb(255, 0, 0);">shipment</span>.response.get('shipment', {}).get('shipping_documents', [])</TD> | |
</TR> | |
<TR> | |
<TD> | |
url = 'https://api.printnode.com/printjobs'</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
url = 'https://api.printnode.com/printjobs'</TD> | |
</TR> | |
<TR> | |
<TD> | |
headers = {'Authorization': 'Basic {}'.format(base64.b64encode(master_keys.get('printnode'))), 'X-Child-Account-By-Email': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">account</span></span>.printnode_email}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
headers = {'Authorization': 'Basic {}'.format(base64.b64encode(master_keys.get('printnode'))), 'X-Child-Account-By-Email': <span style="color: rgb(255, 0, 0);">self.account</span>.printnode_email}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 204</B><BR>Distance between two fragments = 3 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/base.py"<BR>The first line is 1787</TD><TD></TD><TD>Source file "./account.py"<BR>The first line is 319</TD></TR><TR> | |
<TD> | |
pdf_labels = [label for label in <span style="color: rgb(255, 0, 0);">shipment_model</span>.label_summary if label.get('label_type') == u'PDF']</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
pdf_labels = [label for label in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipment</span></span>.label_summary if label.get('label_type') == u'PDF']</TD> | |
</TR> | |
<TR> | |
<TD> | |
non_pdf_labels = [label for label in <span style="color: rgb(255, 0, 0);">shipment_model</span>.label_summary if label.get('label_type') != u'PDF']</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
non_pdf_labels = [label for label in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipment</span></span>.label_summary if label.get('label_type') != u'PDF']</TD> | |
</TR> | |
<TR> | |
<TD> | |
docs_labels = <span style="color: rgb(255, 0, 0);">shipment_model</span>.response.get('shipment', {}).get('shipping_documents', [])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
docs_labels = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipment</span></span>.response.get('shipment', {}).get('shipping_documents', [])</TD> | |
</TR> | |
<TR> | |
<TD> | |
url = 'https://api.printnode.com/printjobs'</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
url = 'https://api.printnode.com/printjobs'</TD> | |
</TR> | |
<TR> | |
<TD> | |
headers = {'Authorization': 'Basic {}'.format(base64.b64encode(master_keys.get('printnode'))), 'X-Child-Account-By-Email': <span style="color: rgb(255, 0, 0);">account</span>.printnode_email}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
headers = {'Authorization': 'Basic {}'.format(base64.b64encode(master_keys.get('printnode'))), 'X-Child-Account-By-Email': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">self.account</span></span>.printnode_email}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 205</B><BR>Distance between two fragments = 3 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/base.py"<BR>The first line is 1787</TD><TD></TD><TD>Source file "./account.py"<BR>The first line is 319</TD></TR><TR> | |
<TD> | |
pdf_labels = [label for label in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipment_model</span></span>.label_summary if label.get('label_type') == u'PDF']</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
pdf_labels = [label for label in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipment</span></span>.label_summary if label.get('label_type') == u'PDF']</TD> | |
</TR> | |
<TR> | |
<TD> | |
non_pdf_labels = [label for label in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipment_model</span></span>.label_summary if label.get('label_type') != u'PDF']</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
non_pdf_labels = [label for label in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipment</span></span>.label_summary if label.get('label_type') != u'PDF']</TD> | |
</TR> | |
<TR> | |
<TD> | |
docs_labels = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipment_model</span></span>.response.get('shipment', {}).get('shipping_documents', [])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
docs_labels = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipment</span></span>.response.get('shipment', {}).get('shipping_documents', [])</TD> | |
</TR> | |
<TR> | |
<TD> | |
url = 'https://api.printnode.com/printjobs'</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
url = 'https://api.printnode.com/printjobs'</TD> | |
</TR> | |
<TR> | |
<TD> | |
headers = {'Authorization': 'Basic {}'.format(base64.b64encode(master_keys.get('printnode'))), 'X-Child-Account-By-Email': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">account</span></span>.printnode_email}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
headers = {'Authorization': 'Basic {}'.format(base64.b64encode(master_keys.get('printnode'))), 'X-Child-Account-By-Email': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">self.account</span></span>.printnode_email}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 206</B><BR>Distance between two fragments = 4 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/usps.py"<BR>The first line is 245</TD><TD></TD><TD>Source file "./carriers/usps.py"<BR>The first line is 403</TD></TR><TR> | |
<TD> | |
headers = {'SOAPAction': <span style="color: rgb(255, 0, 0);">'http://www.express1.com/2010/06/IEwsLabelService/RefundRequest'</span>}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
headers = {'SOAPAction': <span style="color: rgb(255, 0, 0);">'http://www.express1.com/2010/06/IEwsLabelService/GetAccountStatus'</span>}</TD> | |
</TR> | |
<TR> | |
<TD> | |
result = post_xml(_get_endpoint(is_test), to_xml_str(request), headers=headers)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
result = post_xml(_get_endpoint(is_test), to_xml_str(request), headers=headers)</TD> | |
</TR> | |
<TR> | |
<TD> | |
ns = '{http://schemas.xmlsoap.org/soap/envelope/}'</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
ns = '{http://schemas.xmlsoap.org/soap/envelope/}'</TD> | |
</TR> | |
<TR> | |
<TD> | |
ns2 = '{http://www.express1.com/2010/06}'</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
ns2 = '{http://www.express1.com/2010/06}'</TD> | |
</TR> | |
<TR> | |
<TD> | |
xml = parse_carrier_xml(result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
xml = parse_carrier_xml(result.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">error</span> = xml.<span style="color: rgb(255, 0, 0);">findtext</span>(<span style="color: rgb(255, 0, 0);">'.//{ns}Body//{ns2}GetPostageLabelResponse//{ns2}GetPostageLabelResult//{ns2}ErrorMessage'</span>.format(ns=ns, ns2=ns2))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">postage_balance</span> = xml.<span style="color: rgb(255, 0, 0);">find</span>(<span style="color: rgb(255, 0, 0);">'.//{ns}Body//{ns2}GetAccountStatusResponse//{ns2}GetAccountStatusResult//{ns2}CertifiedIntermediary//{ns2}PostageBalance'</span>.format(ns=ns, ns2=ns2))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 207</B><BR>Distance between two fragments = 4 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/usps.py"<BR>The first line is 245</TD><TD></TD><TD>Source file "./carriers/usps.py"<BR>The first line is 403</TD></TR><TR> | |
<TD> | |
headers = {'SOAPAction': <span style="color: rgb(255, 0, 0);">'http://www.express1.com/2010/06/IEwsLabelService/RefundRequest'</span>}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
headers = {'SOAPAction': <span style="color: rgb(255, 0, 0);">'http://www.express1.com/2010/06/IEwsLabelService/GetAccountStatus'</span>}</TD> | |
</TR> | |
<TR> | |
<TD> | |
result = post_xml(_get_endpoint(is_test), to_xml_str(request), headers=headers)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
result = post_xml(_get_endpoint(is_test), to_xml_str(request), headers=headers)</TD> | |
</TR> | |
<TR> | |
<TD> | |
ns = '{http://schemas.xmlsoap.org/soap/envelope/}'</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
ns = '{http://schemas.xmlsoap.org/soap/envelope/}'</TD> | |
</TR> | |
<TR> | |
<TD> | |
ns2 = '{http://www.express1.com/2010/06}'</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
ns2 = '{http://www.express1.com/2010/06}'</TD> | |
</TR> | |
<TR> | |
<TD> | |
xml = parse_carrier_xml(result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
xml = parse_carrier_xml(result.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">error</span> = xml.<span style="color: rgb(255, 0, 0);">findtext</span>(<span style="color: rgb(255, 0, 0);">'.//{ns}Body//{ns2}GetPostageLabelResponse//{ns2}GetPostageLabelResult//{ns2}ErrorMessage'</span>.format(ns=ns, ns2=ns2))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">postage_balance</span> = xml.<span style="color: rgb(255, 0, 0);">find</span>(<span style="color: rgb(255, 0, 0);">'.//{ns}Body//{ns2}GetAccountStatusResponse//{ns2}GetAccountStatusResult//{ns2}CertifiedIntermediary//{ns2}PostageBalance'</span>.format(ns=ns, ns2=ns2))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 208</B><BR>Distance between two fragments = 4 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/parcelforce.py"<BR>The first line is 266</TD><TD></TD><TD>Source file "./carriers/parcelforce.py"<BR>The first line is 302</TD></TR><TR> | |
<TD> | |
_endpoint = endpoint(is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_endpoint = endpoint(is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">req</span> = ['soapenv:Envelope', {'xmlns:soapenv': 'http://schemas.xmlsoap.org/soap/envelope/', 'xmlns': 'http://www.parcelforce.net/ws/ship/v14'}, ['soapenv:Header'], ['soapenv:Body', [<span style="color: rgb(255, 0, 0);">'PrintLabelRequest'</span>, _get_authentication(auth), ['ShipmentNumber', shipment['tracking_number']], [<span style="color: rgb(255, 0, 0);">'PrintType'</span>, <span style="color: rgb(255, 0, 0);">'ALL_PARCELS'</span>]]]]</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">docs_req</span> = ['soapenv:Envelope', {'xmlns:soapenv': 'http://schemas.xmlsoap.org/soap/envelope/', 'xmlns': 'http://www.parcelforce.net/ws/ship/v14'}, ['soapenv:Header'], ['soapenv:Body', [<span style="color: rgb(255, 0, 0);">'PrintDocumentRequest'</span>, _get_authentication(auth), ['ShipmentNumber', shipment['tracking_number']], [<span style="color: rgb(255, 0, 0);">'DocumentType'</span>, <span style="color: rgb(255, 0, 0);">'{doc_type}'</span>]]]]</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 209</B><BR>Distance between two fragments = 4 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/parcelforce.py"<BR>The first line is 266</TD><TD></TD><TD>Source file "./carriers/parcelforce.py"<BR>The first line is 302</TD></TR><TR> | |
<TD> | |
_endpoint = endpoint(is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_endpoint = endpoint(is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">req</span> = ['soapenv:Envelope', {'xmlns:soapenv': 'http://schemas.xmlsoap.org/soap/envelope/', 'xmlns': 'http://www.parcelforce.net/ws/ship/v14'}, ['soapenv:Header'], ['soapenv:Body', [<span style="color: rgb(255, 0, 0);">'PrintLabelRequest'</span>, _get_authentication(auth), ['ShipmentNumber', shipment['tracking_number']], [<span style="color: rgb(255, 0, 0);">'PrintType'</span>, <span style="color: rgb(255, 0, 0);">'ALL_PARCELS'</span>]]]]</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">docs_req</span> = ['soapenv:Envelope', {'xmlns:soapenv': 'http://schemas.xmlsoap.org/soap/envelope/', 'xmlns': 'http://www.parcelforce.net/ws/ship/v14'}, ['soapenv:Header'], ['soapenv:Body', [<span style="color: rgb(255, 0, 0);">'PrintDocumentRequest'</span>, _get_authentication(auth), ['ShipmentNumber', shipment['tracking_number']], [<span style="color: rgb(255, 0, 0);">'DocumentType'</span>, <span style="color: rgb(255, 0, 0);">'{doc_type}'</span>]]]]</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 210</B><BR>Distance between two fragments = 4 <BR>Clone size = 12<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/australia_post.py"<BR>The first line is 154</TD><TD></TD><TD>Source file "./carriers/australia_post.py"<BR>The first line is 231</TD></TR><TR> | |
<TD> | |
result = post_json(endpoint_url, <span style="color: rgb(255, 0, 0);">_carrier_request</span>, headers=_get_headers(auth))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
result = post_json(endpoint_url, <span style="color: rgb(255, 0, 0);">request_body</span>, headers=_get_headers(auth))</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);">_carrier_request</span>), carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);">request_body</span>), carrier_response=result.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
rate_result = result.json()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
rate_result = result.json()</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">prices</span> = <span style="color: rgb(255, 0, 0);">{}</span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">rate_list</span> = <span style="color: rgb(255, 0, 0);">[]</span></TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">errors</span> = []</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">shipment_ids</span> = []</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 211</B><BR>Distance between two fragments = 4 <BR>Clone size = 12<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/australia_post.py"<BR>The first line is 154</TD><TD></TD><TD>Source file "./carriers/australia_post.py"<BR>The first line is 231</TD></TR><TR> | |
<TD> | |
result = post_json(endpoint_url, <span style="color: rgb(255, 0, 0);">_carrier_request</span>, headers=_get_headers(auth))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
result = post_json(endpoint_url, <span style="color: rgb(255, 0, 0);">request_body</span>, headers=_get_headers(auth))</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);">_carrier_request</span>), carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);">request_body</span>), carrier_response=result.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
rate_result = result.json()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
rate_result = result.json()</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">prices</span> = <span style="color: rgb(255, 0, 0);">{}</span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">rate_list</span> = <span style="color: rgb(255, 0, 0);">[]</span></TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">errors</span> = []</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">shipment_ids</span> = []</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 212</B><BR>Distance between two fragments = 1 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./zeep/wsdl/messages/base.py"<BR>The first line is 32</TD><TD></TD><TD>Source file "./zeep/wsdl/messages/soap.py"<BR>The first line is 133</TD></TR><TR> | |
<TD> | |
if not self.<span style="color: rgb(255, 0, 0);">body</span>:<BR> | |
return None</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if not self.<span style="color: rgb(255, 0, 0);">envelope</span>:<BR> | |
return None</TD> | |
</TR> | |
<TR> | |
<TD> | |
if as_output:<BR> | |
if isinstance(self.<span style="color: rgb(255, 0, 0);">body</span>.type, xsd.ComplexType):<BR> | |
try:<BR> | |
if len(self.<span style="color: rgb(255, 0, 0);">body</span>.type.elements) == 1:<BR> | |
return self.<span style="color: rgb(255, 0, 0);">body</span>.type.elements[0][1].type.signature(schema=self.wsdl.types, standalone=False)<BR> | |
except AttributeError:<BR> | |
return None<BR> | |
return self.<span style="color: rgb(255, 0, 0);">body</span>.type.signature(schema=self.wsdl.types, standalone=False)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if as_output:<BR> | |
if isinstance(self.<span style="color: rgb(255, 0, 0);">envelope</span>.type, xsd.ComplexType):<BR> | |
try:<BR> | |
if len(self.<span style="color: rgb(255, 0, 0);">envelope</span>.type.elements) == 1:<BR> | |
return self.<span style="color: rgb(255, 0, 0);">envelope</span>.type.elements[0][1].type.signature(schema=self.wsdl.types, standalone=False)<BR> | |
except AttributeError:<BR> | |
return None<BR> | |
return self.<span style="color: rgb(255, 0, 0);">envelope</span>.type.signature(schema=self.wsdl.types, standalone=False)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 213</B><BR>Distance between two fragments = 4 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./tests/main_test.py"<BR>The first line is 1529</TD><TD></TD><TD>Source file "./tests/main_test.py"<BR>The first line is 1787</TD></TR><TR> | |
<TD> | |
params = {'shipping_account': {'name': <span style="color: rgb(255, 0, 0);">'My UPS test account'</span>, 'carrier': <span style="color: rgb(255, 0, 0);">'ups'</span>, 'country': 'US', 'auth': {'password': <span style="color: rgb(255, 0, 0);">'rmgienu0kw'</span>, 'userid': <span style="color: rgb(255, 0, 0);">'ZD16004094857869'</span>, 'account_number': '168R02'}}}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
params = {'shipping_account': {'name': <span style="color: rgb(255, 0, 0);">'My UPS Freight test account'</span>, 'carrier': <span style="color: rgb(255, 0, 0);">'ups_freight'</span>, 'country': 'US', 'auth': {'password': <span style="color: rgb(255, 0, 0);">'cxbnzenf9n'</span>, 'userid': <span style="color: rgb(255, 0, 0);">'DZ18309061814701'</span>, 'account_number': '168R02'}}}</TD> | |
</TR> | |
<TR> | |
<TD> | |
res = req_post(app, api_key, '/shippingaccount', params)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
res = req_post(app, api_key, '/shippingaccount', params)</TD> | |
</TR> | |
<TR> | |
<TD> | |
acc_id = res['shipping_account']['id']</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
acc_id = res['shipping_account']['id']</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 214</B><BR>Distance between two fragments = 4 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./tests/main_test.py"<BR>The first line is 1529</TD><TD></TD><TD>Source file "./tests/main_test.py"<BR>The first line is 1787</TD></TR><TR> | |
<TD> | |
params = {'shipping_account': {'name': <span style="color: rgb(255, 0, 0);">'My UPS test account'</span>, 'carrier': <span style="color: rgb(255, 0, 0);">'ups'</span>, 'country': 'US', 'auth': {'password': <span style="color: rgb(255, 0, 0);">'rmgienu0kw'</span>, 'userid': <span style="color: rgb(255, 0, 0);">'ZD16004094857869'</span>, 'account_number': '168R02'}}}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
params = {'shipping_account': {'name': <span style="color: rgb(255, 0, 0);">'My UPS Freight test account'</span>, 'carrier': <span style="color: rgb(255, 0, 0);">'ups_freight'</span>, 'country': 'US', 'auth': {'password': <span style="color: rgb(255, 0, 0);">'cxbnzenf9n'</span>, 'userid': <span style="color: rgb(255, 0, 0);">'DZ18309061814701'</span>, 'account_number': '168R02'}}}</TD> | |
</TR> | |
<TR> | |
<TD> | |
res = req_post(app, api_key, '/shippingaccount', params)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
res = req_post(app, api_key, '/shippingaccount', params)</TD> | |
</TR> | |
<TR> | |
<TD> | |
acc_id = res['shipping_account']['id']</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
acc_id = res['shipping_account']['id']</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 215</B><BR>Distance between two fragments = 4 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./tests/main_test.py"<BR>The first line is 749</TD><TD></TD><TD>Source file "./tests/ui_test.py"<BR>The first line is 44</TD></TR><TR> | |
<TD> | |
params = {'shipping_account': {'name': 'Fedex Test Account', 'carrier': 'fedex', 'country': 'US', 'auth': {'password': <span style="color: rgb(255, 0, 0);">'v6S5YjRhLEvSTdSwfjOY2uzyW'</span>, 'key': <span style="color: rgb(255, 0, 0);">'SH2p9UyUWgbhdeAg'</span>, 'meter_number': <span style="color: rgb(255, 0, 0);">'119147957'</span>, 'account_number': <span style="color: rgb(255, 0, 0);">'630156343'</span>}}}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
params = {'shipping_account': {'name': 'Fedex Test Account', 'carrier': 'fedex', 'country': 'US', 'auth': {'password': <span style="color: rgb(255, 0, 0);">'wyl0NeVHXpFOSosCzaVtk4cQR'</span>, 'key': <span style="color: rgb(255, 0, 0);">'rd7ifFNLqLAQBZ76'</span>, 'meter_number': <span style="color: rgb(255, 0, 0);">'119068240'</span>, 'account_number': <span style="color: rgb(255, 0, 0);">'630148367'</span>}}}</TD> | |
</TR> | |
<TR> | |
<TD> | |
res = req_post(app, api_key, '/shippingaccount', params)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
res = req_post(app, api_key, '/shippingaccount', params)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 216</B><BR>Distance between two fragments = 4 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./tests/main_test.py"<BR>The first line is 749</TD><TD></TD><TD>Source file "./tests/ui_test.py"<BR>The first line is 44</TD></TR><TR> | |
<TD> | |
params = {'shipping_account': {'name': 'Fedex Test Account', 'carrier': 'fedex', 'country': 'US', 'auth': {'password': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'v6S5YjRhLEvSTdSwfjOY2uzyW'</span></span>, 'key': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'SH2p9UyUWgbhdeAg'</span></span>, 'meter_number': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'119147957'</span></span>, 'account_number': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'630156343'</span></span>}}}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
params = {'shipping_account': {'name': 'Fedex Test Account', 'carrier': 'fedex', 'country': 'US', 'auth': {'password': <span style="color: rgb(255, 0, 0);">'wyl0NeVHXpFOSosCzaVtk4cQR'</span>, 'key': <span style="color: rgb(255, 0, 0);">'rd7ifFNLqLAQBZ76'</span>, 'meter_number': <span style="color: rgb(255, 0, 0);">'119068240'</span>, 'account_number': <span style="color: rgb(255, 0, 0);">'630148367'</span>}}}</TD> | |
</TR> | |
<TR> | |
<TD> | |
res = req_post(app, api_key, '/shippingaccount', params)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
res = req_post(app, api_key, '/shippingaccount', params)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 217</B><BR>Distance between two fragments = 4 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./tests/main_test.py"<BR>The first line is 749</TD><TD></TD><TD>Source file "./tests/ui_test.py"<BR>The first line is 44</TD></TR><TR> | |
<TD> | |
params = {'shipping_account': {'name': 'Fedex Test Account', 'carrier': 'fedex', 'country': 'US', 'auth': {'password': <span style="color: rgb(255, 0, 0);">'v6S5YjRhLEvSTdSwfjOY2uzyW'</span>, 'key': <span style="color: rgb(255, 0, 0);">'SH2p9UyUWgbhdeAg'</span>, 'meter_number': <span style="color: rgb(255, 0, 0);">'119147957'</span>, 'account_number': <span style="color: rgb(255, 0, 0);">'630156343'</span>}}}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
params = {'shipping_account': {'name': 'Fedex Test Account', 'carrier': 'fedex', 'country': 'US', 'auth': {'password': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'wyl0NeVHXpFOSosCzaVtk4cQR'</span></span>, 'key': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'rd7ifFNLqLAQBZ76'</span></span>, 'meter_number': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'119068240'</span></span>, 'account_number': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'630148367'</span></span>}}}</TD> | |
</TR> | |
<TR> | |
<TD> | |
res = req_post(app, api_key, '/shippingaccount', params)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
res = req_post(app, api_key, '/shippingaccount', params)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 218</B><BR>Distance between two fragments = 4 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./tests/main_test.py"<BR>The first line is 749</TD><TD></TD><TD>Source file "./tests/ui_test.py"<BR>The first line is 44</TD></TR><TR> | |
<TD> | |
params = {'shipping_account': {'name': 'Fedex Test Account', 'carrier': 'fedex', 'country': 'US', 'auth': {'password': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'v6S5YjRhLEvSTdSwfjOY2uzyW'</span></span>, 'key': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'SH2p9UyUWgbhdeAg'</span></span>, 'meter_number': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'119147957'</span></span>, 'account_number': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'630156343'</span></span>}}}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
params = {'shipping_account': {'name': 'Fedex Test Account', 'carrier': 'fedex', 'country': 'US', 'auth': {'password': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'wyl0NeVHXpFOSosCzaVtk4cQR'</span></span>, 'key': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'rd7ifFNLqLAQBZ76'</span></span>, 'meter_number': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'119068240'</span></span>, 'account_number': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'630148367'</span></span>}}}</TD> | |
</TR> | |
<TR> | |
<TD> | |
res = req_post(app, api_key, '/shippingaccount', params)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
res = req_post(app, api_key, '/shippingaccount', params)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 219</B><BR>Distance between two fragments = 4 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/parcelforce.py"<BR>The first line is 285</TD><TD></TD><TD>Source file "./carriers/parcelforce.py"<BR>The first line is 580</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">req_result</span> = post_xml(_endpoint, to_xml_str(<span style="color: rgb(255, 0, 0);">req</span>))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result</span></span> = post_xml(_endpoint, to_xml_str(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span>))</TD> | |
</TR> | |
<TR> | |
<TD> | |
result_xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">req_result</span>.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
result_xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result</span></span>.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(result_xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=to_xml_str(<span style="color: rgb(255, 0, 0);">req</span>), carrier_response=<span style="color: rgb(255, 0, 0);">req_result</span>.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_check_for_errors(result_xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=to_xml_str(<span style="color: rgb(255, 0, 0);">request</span>), carrier_response=<span style="color: rgb(255, 0, 0);">result</span>.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">label_data</span> = _xml_find(result_xml, <span style="color: rgb(255, 0, 0);">'.//{ns}Label/{ns}Data'</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">status</span> = _xml_find(result_xml, <span style="color: rgb(255, 0, 0);">'.//{ns}Status'</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 220</B><BR>Distance between two fragments = 4 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/parcelforce.py"<BR>The first line is 285</TD><TD></TD><TD>Source file "./carriers/parcelforce.py"<BR>The first line is 580</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">req_result</span> = post_xml(_endpoint, to_xml_str(<span style="color: rgb(255, 0, 0);">req</span>))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result</span></span> = post_xml(_endpoint, to_xml_str(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span>))</TD> | |
</TR> | |
<TR> | |
<TD> | |
result_xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">req_result</span>.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
result_xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result</span></span>.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(result_xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=to_xml_str(<span style="color: rgb(255, 0, 0);">req</span>), carrier_response=<span style="color: rgb(255, 0, 0);">req_result</span>.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_check_for_errors(result_xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=to_xml_str(<span style="color: rgb(255, 0, 0);">request</span>), carrier_response=<span style="color: rgb(255, 0, 0);">result</span>.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">label_data</span> = _xml_find(result_xml, <span style="color: rgb(255, 0, 0);">'.//{ns}Label/{ns}Data'</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">status</span> = _xml_find(result_xml, <span style="color: rgb(255, 0, 0);">'.//{ns}Status'</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 221</B><BR>Distance between two fragments = 4 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 327</TD><TD></TD><TD>Source file "./carriers/aramex.py"<BR>The first line is 361</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">pickup</span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);">pickup</span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">ship</span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);">ship</span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">cancel_pickup</span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'Canceling pickup is not supported for DPD Germany.'</span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">cancel</span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Aramex. You must call Aramex to cancel and/or update a previously scheduled shipment.'</span></span></span></span></span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 222</B><BR>Distance between two fragments = 3 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 327</TD><TD></TD><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 304</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">ship</span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);">ship</span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel_pickup</span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling pickup is not supported for DPD Germany.'</span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">cancel</span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for DPD Germany. You must call DPD Germany to cancel and/or update a previously scheduled shipment.'</span></span></span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 223</B><BR>Distance between two fragments = 4 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 327</TD><TD></TD><TD>Source file "./carriers/canpar.py"<BR>The first line is 423</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">ship</span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);">ship</span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel_pickup</span></span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling pickup is not supported for DPD Germany.'</span></span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">cancel</span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Canpar. You must call Canpar to cancel and/or update a previously scheduled shipment.'</span></span></span></span></span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 224</B><BR>Distance between two fragments = 4 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 327</TD><TD></TD><TD>Source file "./carriers/aramex.py"<BR>The first line is 361</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span></span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span></span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">ship</span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);">ship</span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel_pickup</span></span></span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling pickup is not supported for DPD Germany.'</span></span></span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">cancel</span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Aramex. You must call Aramex to cancel and/or update a previously scheduled shipment.'</span></span></span></span></span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 225</B><BR>Distance between two fragments = 3 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 327</TD><TD></TD><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 304</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span></span></span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span></span></span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">ship</span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);">ship</span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel_pickup</span></span></span></span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling pickup is not supported for DPD Germany.'</span></span></span></span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">cancel</span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for DPD Germany. You must call DPD Germany to cancel and/or update a previously scheduled shipment.'</span></span></span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 226</B><BR>Distance between two fragments = 4 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 327</TD><TD></TD><TD>Source file "./carriers/canpar.py"<BR>The first line is 423</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span></span></span></span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span></span></span></span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">ship</span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);">ship</span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel_pickup</span></span></span></span></span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling pickup is not supported for DPD Germany.'</span></span></span></span></span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">cancel</span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Canpar. You must call Canpar to cancel and/or update a previously scheduled shipment.'</span></span></span></span></span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 227</B><BR>Distance between two fragments = 4 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 327</TD><TD></TD><TD>Source file "./carriers/aramex.py"<BR>The first line is 361</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">pickup</span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);">pickup</span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">cancel_pickup</span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'Canceling pickup is not supported for DPD Germany.'</span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Aramex. You must call Aramex to cancel and/or update a previously scheduled shipment.'</span></span></span></span></span></span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 228</B><BR>Distance between two fragments = 3 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 327</TD><TD></TD><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 304</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel_pickup</span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling pickup is not supported for DPD Germany.'</span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for DPD Germany. You must call DPD Germany to cancel and/or update a previously scheduled shipment.'</span></span></span></span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 229</B><BR>Distance between two fragments = 4 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 327</TD><TD></TD><TD>Source file "./carriers/canpar.py"<BR>The first line is 423</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel_pickup</span></span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling pickup is not supported for DPD Germany.'</span></span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Canpar. You must call Canpar to cancel and/or update a previously scheduled shipment.'</span></span></span></span></span></span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 230</B><BR>Distance between two fragments = 4 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 327</TD><TD></TD><TD>Source file "./carriers/aramex.py"<BR>The first line is 361</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span></span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span></span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Aramex</span></span></span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel_pickup</span></span></span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling pickup is not supported for DPD Germany.'</span></span></span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Aramex. You must call Aramex to cancel and/or update a previously scheduled shipment.'</span></span></span></span></span></span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 231</B><BR>Distance between two fragments = 3 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 327</TD><TD></TD><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 304</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span></span></span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span></span></span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel_pickup</span></span></span></span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling pickup is not supported for DPD Germany.'</span></span></span></span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for DPD Germany. You must call DPD Germany to cancel and/or update a previously scheduled shipment.'</span></span></span></span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 232</B><BR>Distance between two fragments = 4 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 327</TD><TD></TD><TD>Source file "./carriers/canpar.py"<BR>The first line is 423</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span></span></span></span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span></span></span></span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CanparPost</span></span></span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel_pickup</span></span></span></span></span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling pickup is not supported for DPD Germany.'</span></span></span></span></span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Canpar. You must call Canpar to cancel and/or update a previously scheduled shipment.'</span></span></span></span></span></span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 237</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./ws.py"<BR>The first line is 205</TD><TD></TD><TD>Source file "./ws.py"<BR>The first line is 82</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">ship_request</span> = xml.find(<span style="color: rgb(255, 0, 0);">'.//{ns}ShipRequest'</span>.format(<span style="color: rgb(255, 0, 0);">ns</span>=<span style="color: rgb(255, 0, 0);">NS</span>))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">get_rates_request</span> = xml.find(<span style="color: rgb(255, 0, 0);">'.//{ns}GetRatesRequest'</span>.format(<span style="color: rgb(255, 0, 0);">ns</span>=<span style="color: rgb(255, 0, 0);">ns</span>))</TD> | |
</TR> | |
<TR> | |
<TD> | |
packages = []</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
packages = []</TD> | |
</TR> | |
<TR> | |
<TD> | |
shipment = {'packages': packages}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
shipment = {'packages': packages}</TD> | |
</TR> | |
<TR> | |
<TD> | |
is_test_str = _xml_find(<span style="color: rgb(255, 0, 0);">NS</span>, <span style="color: rgb(255, 0, 0);">ship_request</span>, 'Test')</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
is_test_str = _xml_find(<span style="color: rgb(255, 0, 0);">ns</span>, <span style="color: rgb(255, 0, 0);">get_rates_request</span>, 'Test')</TD> | |
</TR> | |
<TR> | |
<TD> | |
if (is_test_str is not None) and (is_test_str.text == 'true'):<BR> | |
shipment['test'] = True</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
if (is_test_str is not None) and (is_test_str.text == 'true'):<BR> | |
shipment['test'] = True</TD> | |
</TR> | |
<TR> | |
<TD> | |
shipping_account = _xml_find(<span style="color: rgb(255, 0, 0);">NS</span>, <span style="color: rgb(255, 0, 0);">ship_request</span>, 'ShippingAccount').text</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
shipping_account = _xml_find(<span style="color: rgb(255, 0, 0);">ns</span>, <span style="color: rgb(255, 0, 0);">get_rates_request</span>, 'ShippingAccount').text</TD> | |
</TR> | |
<TR> | |
<TD> | |
shipment['shipping_account'] = int(shipping_account)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
shipment['shipping_account'] = int(shipping_account)</TD> | |
</TR> | |
<TR> | |
<TD> | |
shipment['carrier'] = _xml_find(<span style="color: rgb(255, 0, 0);">NS</span>, <span style="color: rgb(255, 0, 0);">ship_request</span>, 'Carrier').text</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
shipment['carrier'] = _xml_find(<span style="color: rgb(255, 0, 0);">ns</span>, <span style="color: rgb(255, 0, 0);">get_rates_request</span>, 'Carrier').text</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 238</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./ws.py"<BR>The first line is 205</TD><TD></TD><TD>Source file "./ws.py"<BR>The first line is 82</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">ship_request</span> = xml.find(<span style="color: rgb(255, 0, 0);">'.//{ns}ShipRequest'</span>.format(<span style="color: rgb(255, 0, 0);">ns</span>=<span style="color: rgb(255, 0, 0);">NS</span>))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">get_rates_request</span> = xml.find(<span style="color: rgb(255, 0, 0);">'.//{ns}GetRatesRequest'</span>.format(<span style="color: rgb(255, 0, 0);">ns</span>=<span style="color: rgb(255, 0, 0);">ns</span>))</TD> | |
</TR> | |
<TR> | |
<TD> | |
packages = []</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
packages = []</TD> | |
</TR> | |
<TR> | |
<TD> | |
shipment = {'packages': packages}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
shipment = {'packages': packages}</TD> | |
</TR> | |
<TR> | |
<TD> | |
is_test_str = _xml_find(<span style="color: rgb(255, 0, 0);">NS</span>, <span style="color: rgb(255, 0, 0);">ship_request</span>, 'Test')</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
is_test_str = _xml_find(<span style="color: rgb(255, 0, 0);">ns</span>, <span style="color: rgb(255, 0, 0);">get_rates_request</span>, 'Test')</TD> | |
</TR> | |
<TR> | |
<TD> | |
if (is_test_str is not None) and (is_test_str.text == 'true'):<BR> | |
shipment['test'] = True</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
if (is_test_str is not None) and (is_test_str.text == 'true'):<BR> | |
shipment['test'] = True</TD> | |
</TR> | |
<TR> | |
<TD> | |
shipping_account = _xml_find(<span style="color: rgb(255, 0, 0);">NS</span>, <span style="color: rgb(255, 0, 0);">ship_request</span>, 'ShippingAccount').text</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
shipping_account = _xml_find(<span style="color: rgb(255, 0, 0);">ns</span>, <span style="color: rgb(255, 0, 0);">get_rates_request</span>, 'ShippingAccount').text</TD> | |
</TR> | |
<TR> | |
<TD> | |
shipment['shipping_account'] = int(shipping_account)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
shipment['shipping_account'] = int(shipping_account)</TD> | |
</TR> | |
<TR> | |
<TD> | |
shipment['carrier'] = _xml_find(<span style="color: rgb(255, 0, 0);">NS</span>, <span style="color: rgb(255, 0, 0);">ship_request</span>, 'Carrier').text</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
shipment['carrier'] = _xml_find(<span style="color: rgb(255, 0, 0);">ns</span>, <span style="color: rgb(255, 0, 0);">get_rates_request</span>, 'Carrier').text</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 239</B><BR>Distance between two fragments = 2 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 477</TD><TD></TD><TD>Source file "./carriers/dhl.py"<BR>The first line is 811</TD></TR><TR> | |
<TD> | |
_total_pieces = sum((p.get('quantity', 1) for p in shipment['packages'] ))</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_total_pieces = sum((p.get('quantity', 1) for p in shipment['packages'] ))</TD> | |
</TR> | |
<TR> | |
<TD> | |
if _total_pieces == 0:<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'Canada Post: Please provide package quantity'</span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if _total_pieces == 0:<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'DHL: Please provide package quantity'</span>, status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
total_pieces += _total_pieces</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
total_pieces += _total_pieces</TD> | |
</TR> | |
<TR> | |
<TD> | |
_total_weight = (shipment_total_weight(shipment)) * (total_pieces)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_total_weight = (shipment_total_weight(shipment)) * (total_pieces)</TD> | |
</TR> | |
<TR> | |
<TD> | |
if _total_weight == 0:<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'Canada Post: Please provide package weight'</span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if _total_weight == 0:<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'DHL: Please provide package weight'</span>, status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
total_weight += _total_weight</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
total_weight += _total_weight</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 240</B><BR>Distance between two fragments = 2 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 477</TD><TD></TD><TD>Source file "./carriers/dhl.py"<BR>The first line is 811</TD></TR><TR> | |
<TD> | |
_total_pieces = sum((p.get('quantity', 1) for p in shipment['packages'] ))</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_total_pieces = sum((p.get('quantity', 1) for p in shipment['packages'] ))</TD> | |
</TR> | |
<TR> | |
<TD> | |
if _total_pieces == 0:<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canada Post: Please provide package quantity'</span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if _total_pieces == 0:<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'DHL: Please provide package quantity'</span>, status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
total_pieces += _total_pieces</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
total_pieces += _total_pieces</TD> | |
</TR> | |
<TR> | |
<TD> | |
_total_weight = (shipment_total_weight(shipment)) * (total_pieces)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_total_weight = (shipment_total_weight(shipment)) * (total_pieces)</TD> | |
</TR> | |
<TR> | |
<TD> | |
if _total_weight == 0:<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canada Post: Please provide package weight'</span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if _total_weight == 0:<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'DHL: Please provide package weight'</span>, status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
total_weight += _total_weight</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
total_weight += _total_weight</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 241</B><BR>Distance between two fragments = 2 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 477</TD><TD></TD><TD>Source file "./carriers/dhl.py"<BR>The first line is 811</TD></TR><TR> | |
<TD> | |
_total_pieces = sum((p.get('quantity', 1) for p in shipment['packages'] ))</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_total_pieces = sum((p.get('quantity', 1) for p in shipment['packages'] ))</TD> | |
</TR> | |
<TR> | |
<TD> | |
if _total_pieces == 0:<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'Canada Post: Please provide package quantity'</span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if _total_pieces == 0:<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'DHL: Please provide package quantity'</span></span>, status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
total_pieces += _total_pieces</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
total_pieces += _total_pieces</TD> | |
</TR> | |
<TR> | |
<TD> | |
_total_weight = (shipment_total_weight(shipment)) * (total_pieces)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_total_weight = (shipment_total_weight(shipment)) * (total_pieces)</TD> | |
</TR> | |
<TR> | |
<TD> | |
if _total_weight == 0:<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'Canada Post: Please provide package weight'</span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if _total_weight == 0:<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'DHL: Please provide package weight'</span></span>, status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
total_weight += _total_weight</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
total_weight += _total_weight</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 242</B><BR>Distance between two fragments = 2 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 477</TD><TD></TD><TD>Source file "./carriers/dhl.py"<BR>The first line is 811</TD></TR><TR> | |
<TD> | |
_total_pieces = sum((p.get('quantity', 1) for p in shipment['packages'] ))</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_total_pieces = sum((p.get('quantity', 1) for p in shipment['packages'] ))</TD> | |
</TR> | |
<TR> | |
<TD> | |
if _total_pieces == 0:<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canada Post: Please provide package quantity'</span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if _total_pieces == 0:<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'DHL: Please provide package quantity'</span></span>, status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
total_pieces += _total_pieces</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
total_pieces += _total_pieces</TD> | |
</TR> | |
<TR> | |
<TD> | |
_total_weight = (shipment_total_weight(shipment)) * (total_pieces)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_total_weight = (shipment_total_weight(shipment)) * (total_pieces)</TD> | |
</TR> | |
<TR> | |
<TD> | |
if _total_weight == 0:<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canada Post: Please provide package weight'</span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if _total_weight == 0:<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'DHL: Please provide package weight'</span></span>, status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
total_weight += _total_weight</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
total_weight += _total_weight</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 243</B><BR>Distance between two fragments = 2 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/custom.py"<BR>The first line is 147</TD><TD></TD><TD>Source file "./carriers/dhl.py"<BR>The first line is 43</TD></TR><TR> | |
<TD> | |
def endpoint(test):<BR> | |
if test:<BR> | |
return <span style="color: rgb(255, 0, 0);">test_endpoint</span><BR> | |
else:<BR> | |
return <span style="color: rgb(255, 0, 0);">live_endpoint</span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def endpoint(test):<BR> | |
if test:<BR> | |
return <span style="color: rgb(255, 0, 0);">'http://xmlpitest-ea.dhl.com/XMLShippingServlet'</span><BR> | |
else:<BR> | |
return <span style="color: rgb(255, 0, 0);">'https://xmlpi-ea.dhl.com/XMLShippingServlet'</span></TD> | |
</TR> | |
<TR> | |
<TD> | |
_DHL_WEIGHT_UNITS = {'LB': 'L', 'KG': 'K'}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_DHL_WEIGHT_UNITS = {'LB': 'L', 'KG': 'K'}</TD> | |
</TR> | |
<TR> | |
<TD> | |
_DHL_DIM_UNITS = {'IN': 'I', 'CM': 'C'}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_DHL_DIM_UNITS = {'IN': 'I', 'CM': 'C'}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 244</B><BR>Distance between two fragments = 2 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/custom.py"<BR>The first line is 147</TD><TD></TD><TD>Source file "./carriers/dhl.py"<BR>The first line is 43</TD></TR><TR> | |
<TD> | |
def endpoint(test):<BR> | |
if test:<BR> | |
return <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">test_endpoint</span></span><BR> | |
else:<BR> | |
return <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">live_endpoint</span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def endpoint(test):<BR> | |
if test:<BR> | |
return <span style="color: rgb(255, 0, 0);">'http://xmlpitest-ea.dhl.com/XMLShippingServlet'</span><BR> | |
else:<BR> | |
return <span style="color: rgb(255, 0, 0);">'https://xmlpi-ea.dhl.com/XMLShippingServlet'</span></TD> | |
</TR> | |
<TR> | |
<TD> | |
_DHL_WEIGHT_UNITS = {'LB': 'L', 'KG': 'K'}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_DHL_WEIGHT_UNITS = {'LB': 'L', 'KG': 'K'}</TD> | |
</TR> | |
<TR> | |
<TD> | |
_DHL_DIM_UNITS = {'IN': 'I', 'CM': 'C'}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_DHL_DIM_UNITS = {'IN': 'I', 'CM': 'C'}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 245</B><BR>Distance between two fragments = 2 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/custom.py"<BR>The first line is 147</TD><TD></TD><TD>Source file "./carriers/dhl.py"<BR>The first line is 43</TD></TR><TR> | |
<TD> | |
def endpoint(test):<BR> | |
if test:<BR> | |
return <span style="color: rgb(255, 0, 0);">test_endpoint</span><BR> | |
else:<BR> | |
return <span style="color: rgb(255, 0, 0);">live_endpoint</span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def endpoint(test):<BR> | |
if test:<BR> | |
return <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'http://xmlpitest-ea.dhl.com/XMLShippingServlet'</span></span><BR> | |
else:<BR> | |
return <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'https://xmlpi-ea.dhl.com/XMLShippingServlet'</span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
_DHL_WEIGHT_UNITS = {'LB': 'L', 'KG': 'K'}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_DHL_WEIGHT_UNITS = {'LB': 'L', 'KG': 'K'}</TD> | |
</TR> | |
<TR> | |
<TD> | |
_DHL_DIM_UNITS = {'IN': 'I', 'CM': 'C'}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_DHL_DIM_UNITS = {'IN': 'I', 'CM': 'C'}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 246</B><BR>Distance between two fragments = 2 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/custom.py"<BR>The first line is 147</TD><TD></TD><TD>Source file "./carriers/dhl.py"<BR>The first line is 43</TD></TR><TR> | |
<TD> | |
def endpoint(test):<BR> | |
if test:<BR> | |
return <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">test_endpoint</span></span><BR> | |
else:<BR> | |
return <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">live_endpoint</span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def endpoint(test):<BR> | |
if test:<BR> | |
return <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'http://xmlpitest-ea.dhl.com/XMLShippingServlet'</span></span><BR> | |
else:<BR> | |
return <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'https://xmlpi-ea.dhl.com/XMLShippingServlet'</span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
_DHL_WEIGHT_UNITS = {'LB': 'L', 'KG': 'K'}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_DHL_WEIGHT_UNITS = {'LB': 'L', 'KG': 'K'}</TD> | |
</TR> | |
<TR> | |
<TD> | |
_DHL_DIM_UNITS = {'IN': 'I', 'CM': 'C'}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
_DHL_DIM_UNITS = {'IN': 'I', 'CM': 'C'}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 247</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1259</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1345</TD></TR><TR> | |
<TD> | |
port_name = <span style="color: rgb(255, 0, 0);">'PickupServiceProdPort'</span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = <span style="color: rgb(255, 0, 0);">'UploadDocumentServicePortProd'</span></TD> | |
</TR> | |
<TR> | |
<TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);">'PickupServiceTestPort'</span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);">'UploadDocumentServicePortTest'</span></TD> | |
</TR> | |
<TR> | |
<TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/PickupService_v17.wsdl'</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/UploadDo0cumentService_v11.wsdl'</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 248</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1259</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1345</TD></TR><TR> | |
<TD> | |
port_name = <span style="color: rgb(255, 0, 0);">'PickupServiceProdPort'</span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = <span style="color: rgb(255, 0, 0);">'UploadDocumentServicePortProd'</span></TD> | |
</TR> | |
<TR> | |
<TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);">'PickupServiceTestPort'</span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);">'UploadDocumentServicePortTest'</span></TD> | |
</TR> | |
<TR> | |
<TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/PickupService_v17.wsdl'</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/UploadDo0cumentService_v11.wsdl'</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 251</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1345</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1121</TD></TR><TR> | |
<TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'UploadDocumentServicePortProd'</span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceProdPort'</span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'UploadDocumentServicePortTest'</span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceTestPort'</span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/UploadDo0cumentService_v11.wsdl'</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/PickupService_v17.wsdl'</span></span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 252</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1345</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1121</TD></TR><TR> | |
<TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'UploadDocumentServicePortProd'</span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceProdPort'</span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'UploadDocumentServicePortTest'</span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceTestPort'</span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/UploadDo0cumentService_v11.wsdl'</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/PickupService_v17.wsdl'</span></span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 253</B><BR>Distance between two fragments = 4 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./main.py"<BR>The first line is 843</TD><TD></TD><TD>Source file "./main.py"<BR>The first line is 833</TD></TR><TR> | |
<TD> | |
if (len(<span style="color: rgb(255, 0, 0);">non_thermal_printer_from_api</span>.get('tray', [])) > 1) and ((not self.req.get(<span style="color: rgb(255, 0, 0);">'non_thermal_printer_bin'</span>)) or (self.req.get(<span style="color: rgb(255, 0, 0);">'non_thermal_printer_bin'</span>) not in <span style="color: rgb(255, 0, 0);">non_thermal_printer_from_api</span>.get('tray', []))):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'non_thermal_printer_bin is required for {} printer, possible values are {}'</span>.format(<span style="color: rgb(255, 0, 0);">non_thermal_printer_id</span>, <span style="color: rgb(255, 0, 0);">non_thermal_printer_from_api</span>.get('tray', [])))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if (len(<span style="color: rgb(255, 0, 0);">thermal_printer_from_api</span>.get('tray', [])) > 1) and ((not self.req.get(<span style="color: rgb(255, 0, 0);">'thermal_printer_bin'</span>)) or (self.req.get(<span style="color: rgb(255, 0, 0);">'thermal_printer_bin'</span>) not in <span style="color: rgb(255, 0, 0);">thermal_printer_from_api</span>.get('tray', []))):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'thermal_printer_bin is required for {} printer, possible values are {}'</span>.format(<span style="color: rgb(255, 0, 0);">thermal_printer_id</span>, <span style="color: rgb(255, 0, 0);">thermal_printer_from_api</span>.get('tray', [])))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 254</B><BR>Distance between two fragments = 4 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./main.py"<BR>The first line is 853</TD><TD></TD><TD>Source file "./main.py"<BR>The first line is 843</TD></TR><TR> | |
<TD> | |
if (len(<span style="color: rgb(255, 0, 0);">shipping_documents_printer_from_api</span>.get('tray', [])) > 1) and ((not self.req.get(<span style="color: rgb(255, 0, 0);">'shipping_documents_printer_bin'</span>)) or (self.req.get(<span style="color: rgb(255, 0, 0);">'shipping_documents_printer_bin'</span>) not in <span style="color: rgb(255, 0, 0);">shipping_documents_printer_from_api</span>.get('tray', []))):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'shipping_documents_printer_bin is required for {} printer, possible values are {}'</span>.format(<span style="color: rgb(255, 0, 0);">shipping_documents_printer_id</span>, <span style="color: rgb(255, 0, 0);">shipping_documents_printer_from_api</span>.get('tray', [])))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if (len(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">non_thermal_printer_from_api</span></span>.get('tray', [])) > 1) and ((not self.req.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'non_thermal_printer_bin'</span></span>)) or (self.req.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'non_thermal_printer_bin'</span></span>) not in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">non_thermal_printer_from_api</span></span>.get('tray', []))):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'non_thermal_printer_bin is required for {} printer, possible values are {}'</span></span>.format(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">non_thermal_printer_id</span></span>, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">non_thermal_printer_from_api</span></span>.get('tray', [])))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 255</B><BR>Distance between two fragments = 4 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./main.py"<BR>The first line is 843</TD><TD></TD><TD>Source file "./main.py"<BR>The first line is 833</TD></TR><TR> | |
<TD> | |
if (len(<span style="color: rgb(255, 0, 0);">non_thermal_printer_from_api</span>.get('tray', [])) > 1) and ((not self.req.get(<span style="color: rgb(255, 0, 0);">'non_thermal_printer_bin'</span>)) or (self.req.get(<span style="color: rgb(255, 0, 0);">'non_thermal_printer_bin'</span>) not in <span style="color: rgb(255, 0, 0);">non_thermal_printer_from_api</span>.get('tray', []))):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'non_thermal_printer_bin is required for {} printer, possible values are {}'</span>.format(<span style="color: rgb(255, 0, 0);">non_thermal_printer_id</span>, <span style="color: rgb(255, 0, 0);">non_thermal_printer_from_api</span>.get('tray', [])))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if (len(<span style="color: rgb(255, 0, 0);">thermal_printer_from_api</span>.get('tray', [])) > 1) and ((not self.req.get(<span style="color: rgb(255, 0, 0);">'thermal_printer_bin'</span>)) or (self.req.get(<span style="color: rgb(255, 0, 0);">'thermal_printer_bin'</span>) not in <span style="color: rgb(255, 0, 0);">thermal_printer_from_api</span>.get('tray', []))):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'thermal_printer_bin is required for {} printer, possible values are {}'</span>.format(<span style="color: rgb(255, 0, 0);">thermal_printer_id</span>, <span style="color: rgb(255, 0, 0);">thermal_printer_from_api</span>.get('tray', [])))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 256</B><BR>Distance between two fragments = 4 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./main.py"<BR>The first line is 853</TD><TD></TD><TD>Source file "./main.py"<BR>The first line is 843</TD></TR><TR> | |
<TD> | |
if (len(<span style="color: rgb(255, 0, 0);">shipping_documents_printer_from_api</span>.get('tray', [])) > 1) and ((not self.req.get(<span style="color: rgb(255, 0, 0);">'shipping_documents_printer_bin'</span>)) or (self.req.get(<span style="color: rgb(255, 0, 0);">'shipping_documents_printer_bin'</span>) not in <span style="color: rgb(255, 0, 0);">shipping_documents_printer_from_api</span>.get('tray', []))):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'shipping_documents_printer_bin is required for {} printer, possible values are {}'</span>.format(<span style="color: rgb(255, 0, 0);">shipping_documents_printer_id</span>, <span style="color: rgb(255, 0, 0);">shipping_documents_printer_from_api</span>.get('tray', [])))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if (len(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">non_thermal_printer_from_api</span></span>.get('tray', [])) > 1) and ((not self.req.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'non_thermal_printer_bin'</span></span>)) or (self.req.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'non_thermal_printer_bin'</span></span>) not in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">non_thermal_printer_from_api</span></span>.get('tray', []))):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'non_thermal_printer_bin is required for {} printer, possible values are {}'</span></span>.format(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">non_thermal_printer_id</span></span>, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">non_thermal_printer_from_api</span></span>.get('tray', [])))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 257</B><BR>Distance between two fragments = 4 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./main.py"<BR>The first line is 853</TD><TD></TD><TD>Source file "./main.py"<BR>The first line is 833</TD></TR><TR> | |
<TD> | |
if (len(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipping_documents_printer_from_api</span></span>.get('tray', [])) > 1) and ((not self.req.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'shipping_documents_printer_bin'</span></span>)) or (self.req.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'shipping_documents_printer_bin'</span></span>) not in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipping_documents_printer_from_api</span></span>.get('tray', []))):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'shipping_documents_printer_bin is required for {} printer, possible values are {}'</span></span>.format(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipping_documents_printer_id</span></span>, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipping_documents_printer_from_api</span></span>.get('tray', [])))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if (len(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">thermal_printer_from_api</span></span>.get('tray', [])) > 1) and ((not self.req.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'thermal_printer_bin'</span></span>)) or (self.req.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'thermal_printer_bin'</span></span>) not in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">thermal_printer_from_api</span></span>.get('tray', []))):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'thermal_printer_bin is required for {} printer, possible values are {}'</span></span>.format(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">thermal_printer_id</span></span>, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">thermal_printer_from_api</span></span>.get('tray', [])))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 258</B><BR>Distance between two fragments = 4 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./main.py"<BR>The first line is 853</TD><TD></TD><TD>Source file "./main.py"<BR>The first line is 833</TD></TR><TR> | |
<TD> | |
if (len(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipping_documents_printer_from_api</span></span>.get('tray', [])) > 1) and ((not self.req.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'shipping_documents_printer_bin'</span></span>)) or (self.req.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'shipping_documents_printer_bin'</span></span>) not in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipping_documents_printer_from_api</span></span>.get('tray', []))):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'shipping_documents_printer_bin is required for {} printer, possible values are {}'</span></span>.format(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipping_documents_printer_id</span></span>, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipping_documents_printer_from_api</span></span>.get('tray', [])))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if (len(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">thermal_printer_from_api</span></span>.get('tray', [])) > 1) and ((not self.req.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'thermal_printer_bin'</span></span>)) or (self.req.get(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'thermal_printer_bin'</span></span>) not in <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">thermal_printer_from_api</span></span>.get('tray', []))):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'thermal_printer_bin is required for {} printer, possible values are {}'</span></span>.format(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">thermal_printer_id</span></span>, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">thermal_printer_from_api</span></span>.get('tray', [])))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 259</B><BR>Distance between two fragments = 4 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/ups.py"<BR>The first line is 1198</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 1103</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">str_rate_request</span>, <span style="color: rgb(255, 0, 0);">rate_result</span> = send_request(is_test, <span style="color: rgb(255, 0, 0);">'rate'</span>, auth, <span style="color: rgb(255, 0, 0);">rate_request</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">ship_confirm_request</span>, <span style="color: rgb(255, 0, 0);">ship_confirm_result</span> = send_request(is_test, <span style="color: rgb(255, 0, 0);">'ship_confirm'</span>, auth, <span style="color: rgb(255, 0, 0);">shipment_confirm_request</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
result_xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">rate_result</span>)<BR> | |
check_for_errors(result_xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(, **{'message': e.message, 'carrier_request': <span style="color: rgb(255, 0, 0);">str_rate_request</span>, 'carrier_response': <span style="color: rgb(255, 0, 0);">rate_result</span>})</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
result_xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">ship_confirm_result</span>)<BR> | |
check_for_errors(result_xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(, **{'message': e.message, 'carrier_request': <span style="color: rgb(255, 0, 0);">ship_confirm_request</span>, 'carrier_response': <span style="color: rgb(255, 0, 0);">ship_confirm_result</span>})</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 260</B><BR>Distance between two fragments = 4 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/ups.py"<BR>The first line is 1198</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 1103</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">str_rate_request</span>, <span style="color: rgb(255, 0, 0);">rate_result</span> = send_request(is_test, <span style="color: rgb(255, 0, 0);">'rate'</span>, auth, <span style="color: rgb(255, 0, 0);">rate_request</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">ship_confirm_request</span>, <span style="color: rgb(255, 0, 0);">ship_confirm_result</span> = send_request(is_test, <span style="color: rgb(255, 0, 0);">'ship_confirm'</span>, auth, <span style="color: rgb(255, 0, 0);">shipment_confirm_request</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
result_xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">rate_result</span>)<BR> | |
check_for_errors(result_xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(, **{'message': e.message, 'carrier_request': <span style="color: rgb(255, 0, 0);">str_rate_request</span>, 'carrier_response': <span style="color: rgb(255, 0, 0);">rate_result</span>})</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
result_xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">ship_confirm_result</span>)<BR> | |
check_for_errors(result_xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(, **{'message': e.message, 'carrier_request': <span style="color: rgb(255, 0, 0);">ship_confirm_request</span>, 'carrier_response': <span style="color: rgb(255, 0, 0);">ship_confirm_result</span>})</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 261</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./tests/main_test.py"<BR>The first line is 479</TD><TD></TD><TD>Source file "./tests/main_test.py"<BR>The first line is 454</TD></TR><TR> | |
<TD> | |
params = {'shipping_account': {'name': 'DPD', 'carrier': 'dpd', 'country': 'US', 'auth': {'username': <span style="color: rgb(255, 0, 0);">'originalbtc'</span>, 'password': <span style="color: rgb(255, 0, 0);">'Box7650!!'</span>, 'account_number': <span style="color: rgb(255, 0, 0);">'250317'</span>}}}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
params = {'shipping_account': {'name': 'DPD', 'carrier': 'dpd', 'country': 'US', 'auth': {'username': <span style="color: rgb(255, 0, 0);">'wael'</span>, 'password': <span style="color: rgb(255, 0, 0);">'4343'</span>, 'account_number': <span style="color: rgb(255, 0, 0);">'rr'</span>}}}</TD> | |
</TR> | |
<TR> | |
<TD> | |
res = req_post(app, api_key, '/shippingaccount', params)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
res = req_post(app, api_key, '/shippingaccount', params)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 262</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./tests/integration_test.py"<BR>The first line is 22</TD><TD></TD><TD>Source file "./tests/main_test.py"<BR>The first line is 454</TD></TR><TR> | |
<TD> | |
params = {'shipping_account': {'name': 'DPD', 'carrier': 'dpd', 'country': 'US', 'auth': {'username': <span style="color: rgb(255, 0, 0);">'originalbtc'</span>, 'password': <span style="color: rgb(255, 0, 0);">'Box7650!!'</span>, 'account_number': <span style="color: rgb(255, 0, 0);">'250317'</span>}}}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
params = {'shipping_account': {'name': 'DPD', 'carrier': 'dpd', 'country': 'US', 'auth': {'username': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'wael'</span></span>, 'password': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'4343'</span></span>, 'account_number': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'rr'</span></span>}}}</TD> | |
</TR> | |
<TR> | |
<TD> | |
res = req_post(app, api_key, '/shippingaccount', params)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
res = req_post(app, api_key, '/shippingaccount', params)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 263</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./tests/integration_test.py"<BR>The first line is 22</TD><TD></TD><TD>Source file "./tests/main_test.py"<BR>The first line is 454</TD></TR><TR> | |
<TD> | |
params = {'shipping_account': {'name': 'DPD', 'carrier': 'dpd', 'country': 'US', 'auth': {'username': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'originalbtc'</span></span>, 'password': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Box7650!!'</span></span>, 'account_number': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'250317'</span></span>}}}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
params = {'shipping_account': {'name': 'DPD', 'carrier': 'dpd', 'country': 'US', 'auth': {'username': <span style="color: rgb(255, 0, 0);">'wael'</span>, 'password': <span style="color: rgb(255, 0, 0);">'4343'</span>, 'account_number': <span style="color: rgb(255, 0, 0);">'rr'</span>}}}</TD> | |
</TR> | |
<TR> | |
<TD> | |
res = req_post(app, api_key, '/shippingaccount', params)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
res = req_post(app, api_key, '/shippingaccount', params)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 264</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./tests/main_test.py"<BR>The first line is 479</TD><TD></TD><TD>Source file "./tests/main_test.py"<BR>The first line is 454</TD></TR><TR> | |
<TD> | |
params = {'shipping_account': {'name': 'DPD', 'carrier': 'dpd', 'country': 'US', 'auth': {'username': <span style="color: rgb(255, 0, 0);">'originalbtc'</span>, 'password': <span style="color: rgb(255, 0, 0);">'Box7650!!'</span>, 'account_number': <span style="color: rgb(255, 0, 0);">'250317'</span>}}}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
params = {'shipping_account': {'name': 'DPD', 'carrier': 'dpd', 'country': 'US', 'auth': {'username': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'wael'</span></span>, 'password': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'4343'</span></span>, 'account_number': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'rr'</span></span>}}}</TD> | |
</TR> | |
<TR> | |
<TD> | |
res = req_post(app, api_key, '/shippingaccount', params)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
res = req_post(app, api_key, '/shippingaccount', params)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 265</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./tests/integration_test.py"<BR>The first line is 22</TD><TD></TD><TD>Source file "./tests/main_test.py"<BR>The first line is 454</TD></TR><TR> | |
<TD> | |
params = {'shipping_account': {'name': 'DPD', 'carrier': 'dpd', 'country': 'US', 'auth': {'username': <span style="color: rgb(255, 0, 0);">'originalbtc'</span>, 'password': <span style="color: rgb(255, 0, 0);">'Box7650!!'</span>, 'account_number': <span style="color: rgb(255, 0, 0);">'250317'</span>}}}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
params = {'shipping_account': {'name': 'DPD', 'carrier': 'dpd', 'country': 'US', 'auth': {'username': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'wael'</span></span></span>, 'password': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'4343'</span></span></span>, 'account_number': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'rr'</span></span></span>}}}</TD> | |
</TR> | |
<TR> | |
<TD> | |
res = req_post(app, api_key, '/shippingaccount', params)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
res = req_post(app, api_key, '/shippingaccount', params)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 266</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./tests/integration_test.py"<BR>The first line is 22</TD><TD></TD><TD>Source file "./tests/main_test.py"<BR>The first line is 454</TD></TR><TR> | |
<TD> | |
params = {'shipping_account': {'name': 'DPD', 'carrier': 'dpd', 'country': 'US', 'auth': {'username': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'originalbtc'</span></span>, 'password': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Box7650!!'</span></span>, 'account_number': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'250317'</span></span>}}}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
params = {'shipping_account': {'name': 'DPD', 'carrier': 'dpd', 'country': 'US', 'auth': {'username': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'wael'</span></span></span>, 'password': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'4343'</span></span></span>, 'account_number': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'rr'</span></span></span>}}}</TD> | |
</TR> | |
<TR> | |
<TD> | |
res = req_post(app, api_key, '/shippingaccount', params)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
res = req_post(app, api_key, '/shippingaccount', params)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 267</B><BR>Distance between two fragments = 4 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/ups.py"<BR>The first line is 1103</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 1134</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_confirm_request</span></span>, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_confirm_result</span></span> = send_request(is_test, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ship_confirm'</span></span>, auth, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipment_confirm_request</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">ship_accept_request</span>, <span style="color: rgb(255, 0, 0);">ship_accept_result</span> = send_request(is_test, <span style="color: rgb(255, 0, 0);">'ship_accept'</span>, auth, <span style="color: rgb(255, 0, 0);">shipment_accept_request</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
result_xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_confirm_result</span></span>)<BR> | |
check_for_errors(result_xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(, **{'message': e.message, 'carrier_request': <span style="color: rgb(255, 0, 0);">ship_confirm_request</span>, 'carrier_response': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_confirm_result</span></span>})</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
result_xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">ship_accept_result</span>)<BR> | |
check_for_errors(result_xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(, **{'message': e.message, 'carrier_request': ship_confirm_request, 'carrier_response': <span style="color: rgb(255, 0, 0);">ship_confirm_result</span>})</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 268</B><BR>Distance between two fragments = 4 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/ups.py"<BR>The first line is 1103</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 1134</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_confirm_request</span></span>, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_confirm_result</span></span> = send_request(is_test, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ship_confirm'</span></span>, auth, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipment_confirm_request</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">ship_accept_request</span>, <span style="color: rgb(255, 0, 0);">ship_accept_result</span> = send_request(is_test, <span style="color: rgb(255, 0, 0);">'ship_accept'</span>, auth, <span style="color: rgb(255, 0, 0);">shipment_accept_request</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
result_xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_confirm_result</span></span>)<BR> | |
check_for_errors(result_xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(, **{'message': e.message, 'carrier_request': <span style="color: rgb(255, 0, 0);">ship_confirm_request</span>, 'carrier_response': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_confirm_result</span></span>})</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
result_xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">ship_accept_result</span>)<BR> | |
check_for_errors(result_xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(, **{'message': e.message, 'carrier_request': ship_confirm_request, 'carrier_response': <span style="color: rgb(255, 0, 0);">ship_confirm_result</span>})</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 269</B><BR>Distance between two fragments = 4 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/ups.py"<BR>The first line is 1198</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 1268</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">str_rate_request</span></span>, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_result</span></span> = send_request(is_test, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'rate'</span></span>, auth, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_request</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">str_cancel_request</span>, <span style="color: rgb(255, 0, 0);">cancel_result</span> = send_request(is_test, <span style="color: rgb(255, 0, 0);">'cancel'</span>, auth, <span style="color: rgb(255, 0, 0);">cancel_request</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
result_xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_result</span></span>)<BR> | |
check_for_errors(result_xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(, **{'message': e.message, 'carrier_request': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">str_rate_request</span></span>, 'carrier_response': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_result</span></span>})</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
result_xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">cancel_result</span>)<BR> | |
check_for_errors(result_xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(, **{'message': e.message, 'carrier_request': <span style="color: rgb(255, 0, 0);">str_cancel_request</span>, 'carrier_response': <span style="color: rgb(255, 0, 0);">cancel_result</span>})</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 270</B><BR>Distance between two fragments = 4 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/ups.py"<BR>The first line is 1198</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 1268</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">str_rate_request</span></span>, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_result</span></span> = send_request(is_test, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'rate'</span></span>, auth, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_request</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">str_cancel_request</span>, <span style="color: rgb(255, 0, 0);">cancel_result</span> = send_request(is_test, <span style="color: rgb(255, 0, 0);">'cancel'</span>, auth, <span style="color: rgb(255, 0, 0);">cancel_request</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
result_xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_result</span></span>)<BR> | |
check_for_errors(result_xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(, **{'message': e.message, 'carrier_request': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">str_rate_request</span></span>, 'carrier_response': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_result</span></span>})</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
result_xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">cancel_result</span>)<BR> | |
check_for_errors(result_xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(, **{'message': e.message, 'carrier_request': <span style="color: rgb(255, 0, 0);">str_cancel_request</span>, 'carrier_response': <span style="color: rgb(255, 0, 0);">cancel_result</span>})</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 271</B><BR>Distance between two fragments = 4 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/ups.py"<BR>The first line is 1103</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 1268</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_confirm_request</span></span></span>, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_confirm_result</span></span></span> = send_request(is_test, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ship_confirm'</span></span></span>, auth, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipment_confirm_request</span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">str_cancel_request</span></span>, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel_result</span></span> = send_request(is_test, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'cancel'</span></span>, auth, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel_request</span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
result_xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_confirm_result</span></span></span>)<BR> | |
check_for_errors(result_xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(, **{'message': e.message, 'carrier_request': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_confirm_request</span></span>, 'carrier_response': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_confirm_result</span></span></span>})</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
result_xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel_result</span></span>)<BR> | |
check_for_errors(result_xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(, **{'message': e.message, 'carrier_request': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">str_cancel_request</span></span>, 'carrier_response': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel_result</span></span>})</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 272</B><BR>Distance between two fragments = 4 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/ups.py"<BR>The first line is 1103</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 1268</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_confirm_request</span></span></span>, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_confirm_result</span></span></span> = send_request(is_test, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ship_confirm'</span></span></span>, auth, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipment_confirm_request</span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">str_cancel_request</span></span>, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel_result</span></span> = send_request(is_test, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'cancel'</span></span>, auth, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel_request</span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
result_xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_confirm_result</span></span></span>)<BR> | |
check_for_errors(result_xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(, **{'message': e.message, 'carrier_request': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_confirm_request</span></span>, 'carrier_response': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_confirm_result</span></span></span>})</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
result_xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel_result</span></span>)<BR> | |
check_for_errors(result_xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(, **{'message': e.message, 'carrier_request': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">str_cancel_request</span></span>, 'carrier_response': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel_result</span></span>})</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 273</B><BR>Distance between two fragments = 4 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex.py"<BR>The first line is 298</TD><TD></TD><TD>Source file "./carriers/usps_endicia.py"<BR>The first line is 348</TD></TR><TR> | |
<TD> | |
result_str = result.content</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
result_str = result.content</TD> | |
</TR> | |
<TR> | |
<TD> | |
xml = parse_carrier_xml(result_str)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
xml = parse_carrier_xml(result_str)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);">_ship_check_for_errors</span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);">request</span>, carrier_response=result_str)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);">_rate_check_for_errors</span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);">request_str</span>, carrier_response=result_str)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">properties</span> = <span style="color: rgb(255, 0, 0);">_ship_parse</span>(xml)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">rate_list</span> = <span style="color: rgb(255, 0, 0);">_rate_parse</span>(xml)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 274</B><BR>Distance between two fragments = 4 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex.py"<BR>The first line is 298</TD><TD></TD><TD>Source file "./carriers/usps_endicia.py"<BR>The first line is 348</TD></TR><TR> | |
<TD> | |
result_str = result.content</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
result_str = result.content</TD> | |
</TR> | |
<TR> | |
<TD> | |
xml = parse_carrier_xml(result_str)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
xml = parse_carrier_xml(result_str)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_ship_check_for_errors</span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span>, carrier_response=result_str)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);">_rate_check_for_errors</span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);">request_str</span>, carrier_response=result_str)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">properties</span></span> = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_ship_parse</span></span>(xml)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">rate_list</span> = <span style="color: rgb(255, 0, 0);">_rate_parse</span>(xml)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 275</B><BR>Distance between two fragments = 4 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex.py"<BR>The first line is 298</TD><TD></TD><TD>Source file "./carriers/usps_endicia.py"<BR>The first line is 348</TD></TR><TR> | |
<TD> | |
result_str = result.content</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
result_str = result.content</TD> | |
</TR> | |
<TR> | |
<TD> | |
xml = parse_carrier_xml(result_str)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
xml = parse_carrier_xml(result_str)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);">_ship_check_for_errors</span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);">request</span>, carrier_response=result_str)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate_check_for_errors</span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_str</span></span>, carrier_response=result_str)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">properties</span> = <span style="color: rgb(255, 0, 0);">_ship_parse</span>(xml)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span> = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate_parse</span></span>(xml)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 276</B><BR>Distance between two fragments = 4 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex.py"<BR>The first line is 298</TD><TD></TD><TD>Source file "./carriers/usps_endicia.py"<BR>The first line is 348</TD></TR><TR> | |
<TD> | |
result_str = result.content</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
result_str = result.content</TD> | |
</TR> | |
<TR> | |
<TD> | |
xml = parse_carrier_xml(result_str)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
xml = parse_carrier_xml(result_str)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_ship_check_for_errors</span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span>, carrier_response=result_str)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate_check_for_errors</span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_str</span></span>, carrier_response=result_str)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">properties</span></span> = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_ship_parse</span></span>(xml)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_list</span></span> = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate_parse</span></span>(xml)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 277</B><BR>Distance between two fragments = 2 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/purolator.py"<BR>The first line is 529</TD><TD></TD><TD>Source file "./carriers/fedex.py"<BR>The first line is 298</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">xml_str</span> = result.content</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">result_str</span> = result.content</TD> | |
</TR> | |
<TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">xml_str</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result_str</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);">_check_for_errors</span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=request, carrier_response=<span style="color: rgb(255, 0, 0);">xml_str</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_ship_check_for_errors</span></span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span>, carrier_response=<span style="color: rgb(255, 0, 0);">result_str</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 278</B><BR>Distance between two fragments = 2 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/purolator.py"<BR>The first line is 529</TD><TD></TD><TD>Source file "./carriers/fedex.py"<BR>The first line is 298</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span> = result.content</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">result_str</span> = result.content</TD> | |
</TR> | |
<TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result_str</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_check_for_errors</span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=request, carrier_response=<span style="color: rgb(255, 0, 0);">xml_str</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_ship_check_for_errors</span></span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span>, carrier_response=<span style="color: rgb(255, 0, 0);">result_str</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 279</B><BR>Distance between two fragments = 2 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/purolator.py"<BR>The first line is 529</TD><TD></TD><TD>Source file "./carriers/fedex.py"<BR>The first line is 298</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">xml_str</span> = result.content</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result_str</span></span> = result.content</TD> | |
</TR> | |
<TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">xml_str</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result_str</span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);">_check_for_errors</span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=request, carrier_response=<span style="color: rgb(255, 0, 0);">xml_str</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_ship_check_for_errors</span></span></span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span>, carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result_str</span></span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 280</B><BR>Distance between two fragments = 2 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/purolator.py"<BR>The first line is 529</TD><TD></TD><TD>Source file "./carriers/fedex.py"<BR>The first line is 298</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span> = result.content</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result_str</span></span> = result.content</TD> | |
</TR> | |
<TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result_str</span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_check_for_errors</span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=request, carrier_response=<span style="color: rgb(255, 0, 0);">xml_str</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_ship_check_for_errors</span></span></span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span>, carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result_str</span></span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 281</B><BR>Distance between two fragments = 4 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex.py"<BR>The first line is 298</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 509</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result_str</span></span></span> = result.content</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">xml_str</span> = result.content</TD> | |
</TR> | |
<TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result_str</span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">xml_str</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_ship_check_for_errors</span></span></span></span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span>, carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result_str</span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);">_check_for_errors</span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=request, carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 282</B><BR>Distance between two fragments = 4 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex.py"<BR>The first line is 298</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 509</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result_str</span></span></span></span> = result.content</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">xml_str</span> = result.content</TD> | |
</TR> | |
<TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result_str</span></span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">xml_str</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_ship_check_for_errors</span></span></span></span></span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span>, carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result_str</span></span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);">_check_for_errors</span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=request, carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 283</B><BR>Distance between two fragments = 4 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex.py"<BR>The first line is 298</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 509</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result_str</span></span></span> = result.content</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span> = result.content</TD> | |
</TR> | |
<TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result_str</span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_ship_check_for_errors</span></span></span></span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span>, carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result_str</span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_check_for_errors</span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=request, carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span></span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 284</B><BR>Distance between two fragments = 4 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex.py"<BR>The first line is 298</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 509</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result_str</span></span></span></span> = result.content</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span> = result.content</TD> | |
</TR> | |
<TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result_str</span></span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_ship_check_for_errors</span></span></span></span></span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span>, carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result_str</span></span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_check_for_errors</span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=request, carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span></span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 285</B><BR>Distance between two fragments = 1 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/ups.py"<BR>The first line is 922</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 911</TD></TR><TR> | |
<TD> | |
if 'verbal_confirmation' in package_special_services:<BR> | |
ci = ['ContactInfo']<BR> | |
if 'vc_name' in pkg:<BR> | |
ci.append(['Name', pkg['vc_name']])<BR> | |
if 'vc_phone_number' in pkg:<BR> | |
ci.append(['PhoneNumber', pkg['vc_phone_number']])<BR> | |
package_service_options.append(['VerbalConfirmation', ci])</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
if 'verbal_confirmation' in package_special_services:<BR> | |
ci = ['ContactInfo']<BR> | |
if 'vc_name' in pkg:<BR> | |
ci.append(['Name', pkg['vc_name']])<BR> | |
if 'vc_phone_number' in pkg:<BR> | |
ci.append(['PhoneNumber', pkg['vc_phone_number']])<BR> | |
package_service_options.append(['VerbalConfirmation', ci])</TD> | |
</TR> | |
<TR> | |
<TD> | |
if <span style="color: rgb(255, 0, 0);">'shipper_release_indicator'</span> in package_special_services:<BR> | |
package_service_options.append(['ShipperReleaseIndicator'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if <span style="color: rgb(255, 0, 0);">'shipper_release'</span> in package_special_services:<BR> | |
package_service_options.append(['ShipperReleaseIndicator'])</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 286</B><BR>Distance between two fragments = 1 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/ups.py"<BR>The first line is 922</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 911</TD></TR><TR> | |
<TD> | |
if 'verbal_confirmation' in package_special_services:<BR> | |
ci = ['ContactInfo']<BR> | |
if 'vc_name' in pkg:<BR> | |
ci.append(['Name', pkg['vc_name']])<BR> | |
if 'vc_phone_number' in pkg:<BR> | |
ci.append(['PhoneNumber', pkg['vc_phone_number']])<BR> | |
package_service_options.append(['VerbalConfirmation', ci])</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
if 'verbal_confirmation' in package_special_services:<BR> | |
ci = ['ContactInfo']<BR> | |
if 'vc_name' in pkg:<BR> | |
ci.append(['Name', pkg['vc_name']])<BR> | |
if 'vc_phone_number' in pkg:<BR> | |
ci.append(['PhoneNumber', pkg['vc_phone_number']])<BR> | |
package_service_options.append(['VerbalConfirmation', ci])</TD> | |
</TR> | |
<TR> | |
<TD> | |
if <span style="color: rgb(255, 0, 0);">'shipper_release_indicator'</span> in package_special_services:<BR> | |
package_service_options.append(['ShipperReleaseIndicator'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if <span style="color: rgb(255, 0, 0);">'shipper_release'</span> in package_special_services:<BR> | |
package_service_options.append(['ShipperReleaseIndicator'])</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 289</B><BR>Distance between two fragments = 3 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 201</TD><TD></TD><TD>Source file "./carriers/canada_post.py"<BR>The first line is 456</TD></TR><TR> | |
<TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ship'</span></span>, is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);">'pickup'</span>, is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ship'</span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);">'pickup'</span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
</TR> | |
<TR> | |
<TD> | |
sender = <span style="color: rgb(255, 0, 0);">shipment</span>[<span style="color: rgb(255, 0, 0);">'sender'</span>]</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
sender = <span style="color: rgb(255, 0, 0);">req</span>[<span style="color: rgb(255, 0, 0);">'location'</span>]</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 290</B><BR>Distance between two fragments = 3 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 109</TD><TD></TD><TD>Source file "./carriers/canada_post.py"<BR>The first line is 456</TD></TR><TR> | |
<TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'rate'</span></span>, is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pickup'</span></span>, is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'rate'</span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pickup'</span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
</TR> | |
<TR> | |
<TD> | |
sender = <span style="color: rgb(255, 0, 0);">shipment</span>[<span style="color: rgb(255, 0, 0);">'sender'</span>]</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
sender = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">req</span></span>[<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'location'</span></span>]</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 291</B><BR>Distance between two fragments = 3 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 201</TD><TD></TD><TD>Source file "./carriers/canada_post.py"<BR>The first line is 456</TD></TR><TR> | |
<TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ship'</span></span>, is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);">'pickup'</span>, is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ship'</span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);">'pickup'</span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
</TR> | |
<TR> | |
<TD> | |
sender = <span style="color: rgb(255, 0, 0);">shipment</span>[<span style="color: rgb(255, 0, 0);">'sender'</span>]</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
sender = <span style="color: rgb(255, 0, 0);">req</span>[<span style="color: rgb(255, 0, 0);">'location'</span>]</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 292</B><BR>Distance between two fragments = 3 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 109</TD><TD></TD><TD>Source file "./carriers/canada_post.py"<BR>The first line is 456</TD></TR><TR> | |
<TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'rate'</span></span>, is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pickup'</span></span>, is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'rate'</span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pickup'</span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
</TR> | |
<TR> | |
<TD> | |
sender = <span style="color: rgb(255, 0, 0);">shipment</span>[<span style="color: rgb(255, 0, 0);">'sender'</span>]</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
sender = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">req</span></span>[<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'location'</span></span>]</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 293</B><BR>Distance between two fragments = 3 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/parcelforce.py"<BR>The first line is 285</TD><TD></TD><TD>Source file "./carriers/parcelforce.py"<BR>The first line is 536</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">req_result</span></span> = post_xml(_endpoint, to_xml_str(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">req</span></span>))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">ship_result</span> = post_xml(_endpoint, to_xml_str(<span style="color: rgb(255, 0, 0);">request</span>))</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">result_xml</span> = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">req_result</span></span>.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">ship_result_xml</span> = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">ship_result</span>.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(<span style="color: rgb(255, 0, 0);">result_xml</span>)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=to_xml_str(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">req</span></span>), carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">req_result</span></span>.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_check_for_errors(<span style="color: rgb(255, 0, 0);">ship_result_xml</span>)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=to_xml_str(<span style="color: rgb(255, 0, 0);">request</span>), carrier_response=<span style="color: rgb(255, 0, 0);">ship_result</span>.content)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 294</B><BR>Distance between two fragments = 3 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/parcelforce.py"<BR>The first line is 285</TD><TD></TD><TD>Source file "./carriers/parcelforce.py"<BR>The first line is 536</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">req_result</span></span> = post_xml(_endpoint, to_xml_str(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">req</span></span>))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">ship_result</span> = post_xml(_endpoint, to_xml_str(<span style="color: rgb(255, 0, 0);">request</span>))</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">result_xml</span> = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">req_result</span></span>.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">ship_result_xml</span> = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">ship_result</span>.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(<span style="color: rgb(255, 0, 0);">result_xml</span>)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=to_xml_str(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">req</span></span>), carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">req_result</span></span>.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_check_for_errors(<span style="color: rgb(255, 0, 0);">ship_result_xml</span>)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=to_xml_str(<span style="color: rgb(255, 0, 0);">request</span>), carrier_response=<span style="color: rgb(255, 0, 0);">ship_result</span>.content)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 295</B><BR>Distance between two fragments = 2 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/singapore_post.py"<BR>The first line is 386</TD><TD></TD><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 304</TD></TR><TR> | |
<TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Singapore Post.'</span></span></span></span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for DPD Germany. You must call DPD Germany to cancel and/or update a previously scheduled shipment.'</span></span></span></span></span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 296</B><BR>Distance between two fragments = 2 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/singapore_post.py"<BR>The first line is 386</TD><TD></TD><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 304</TD></TR><TR> | |
<TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Singapore Post.'</span></span></span></span></span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for DPD Germany. You must call DPD Germany to cancel and/or update a previously scheduled shipment.'</span></span></span></span></span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 297</B><BR>Distance between two fragments = 2 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/singapore_post.py"<BR>The first line is 386</TD><TD></TD><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 304</TD></TR><TR> | |
<TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Singapore Post.'</span></span></span></span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for DPD Germany. You must call DPD Germany to cancel and/or update a previously scheduled shipment.'</span></span></span></span></span></span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 298</B><BR>Distance between two fragments = 2 <BR>Clone size = 11<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/singapore_post.py"<BR>The first line is 386</TD><TD></TD><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 304</TD></TR><TR> | |
<TD> | |
def ship(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.ship()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Singapore Post.'</span></span></span></span></span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for DPD Germany. You must call DPD Germany to cancel and/or update a previously scheduled shipment.'</span></span></span></span></span></span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 299</B><BR>Distance between two fragments = 4 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 327</TD><TD></TD><TD>Source file "./carriers/singapore_post.py"<BR>The first line is 386</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span></span></span></span></span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span></span></span></span></span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">ship</span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);">ship</span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel_pickup</span></span></span></span></span></span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling pickup is not supported for DPD Germany.'</span></span></span></span></span></span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">cancel</span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Singapore Post.'</span></span></span></span></span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 300</B><BR>Distance between two fragments = 4 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 327</TD><TD></TD><TD>Source file "./carriers/singapore_post.py"<BR>The first line is 386</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span></span></span></span></span></span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span></span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span></span></span></span></span></span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">ship</span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);">ship</span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel_pickup</span></span></span></span></span></span></span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling pickup is not supported for DPD Germany.'</span></span></span></span></span></span></span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">cancel</span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Singapore Post.'</span></span></span></span></span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 301</B><BR>Distance between two fragments = 4 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 327</TD><TD></TD><TD>Source file "./carriers/singapore_post.py"<BR>The first line is 386</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span></span></span></span></span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span></span></span></span></span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span></span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel_pickup</span></span></span></span></span></span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling pickup is not supported for DPD Germany.'</span></span></span></span></span></span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Singapore Post.'</span></span></span></span></span></span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 302</B><BR>Distance between two fragments = 4 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_germany.py"<BR>The first line is 327</TD><TD></TD><TD>Source file "./carriers/singapore_post.py"<BR>The first line is 386</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span></span></span></span></span></span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">DPDGermanyPost</span></span></span></span></span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span></span></span></span></span></span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span>(is_test, req, auth):<BR> | |
api_client = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">SingaporePost</span></span></span></span></span></span></span></span>(auth=auth, is_test=is_test, payload=req)<BR> | |
api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span>()<BR> | |
result = api_client.get_soap_vars()<BR> | |
result['carrier_request'] = result.pop('request')<BR> | |
result['carrier_response'] = result.pop('response')<BR> | |
return result</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel_pickup</span></span></span></span></span></span></span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling pickup is not supported for DPD Germany.'</span></span></span></span></span></span></span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for Singapore Post.'</span></span></span></span></span></span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 305</B><BR>Distance between two fragments = 4 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./account.py"<BR>The first line is 989</TD><TD></TD><TD>Source file "./main.py"<BR>The first line is 667</TD></TR><TR> | |
<TD> | |
template = JINJA_ENVIRONMENT.get_template(<span style="color: rgb(255, 0, 0);">'templates/shipment_manifest.html'</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
template = JINJA_ENVIRONMENT.get_template(<span style="color: rgb(255, 0, 0);">'templates/commercial_invoice_tables.html'</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
result = StringIO.StringIO()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
result = StringIO.StringIO()</TD> | |
</TR> | |
<TR> | |
<TD> | |
html = template.render(template_values)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
html = template.render(template_values)</TD> | |
</TR> | |
<TR> | |
<TD> | |
pdf = pisa.pisaDocument(StringIO.StringIO(html), dest=result)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
pdf = pisa.pisaDocument(StringIO.StringIO(html), dest=result)</TD> | |
</TR> | |
<TR> | |
<TD> | |
logging_info(b64encode(str(result.getvalue())))</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
logging_info(b64encode(str(result.getvalue())))</TD> | |
</TR> | |
<TR> | |
<TD> | |
if not pdf.err:<BR> | |
self.response.headers['Content-Type'] = 'application/pdf'<BR> | |
return <span style="color: rgb(255, 0, 0);">self.response.out</span>.write(result.getvalue())</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if not pdf.err:<BR> | |
self.response.headers['Content-Type'] = 'application/pdf'<BR> | |
return <span style="color: rgb(255, 0, 0);">self</span>.write(result.getvalue())</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 306</B><BR>Distance between two fragments = 4 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./account.py"<BR>The first line is 989</TD><TD></TD><TD>Source file "./main.py"<BR>The first line is 667</TD></TR><TR> | |
<TD> | |
template = JINJA_ENVIRONMENT.get_template(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'templates/shipment_manifest.html'</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
template = JINJA_ENVIRONMENT.get_template(<span style="color: rgb(255, 0, 0);">'templates/commercial_invoice_tables.html'</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
result = StringIO.StringIO()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
result = StringIO.StringIO()</TD> | |
</TR> | |
<TR> | |
<TD> | |
html = template.render(template_values)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
html = template.render(template_values)</TD> | |
</TR> | |
<TR> | |
<TD> | |
pdf = pisa.pisaDocument(StringIO.StringIO(html), dest=result)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
pdf = pisa.pisaDocument(StringIO.StringIO(html), dest=result)</TD> | |
</TR> | |
<TR> | |
<TD> | |
logging_info(b64encode(str(result.getvalue())))</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
logging_info(b64encode(str(result.getvalue())))</TD> | |
</TR> | |
<TR> | |
<TD> | |
if not pdf.err:<BR> | |
self.response.headers['Content-Type'] = 'application/pdf'<BR> | |
return <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">self.response.out</span></span>.write(result.getvalue())</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if not pdf.err:<BR> | |
self.response.headers['Content-Type'] = 'application/pdf'<BR> | |
return <span style="color: rgb(255, 0, 0);">self</span>.write(result.getvalue())</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 307</B><BR>Distance between two fragments = 4 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./main.py"<BR>The first line is 667</TD><TD></TD><TD>Source file "./account.py"<BR>The first line is 989</TD></TR><TR> | |
<TD> | |
template = JINJA_ENVIRONMENT.get_template(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'templates/commercial_invoice_tables.html'</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
template = JINJA_ENVIRONMENT.get_template(<span style="color: rgb(255, 0, 0);">'templates/shipment_manifest.html'</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
result = StringIO.StringIO()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
result = StringIO.StringIO()</TD> | |
</TR> | |
<TR> | |
<TD> | |
html = template.render(template_values)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
html = template.render(template_values)</TD> | |
</TR> | |
<TR> | |
<TD> | |
pdf = pisa.pisaDocument(StringIO.StringIO(html), dest=result)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
pdf = pisa.pisaDocument(StringIO.StringIO(html), dest=result)</TD> | |
</TR> | |
<TR> | |
<TD> | |
logging_info(b64encode(str(result.getvalue())))</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
logging_info(b64encode(str(result.getvalue())))</TD> | |
</TR> | |
<TR> | |
<TD> | |
if not pdf.err:<BR> | |
self.response.headers['Content-Type'] = 'application/pdf'<BR> | |
return <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">self</span></span>.write(result.getvalue())</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if not pdf.err:<BR> | |
self.response.headers['Content-Type'] = 'application/pdf'<BR> | |
return <span style="color: rgb(255, 0, 0);">self.response.out</span>.write(result.getvalue())</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 308</B><BR>Distance between two fragments = 4 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./account.py"<BR>The first line is 989</TD><TD></TD><TD>Source file "./main.py"<BR>The first line is 667</TD></TR><TR> | |
<TD> | |
template = JINJA_ENVIRONMENT.get_template(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'templates/shipment_manifest.html'</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
template = JINJA_ENVIRONMENT.get_template(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'templates/commercial_invoice_tables.html'</span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
result = StringIO.StringIO()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
result = StringIO.StringIO()</TD> | |
</TR> | |
<TR> | |
<TD> | |
html = template.render(template_values)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
html = template.render(template_values)</TD> | |
</TR> | |
<TR> | |
<TD> | |
pdf = pisa.pisaDocument(StringIO.StringIO(html), dest=result)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
pdf = pisa.pisaDocument(StringIO.StringIO(html), dest=result)</TD> | |
</TR> | |
<TR> | |
<TD> | |
logging_info(b64encode(str(result.getvalue())))</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
logging_info(b64encode(str(result.getvalue())))</TD> | |
</TR> | |
<TR> | |
<TD> | |
if not pdf.err:<BR> | |
self.response.headers['Content-Type'] = 'application/pdf'<BR> | |
return <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">self.response.out</span></span>.write(result.getvalue())</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if not pdf.err:<BR> | |
self.response.headers['Content-Type'] = 'application/pdf'<BR> | |
return <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">self</span></span>.write(result.getvalue())</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 309</B><BR>Distance between two fragments = 2 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/parcelforce.py"<BR>The first line is 580</TD><TD></TD><TD>Source file "./carriers/parcelforce.py"<BR>The first line is 536</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result</span></span></span> = post_xml(_endpoint, to_xml_str(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span>))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_result</span></span> = post_xml(_endpoint, to_xml_str(<span style="color: rgb(255, 0, 0);">request</span>))</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">result_xml</span> = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result</span></span></span>.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_result_xml</span></span> = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_result</span></span>.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(<span style="color: rgb(255, 0, 0);">result_xml</span>)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=to_xml_str(<span style="color: rgb(255, 0, 0);">request</span>), carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result</span></span>.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_check_for_errors(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_result_xml</span></span>)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=to_xml_str(<span style="color: rgb(255, 0, 0);">request</span>), carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_result</span></span>.content)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 310</B><BR>Distance between two fragments = 2 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/parcelforce.py"<BR>The first line is 580</TD><TD></TD><TD>Source file "./carriers/parcelforce.py"<BR>The first line is 536</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result</span></span></span> = post_xml(_endpoint, to_xml_str(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span>))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_result</span></span> = post_xml(_endpoint, to_xml_str(<span style="color: rgb(255, 0, 0);">request</span>))</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">result_xml</span> = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result</span></span></span>.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_result_xml</span></span> = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_result</span></span>.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(<span style="color: rgb(255, 0, 0);">result_xml</span>)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=to_xml_str(<span style="color: rgb(255, 0, 0);">request</span>), carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result</span></span>.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_check_for_errors(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_result_xml</span></span>)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=to_xml_str(<span style="color: rgb(255, 0, 0);">request</span>), carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_result</span></span>.content)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 312</B><BR>Distance between two fragments = 4 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./tests/main_test.py"<BR>The first line is 439</TD><TD></TD><TD>Source file "./tests/main_test.py"<BR>The first line is 418</TD></TR><TR> | |
<TD> | |
res = req_post(app, api_key, <span style="color: rgb(255, 0, 0);">'/track'</span>, params)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
res = req_post(app, api_key, <span style="color: rgb(255, 0, 0);">'/ship'</span>, params)</TD> | |
</TR> | |
<TR> | |
<TD> | |
if 'error' in res:<BR> | |
msg = res['error']['message']<BR> | |
if not any((<span style="color: rgb(255, 0, 0);">'DHL: No Shipments Found for AWBNumber 4210717033'</span> in msg, <span style="color: rgb(255, 0, 0);">"The carrier's server took too long to respond."</span> in msg)):<BR> | |
assert False, msg<BR> | |
else:<BR> | |
assert <span style="color: rgb(255, 0, 0);">'checkpoints'</span> in res</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if 'error' in res:<BR> | |
msg = res['error']['message']<BR> | |
if not any((<span style="color: rgb(255, 0, 0);">"The carrier's server took too long to respond."</span> in msg, <span style="color: rgb(255, 0, 0);">"Unable to contact the carrier's server."</span> in msg)):<BR> | |
assert False, msg<BR> | |
else:<BR> | |
assert <span style="color: rgb(255, 0, 0);">'shipment'</span> in res</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 313</B><BR>Distance between two fragments = 4 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./tests/main_test.py"<BR>The first line is 439</TD><TD></TD><TD>Source file "./tests/main_test.py"<BR>The first line is 418</TD></TR><TR> | |
<TD> | |
res = req_post(app, api_key, <span style="color: rgb(255, 0, 0);">'/track'</span>, params)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
res = req_post(app, api_key, <span style="color: rgb(255, 0, 0);">'/ship'</span>, params)</TD> | |
</TR> | |
<TR> | |
<TD> | |
if 'error' in res:<BR> | |
msg = res['error']['message']<BR> | |
if not any((<span style="color: rgb(255, 0, 0);">'DHL: No Shipments Found for AWBNumber 4210717033'</span> in msg, <span style="color: rgb(255, 0, 0);">"The carrier's server took too long to respond."</span> in msg)):<BR> | |
assert False, msg<BR> | |
else:<BR> | |
assert <span style="color: rgb(255, 0, 0);">'checkpoints'</span> in res</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if 'error' in res:<BR> | |
msg = res['error']['message']<BR> | |
if not any((<span style="color: rgb(255, 0, 0);">"The carrier's server took too long to respond."</span> in msg, <span style="color: rgb(255, 0, 0);">"Unable to contact the carrier's server."</span> in msg)):<BR> | |
assert False, msg<BR> | |
else:<BR> | |
assert <span style="color: rgb(255, 0, 0);">'shipment'</span> in res</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 314</B><BR>Distance between two fragments = 4 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/echo_logistics.py"<BR>The first line is 331</TD><TD></TD><TD>Source file "./carriers/echo_logistics.py"<BR>The first line is 199</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">ship_request_result</span> = post_json(<span style="color: rgb(255, 0, 0);">(endpoint_url) + ('LTL')</span>, request, headers=headers, deadline=60)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">result</span> = post_json(<span style="color: rgb(255, 0, 0);">endpoint_url</span>, request, headers=headers, deadline=60)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_validate_api_response(<span style="color: rgb(255, 0, 0);">ship_request_result</span>)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(request), carrier_response=<span style="color: rgb(255, 0, 0);">ship_request_result</span>.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_validate_api_response(<span style="color: rgb(255, 0, 0);">result</span>)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(request), carrier_response=<span style="color: rgb(255, 0, 0);">result</span>.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">ship_result</span> = json.loads(<span style="color: rgb(255, 0, 0);">ship_request_result</span>.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">rate_result</span> = json.loads(<span style="color: rgb(255, 0, 0);">result</span>.content)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 315</B><BR>Distance between two fragments = 4 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/echo_logistics.py"<BR>The first line is 331</TD><TD></TD><TD>Source file "./carriers/echo_logistics.py"<BR>The first line is 199</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">ship_request_result</span> = post_json(<span style="color: rgb(255, 0, 0);">(endpoint_url) + ('LTL')</span>, request, headers=headers, deadline=60)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">result</span> = post_json(<span style="color: rgb(255, 0, 0);">endpoint_url</span>, request, headers=headers, deadline=60)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_validate_api_response(<span style="color: rgb(255, 0, 0);">ship_request_result</span>)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(request), carrier_response=<span style="color: rgb(255, 0, 0);">ship_request_result</span>.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_validate_api_response(<span style="color: rgb(255, 0, 0);">result</span>)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(request), carrier_response=<span style="color: rgb(255, 0, 0);">result</span>.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">ship_result</span> = json.loads(<span style="color: rgb(255, 0, 0);">ship_request_result</span>.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">rate_result</span> = json.loads(<span style="color: rgb(255, 0, 0);">result</span>.content)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 318</B><BR>Distance between two fragments = 3 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/australia_post.py"<BR>The first line is 331</TD><TD></TD><TD>Source file "./carriers/australia_post.py"<BR>The first line is 383</TD></TR><TR> | |
<TD> | |
result = post_json(endpoint(<span style="color: rgb(255, 0, 0);">'ship'</span>, is_test), <span style="color: rgb(255, 0, 0);">req</span>, headers=headers)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
result = post_json(endpoint(<span style="color: rgb(255, 0, 0);">'label'</span>, is_test), <span style="color: rgb(255, 0, 0);">label_req</span>, headers=headers)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);">req</span>), carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);">label_req</span>), carrier_response=result.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">ship_resp</span> = result.json()</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">label_resp</span> = result.json()</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 319</B><BR>Distance between two fragments = 3 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/australia_post.py"<BR>The first line is 331</TD><TD></TD><TD>Source file "./carriers/australia_post.py"<BR>The first line is 383</TD></TR><TR> | |
<TD> | |
result = post_json(endpoint(<span style="color: rgb(255, 0, 0);">'ship'</span>, is_test), <span style="color: rgb(255, 0, 0);">req</span>, headers=headers)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
result = post_json(endpoint(<span style="color: rgb(255, 0, 0);">'label'</span>, is_test), <span style="color: rgb(255, 0, 0);">label_req</span>, headers=headers)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);">req</span>), carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);">label_req</span>), carrier_response=result.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">ship_resp</span> = result.json()</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">label_resp</span> = result.json()</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 320</B><BR>Distance between two fragments = 2 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 950</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1063</TD></TR><TR> | |
<TD> | |
result = post_xml(endpoint, request, deadline=10)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
result = post_xml(endpoint, request, deadline=10)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">xml_str</span> = result.content</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">result_str</span> = result.content</TD> | |
</TR> | |
<TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">xml_str</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result_str</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
e = _check_for_errors(xml, <span style="color: rgb(255, 0, 0);">SHIP_NS</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
e = _check_for_errors(xml, <span style="color: rgb(255, 0, 0);">RATE_NS</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
if len(e) > 0:<BR> | |
raise CarrierException(, **{'message': ('FedexFreight API: ') + (' '.join(e)), 'carrier_request': request, 'carrier_response': <span style="color: rgb(255, 0, 0);">xml_str</span>})</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if len(e) > 0:<BR> | |
raise CarrierException(, **{'message': ('FedexFreight API: ') + (' '.join(e)), 'carrier_request': request, 'carrier_response': <span style="color: rgb(255, 0, 0);">result_str</span>})</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 321</B><BR>Distance between two fragments = 2 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 950</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1063</TD></TR><TR> | |
<TD> | |
result = post_xml(endpoint, request, deadline=10)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
result = post_xml(endpoint, request, deadline=10)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">xml_str</span> = result.content</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">result_str</span> = result.content</TD> | |
</TR> | |
<TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">xml_str</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result_str</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
e = _check_for_errors(xml, <span style="color: rgb(255, 0, 0);">SHIP_NS</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
e = _check_for_errors(xml, <span style="color: rgb(255, 0, 0);">RATE_NS</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
if len(e) > 0:<BR> | |
raise CarrierException(, **{'message': ('FedexFreight API: ') + (' '.join(e)), 'carrier_request': request, 'carrier_response': <span style="color: rgb(255, 0, 0);">xml_str</span>})</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if len(e) > 0:<BR> | |
raise CarrierException(, **{'message': ('FedexFreight API: ') + (' '.join(e)), 'carrier_request': request, 'carrier_response': <span style="color: rgb(255, 0, 0);">result_str</span>})</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 322</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/ups.py"<BR>The first line is 1389</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1259</TD></TR><TR> | |
<TD> | |
port_name = <span style="color: rgb(255, 0, 0);">'PickupProdPort'</span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceProdPort'</span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);">'PickupTestPort'</span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceTestPort'</span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/ups/Pickup.wsdl'</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/PickupService_v17.wsdl'</span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 323</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/ups.py"<BR>The first line is 1389</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1259</TD></TR><TR> | |
<TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupProdPort'</span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceProdPort'</span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupTestPort'</span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceTestPort'</span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/ups/Pickup.wsdl'</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/PickupService_v17.wsdl'</span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 324</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/ups.py"<BR>The first line is 1389</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1259</TD></TR><TR> | |
<TD> | |
port_name = <span style="color: rgb(255, 0, 0);">'PickupProdPort'</span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceProdPort'</span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);">'PickupTestPort'</span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceTestPort'</span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/ups/Pickup.wsdl'</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/PickupService_v17.wsdl'</span></span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 325</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/ups.py"<BR>The first line is 1389</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1259</TD></TR><TR> | |
<TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupProdPort'</span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceProdPort'</span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupTestPort'</span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceTestPort'</span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/ups/Pickup.wsdl'</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/PickupService_v17.wsdl'</span></span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 326</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/ups.py"<BR>The first line is 1389</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1345</TD></TR><TR> | |
<TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupProdPort'</span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'UploadDocumentServicePortProd'</span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupTestPort'</span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'UploadDocumentServicePortTest'</span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/ups/Pickup.wsdl'</span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/UploadDo0cumentService_v11.wsdl'</span></span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 327</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/ups.py"<BR>The first line is 1389</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1345</TD></TR><TR> | |
<TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupProdPort'</span></span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'UploadDocumentServicePortProd'</span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupTestPort'</span></span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'UploadDocumentServicePortTest'</span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/ups/Pickup.wsdl'</span></span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/UploadDo0cumentService_v11.wsdl'</span></span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 328</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/ups.py"<BR>The first line is 1389</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1345</TD></TR><TR> | |
<TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupProdPort'</span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'UploadDocumentServicePortProd'</span></span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupTestPort'</span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'UploadDocumentServicePortTest'</span></span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/ups/Pickup.wsdl'</span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/UploadDo0cumentService_v11.wsdl'</span></span></span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 329</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/ups.py"<BR>The first line is 1389</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1345</TD></TR><TR> | |
<TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupProdPort'</span></span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'UploadDocumentServicePortProd'</span></span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupTestPort'</span></span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'UploadDocumentServicePortTest'</span></span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/ups/Pickup.wsdl'</span></span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/UploadDo0cumentService_v11.wsdl'</span></span></span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 330</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/ups.py"<BR>The first line is 1389</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1121</TD></TR><TR> | |
<TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupProdPort'</span></span></span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceProdPort'</span></span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupTestPort'</span></span></span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceTestPort'</span></span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/ups/Pickup.wsdl'</span></span></span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/PickupService_v17.wsdl'</span></span></span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 332</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/ups.py"<BR>The first line is 1389</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1121</TD></TR><TR> | |
<TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupProdPort'</span></span></span></span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceProdPort'</span></span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupTestPort'</span></span></span></span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceTestPort'</span></span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/ups/Pickup.wsdl'</span></span></span></span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/PickupService_v17.wsdl'</span></span></span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 333</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/ups.py"<BR>The first line is 1389</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1121</TD></TR><TR> | |
<TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupProdPort'</span></span></span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceProdPort'</span></span></span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupTestPort'</span></span></span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceTestPort'</span></span></span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/ups/Pickup.wsdl'</span></span></span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/PickupService_v17.wsdl'</span></span></span></span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 334</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/ups.py"<BR>The first line is 1389</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1121</TD></TR><TR> | |
<TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupProdPort'</span></span></span></span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceProdPort'</span></span></span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupTestPort'</span></span></span></span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceTestPort'</span></span></span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/ups/Pickup.wsdl'</span></span></span></span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/PickupService_v17.wsdl'</span></span></span></span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 336</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1259</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 1292</TD></TR><TR> | |
<TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceProdPort'</span></span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupProdPort'</span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceTestPort'</span></span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupTestPort'</span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/PickupService_v17.wsdl'</span></span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/ups/Pickup.wsdl'</span></span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 337</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1259</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 1292</TD></TR><TR> | |
<TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceProdPort'</span></span></span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupProdPort'</span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceTestPort'</span></span></span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupTestPort'</span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/PickupService_v17.wsdl'</span></span></span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/ups/Pickup.wsdl'</span></span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 338</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1259</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 1292</TD></TR><TR> | |
<TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceProdPort'</span></span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupProdPort'</span></span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceTestPort'</span></span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupTestPort'</span></span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/PickupService_v17.wsdl'</span></span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/ups/Pickup.wsdl'</span></span></span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 339</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1259</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 1292</TD></TR><TR> | |
<TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceProdPort'</span></span></span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupProdPort'</span></span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupServiceTestPort'</span></span></span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupTestPort'</span></span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/PickupService_v17.wsdl'</span></span></span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/ups/Pickup.wsdl'</span></span></span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 340</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1345</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 1292</TD></TR><TR> | |
<TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'UploadDocumentServicePortProd'</span></span></span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupProdPort'</span></span></span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'UploadDocumentServicePortTest'</span></span></span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupTestPort'</span></span></span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/UploadDo0cumentService_v11.wsdl'</span></span></span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/ups/Pickup.wsdl'</span></span></span></span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 341</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1345</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 1292</TD></TR><TR> | |
<TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'UploadDocumentServicePortProd'</span></span></span></span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupProdPort'</span></span></span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'UploadDocumentServicePortTest'</span></span></span></span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupTestPort'</span></span></span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/UploadDo0cumentService_v11.wsdl'</span></span></span></span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/ups/Pickup.wsdl'</span></span></span></span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 342</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1345</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 1292</TD></TR><TR> | |
<TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'UploadDocumentServicePortProd'</span></span></span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupProdPort'</span></span></span></span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'UploadDocumentServicePortTest'</span></span></span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupTestPort'</span></span></span></span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/UploadDo0cumentService_v11.wsdl'</span></span></span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/ups/Pickup.wsdl'</span></span></span></span></span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 343</B><BR>Distance between two fragments = 3 <BR>Clone size = 10<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1345</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 1292</TD></TR><TR> | |
<TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'UploadDocumentServicePortProd'</span></span></span></span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupProdPort'</span></span></span></span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'UploadDocumentServicePortTest'</span></span></span></span></span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if is_test:<BR> | |
port_name = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'PickupTestPort'</span></span></span></span></span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/fedex/UploadDo0cumentService_v11.wsdl'</span></span></span></span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
wsdl_file = os.path.join(os.path.split(__file__)[0], <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'../base_carrier/wsdl/ups/Pickup.wsdl'</span></span></span></span></span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
client = zeep.Client(wsdl=wsdl_file, plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 352</B><BR>Distance between two fragments = 1 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1084</TD><TD></TD><TD>Source file "./carriers/fedex.py"<BR>The first line is 332</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">cancel</span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);">cancel</span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">track</span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);">track</span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 353</B><BR>Distance between two fragments = 1 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1084</TD><TD></TD><TD>Source file "./carriers/fedex.py"<BR>The first line is 332</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">track</span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);">track</span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 354</B><BR>Distance between two fragments = 1 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1084</TD><TD></TD><TD>Source file "./carriers/fedex.py"<BR>The first line is 332</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">cancel</span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);">cancel</span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 355</B><BR>Distance between two fragments = 1 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1084</TD><TD></TD><TD>Source file "./carriers/fedex.py"<BR>The first line is 332</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 356</B><BR>Distance between two fragments = 1 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1084</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1108</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">track</span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);">track</span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 357</B><BR>Distance between two fragments = 1 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1084</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1108</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">track</span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);">track</span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 358</B><BR>Distance between two fragments = 1 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1084</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1108</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 359</B><BR>Distance between two fragments = 1 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1084</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1108</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 360</B><BR>Distance between two fragments = 1 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex.py"<BR>The first line is 344</TD><TD></TD><TD>Source file "./carriers/fedex.py"<BR>The first line is 332</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">cancel</span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);">cancel</span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span></span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span></span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 361</B><BR>Distance between two fragments = 1 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex.py"<BR>The first line is 344</TD><TD></TD><TD>Source file "./carriers/fedex.py"<BR>The first line is 332</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span></span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span></span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 362</B><BR>Distance between two fragments = 1 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex.py"<BR>The first line is 344</TD><TD></TD><TD>Source file "./carriers/fedex.py"<BR>The first line is 332</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">cancel</span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);">cancel</span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span></span></span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span></span></span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 363</B><BR>Distance between two fragments = 1 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex.py"<BR>The first line is 344</TD><TD></TD><TD>Source file "./carriers/fedex.py"<BR>The first line is 332</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span></span></span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span></span></span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 364</B><BR>Distance between two fragments = 1 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex.py"<BR>The first line is 344</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1108</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span></span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span></span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 365</B><BR>Distance between two fragments = 1 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex.py"<BR>The first line is 344</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1108</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span></span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span></span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 366</B><BR>Distance between two fragments = 1 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex.py"<BR>The first line is 344</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1108</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span></span></span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span></span></span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 367</B><BR>Distance between two fragments = 1 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex.py"<BR>The first line is 344</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1108</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span></span></span>(is_test, req, auth):<BR> | |
api_client = FedexBase(parent_key=_get_parent_key(is_test), parent_password=_get_parent_password(is_test), auth=auth, is_test=is_test, payload=req)<BR> | |
track_result = api_client.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span></span></span>()<BR> | |
soap_vars = api_client.get_soap_vars()<BR> | |
return (track_result, soap_vars['request'], soap_vars['response'])</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 376</B><BR>Distance between two fragments = 1 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./zeep/wsdl/bindings/http.py"<BR>The first line is 96</TD><TD></TD><TD>Source file "./zeep/wsdl/bindings/http.py"<BR>The first line is 68</TD></TR><TR> | |
<TD> | |
def send(self, client, options, operation, args, kwargs):<BR> | |
operation_obj = self.<span style="color: rgb(255, 0, 0);">get</span>(operation)<BR> | |
if not operation_obj:<BR> | |
raise ValueError(('Operation %r not found') % (operation))<BR> | |
serialized = operation_obj.create(, *args, **kwargs)<BR> | |
url = (options['address']) + (serialized.path)<BR> | |
response = client.transport.<span style="color: rgb(255, 0, 0);">get</span>(url, serialized.content, headers=serialized.headers)<BR> | |
return self.process_reply(client, operation_obj, response)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def send(self, client, options, operation, args, kwargs):<BR> | |
operation_obj = self.<span style="color: rgb(255, 0, 0);">get</span>(operation)<BR> | |
if not operation_obj:<BR> | |
raise ValueError(('Operation %r not found') % (operation))<BR> | |
serialized = operation_obj.create(, *args, **kwargs)<BR> | |
url = (options['address']) + (serialized.path)<BR> | |
response = client.transport.<span style="color: rgb(255, 0, 0);">post</span>(url, serialized.content, headers=serialized.headers)<BR> | |
return self.process_reply(client, operation_obj, response)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 377</B><BR>Distance between two fragments = 4 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/base.py"<BR>The first line is 1437</TD><TD></TD><TD>Source file "./carriers/base.py"<BR>The first line is 1395</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">shipment_custom_code</span>(shipment, field):<BR> | |
return <span style="color: rgb(255, 0, 0);">shipment_field_code</span>(shipment, <span style="color: rgb(255, 0, 0);">'customs'</span>, field)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">shipment_billing_field_code</span>(shipment, field):<BR> | |
return <span style="color: rgb(255, 0, 0);">_shipment_field_code</span>(shipment, <span style="color: rgb(255, 0, 0);">'billing_fields'</span>, field)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">_shipment_field_code</span>(shipment, meta_name, field):<BR> | |
for custom_field in data.carrier(shipment['carrier'])[meta_name]:<BR> | |
if custom_field['slug'] == field:<BR> | |
slug = shipment[field]<BR> | |
for option in custom_field.get('collection', []):<BR> | |
if option['slug'] == slug:<BR> | |
return option['code']</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">shipment_field_code</span>(shipment, meta_name, field):<BR> | |
for custom_field in data.carrier(shipment['carrier'])[meta_name]:<BR> | |
if custom_field['slug'] == field:<BR> | |
slug = shipment[field]<BR> | |
for option in custom_field.get('collection', []):<BR> | |
if option['slug'] == slug:<BR> | |
return option['code']</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 378</B><BR>Distance between two fragments = 4 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/base.py"<BR>The first line is 1437</TD><TD></TD><TD>Source file "./carriers/base.py"<BR>The first line is 1395</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipment_custom_code</span></span>(shipment, field):<BR> | |
return <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipment_field_code</span></span>(shipment, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'customs'</span></span>, field)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">shipment_billing_field_code</span>(shipment, field):<BR> | |
return <span style="color: rgb(255, 0, 0);">_shipment_field_code</span>(shipment, <span style="color: rgb(255, 0, 0);">'billing_fields'</span>, field)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_shipment_field_code</span></span>(shipment, meta_name, field):<BR> | |
for custom_field in data.carrier(shipment['carrier'])[meta_name]:<BR> | |
if custom_field['slug'] == field:<BR> | |
slug = shipment[field]<BR> | |
for option in custom_field.get('collection', []):<BR> | |
if option['slug'] == slug:<BR> | |
return option['code']</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">shipment_field_code</span>(shipment, meta_name, field):<BR> | |
for custom_field in data.carrier(shipment['carrier'])[meta_name]:<BR> | |
if custom_field['slug'] == field:<BR> | |
slug = shipment[field]<BR> | |
for option in custom_field.get('collection', []):<BR> | |
if option['slug'] == slug:<BR> | |
return option['code']</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 379</B><BR>Distance between two fragments = 4 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/base.py"<BR>The first line is 1437</TD><TD></TD><TD>Source file "./carriers/base.py"<BR>The first line is 1395</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">shipment_custom_code</span>(shipment, field):<BR> | |
return <span style="color: rgb(255, 0, 0);">shipment_field_code</span>(shipment, <span style="color: rgb(255, 0, 0);">'customs'</span>, field)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipment_billing_field_code</span></span>(shipment, field):<BR> | |
return <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_shipment_field_code</span></span>(shipment, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'billing_fields'</span></span>, field)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">_shipment_field_code</span>(shipment, meta_name, field):<BR> | |
for custom_field in data.carrier(shipment['carrier'])[meta_name]:<BR> | |
if custom_field['slug'] == field:<BR> | |
slug = shipment[field]<BR> | |
for option in custom_field.get('collection', []):<BR> | |
if option['slug'] == slug:<BR> | |
return option['code']</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipment_field_code</span></span>(shipment, meta_name, field):<BR> | |
for custom_field in data.carrier(shipment['carrier'])[meta_name]:<BR> | |
if custom_field['slug'] == field:<BR> | |
slug = shipment[field]<BR> | |
for option in custom_field.get('collection', []):<BR> | |
if option['slug'] == slug:<BR> | |
return option['code']</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 380</B><BR>Distance between two fragments = 4 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/base.py"<BR>The first line is 1437</TD><TD></TD><TD>Source file "./carriers/base.py"<BR>The first line is 1395</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipment_custom_code</span></span>(shipment, field):<BR> | |
return <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipment_field_code</span></span>(shipment, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'customs'</span></span>, field)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipment_billing_field_code</span></span>(shipment, field):<BR> | |
return <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_shipment_field_code</span></span>(shipment, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'billing_fields'</span></span>, field)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_shipment_field_code</span></span>(shipment, meta_name, field):<BR> | |
for custom_field in data.carrier(shipment['carrier'])[meta_name]:<BR> | |
if custom_field['slug'] == field:<BR> | |
slug = shipment[field]<BR> | |
for option in custom_field.get('collection', []):<BR> | |
if option['slug'] == slug:<BR> | |
return option['code']</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">shipment_field_code</span></span>(shipment, meta_name, field):<BR> | |
for custom_field in data.carrier(shipment['carrier'])[meta_name]:<BR> | |
if custom_field['slug'] == field:<BR> | |
slug = shipment[field]<BR> | |
for option in custom_field.get('collection', []):<BR> | |
if option['slug'] == slug:<BR> | |
return option['code']</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 381</B><BR>Distance between two fragments = 4 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/ups.py"<BR>The first line is 1201</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 1615</TD></TR><TR> | |
<TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);">result_xml</span> = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_result</span></span></span>)<BR> | |
check_for_errors(<span style="color: rgb(255, 0, 0);">result_xml</span>)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(, **{'message': e.message, 'carrier_request': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">str_rate_request</span></span></span>, 'carrier_response': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_result</span></span></span>})</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);">_xml</span> = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">str_resp</span>)<BR> | |
check_for_errors(<span style="color: rgb(255, 0, 0);">_xml</span>)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(, **{'message': e.message, 'carrier_request': <span style="color: rgb(255, 0, 0);">str_req</span>, 'carrier_response': <span style="color: rgb(255, 0, 0);">str_resp</span>})</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">rate_list</span> = []</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">ports_list</span> = []</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 382</B><BR>Distance between two fragments = 4 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/ups.py"<BR>The first line is 1201</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 1615</TD></TR><TR> | |
<TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);">result_xml</span> = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_result</span></span></span>)<BR> | |
check_for_errors(<span style="color: rgb(255, 0, 0);">result_xml</span>)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(, **{'message': e.message, 'carrier_request': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">str_rate_request</span></span></span>, 'carrier_response': <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_result</span></span></span>})</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);">_xml</span> = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">str_resp</span>)<BR> | |
check_for_errors(<span style="color: rgb(255, 0, 0);">_xml</span>)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(, **{'message': e.message, 'carrier_request': <span style="color: rgb(255, 0, 0);">str_req</span>, 'carrier_response': <span style="color: rgb(255, 0, 0);">str_resp</span>})</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);">rate_list</span> = []</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">ports_list</span> = []</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 383</B><BR>Distance between two fragments = 3 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/purolator.py"<BR>The first line is 529</TD><TD></TD><TD>Source file "./carriers/usps_endicia.py"<BR>The first line is 348</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span></span> = result.content</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">result_str</span> = result.content</TD> | |
</TR> | |
<TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result_str</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_check_for_errors</span></span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);">request</span>, carrier_response=<span style="color: rgb(255, 0, 0);">xml_str</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate_check_for_errors</span></span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_str</span></span></span>, carrier_response=<span style="color: rgb(255, 0, 0);">result_str</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 384</B><BR>Distance between two fragments = 3 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/purolator.py"<BR>The first line is 529</TD><TD></TD><TD>Source file "./carriers/usps_endicia.py"<BR>The first line is 348</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span></span></span> = result.content</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">result_str</span> = result.content</TD> | |
</TR> | |
<TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result_str</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_check_for_errors</span></span></span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span>, carrier_response=<span style="color: rgb(255, 0, 0);">xml_str</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate_check_for_errors</span></span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_str</span></span></span>, carrier_response=<span style="color: rgb(255, 0, 0);">result_str</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 385</B><BR>Distance between two fragments = 3 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/purolator.py"<BR>The first line is 529</TD><TD></TD><TD>Source file "./carriers/usps_endicia.py"<BR>The first line is 348</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span></span> = result.content</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result_str</span></span> = result.content</TD> | |
</TR> | |
<TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result_str</span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_check_for_errors</span></span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);">request</span>, carrier_response=<span style="color: rgb(255, 0, 0);">xml_str</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate_check_for_errors</span></span></span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_str</span></span></span></span>, carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result_str</span></span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 386</B><BR>Distance between two fragments = 3 <BR>Clone size = 9<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/purolator.py"<BR>The first line is 529</TD><TD></TD><TD>Source file "./carriers/usps_endicia.py"<BR>The first line is 348</TD></TR><TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span></span></span> = result.content</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result_str</span></span> = result.content</TD> | |
</TR> | |
<TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result_str</span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_check_for_errors</span></span></span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span>, carrier_response=<span style="color: rgb(255, 0, 0);">xml_str</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_rate_check_for_errors</span></span></span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_str</span></span></span></span>, carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result_str</span></span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 387</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1247</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 1376</TD></TR><TR> | |
<TD> | |
pickup_req[<span style="color: rgb(255, 0, 0);">'pickup_location_id'</span>] = <span style="color: rgb(255, 0, 0);">pickup_response</span>.<span style="color: rgb(255, 0, 0);">Location</span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
pickup_req[<span style="color: rgb(255, 0, 0);">'total_cost'</span>] = <span style="color: rgb(255, 0, 0);">pickup_response.RateResult</span>.<span style="color: rgb(255, 0, 0);">GrandTotalOfAllCharge</span></TD> | |
</TR> | |
<TR> | |
<TD> | |
return {'endpoint': client.wsdl.services['PickupService'].ports[port_name].binding_options['address'], 'carrier_request': etree_to_pretty_string(history.last_sent['envelope']), 'carrier_response': etree_to_pretty_string(history.last_received['envelope'])}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
return {'endpoint': client.wsdl.services['PickupService'].ports[port_name].binding_options['address'], 'carrier_request': etree_to_pretty_string(history.last_sent['envelope']), 'carrier_response': etree_to_pretty_string(history.last_received['envelope'])}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 388</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1247</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 1376</TD></TR><TR> | |
<TD> | |
pickup_req[<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pickup_location_id'</span></span>] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup_response</span></span>.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Location</span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
pickup_req[<span style="color: rgb(255, 0, 0);">'total_cost'</span>] = <span style="color: rgb(255, 0, 0);">pickup_response.RateResult</span>.<span style="color: rgb(255, 0, 0);">GrandTotalOfAllCharge</span></TD> | |
</TR> | |
<TR> | |
<TD> | |
return {'endpoint': client.wsdl.services['PickupService'].ports[port_name].binding_options['address'], 'carrier_request': etree_to_pretty_string(history.last_sent['envelope']), 'carrier_response': etree_to_pretty_string(history.last_received['envelope'])}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
return {'endpoint': client.wsdl.services['PickupService'].ports[port_name].binding_options['address'], 'carrier_request': etree_to_pretty_string(history.last_sent['envelope']), 'carrier_response': etree_to_pretty_string(history.last_received['envelope'])}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 389</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/ups.py"<BR>The first line is 1376</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1247</TD></TR><TR> | |
<TD> | |
pickup_req[<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'total_cost'</span></span>] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup_response.RateResult</span></span>.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">GrandTotalOfAllCharge</span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
pickup_req[<span style="color: rgb(255, 0, 0);">'pickup_location_id'</span>] = <span style="color: rgb(255, 0, 0);">pickup_response</span>.<span style="color: rgb(255, 0, 0);">Location</span></TD> | |
</TR> | |
<TR> | |
<TD> | |
return {'endpoint': client.wsdl.services['PickupService'].ports[port_name].binding_options['address'], 'carrier_request': etree_to_pretty_string(history.last_sent['envelope']), 'carrier_response': etree_to_pretty_string(history.last_received['envelope'])}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
return {'endpoint': client.wsdl.services['PickupService'].ports[port_name].binding_options['address'], 'carrier_request': etree_to_pretty_string(history.last_sent['envelope']), 'carrier_response': etree_to_pretty_string(history.last_received['envelope'])}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 390</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1247</TD><TD></TD><TD>Source file "./carriers/ups.py"<BR>The first line is 1376</TD></TR><TR> | |
<TD> | |
pickup_req[<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pickup_location_id'</span></span>] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup_response</span></span>.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Location</span></span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
pickup_req[<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'total_cost'</span></span>] = <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup_response.RateResult</span></span>.<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">GrandTotalOfAllCharge</span></span></TD> | |
</TR> | |
<TR> | |
<TD> | |
return {'endpoint': client.wsdl.services['PickupService'].ports[port_name].binding_options['address'], 'carrier_request': etree_to_pretty_string(history.last_sent['envelope']), 'carrier_response': etree_to_pretty_string(history.last_received['envelope'])}</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
return {'endpoint': client.wsdl.services['PickupService'].ports[port_name].binding_options['address'], 'carrier_request': etree_to_pretty_string(history.last_sent['envelope']), 'carrier_response': etree_to_pretty_string(history.last_received['envelope'])}</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 393</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./base_carrier/purolator_base.py"<BR>The first line is 12</TD><TD></TD><TD>Source file "./base_carrier/ups_base.py"<BR>The first line is 16</TD></TR><TR> | |
<TD> | |
def get_wsdl_file(self, service):<BR> | |
if service == 'track':<BR> | |
return os.path.join(self.wsdl_path, <span style="color: rgb(255, 0, 0);">'purolator/Track.wsdl'</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def get_wsdl_file(self, service):<BR> | |
if service == 'track':<BR> | |
return os.path.join(self.wsdl_path, <span style="color: rgb(255, 0, 0);">'ups/Track.wsdl'</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def get_port_name(self, service):<BR> | |
if service == 'track':<BR> | |
if self.is_test:<BR> | |
return 'TrackTestPort'<BR> | |
return 'TrackProdPort'</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
def get_port_name(self, service):<BR> | |
if service == 'track':<BR> | |
if self.is_test:<BR> | |
return 'TrackTestPort'<BR> | |
return 'TrackProdPort'</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 394</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./base_carrier/purolator_base.py"<BR>The first line is 12</TD><TD></TD><TD>Source file "./base_carrier/ups_base.py"<BR>The first line is 16</TD></TR><TR> | |
<TD> | |
def get_wsdl_file(self, service):<BR> | |
if service == 'track':<BR> | |
return os.path.join(self.wsdl_path, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'purolator/Track.wsdl'</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def get_wsdl_file(self, service):<BR> | |
if service == 'track':<BR> | |
return os.path.join(self.wsdl_path, <span style="color: rgb(255, 0, 0);">'ups/Track.wsdl'</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def get_port_name(self, service):<BR> | |
if service == 'track':<BR> | |
if self.is_test:<BR> | |
return 'TrackTestPort'<BR> | |
return 'TrackProdPort'</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
def get_port_name(self, service):<BR> | |
if service == 'track':<BR> | |
if self.is_test:<BR> | |
return 'TrackTestPort'<BR> | |
return 'TrackProdPort'</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 395</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./base_carrier/purolator_base.py"<BR>The first line is 12</TD><TD></TD><TD>Source file "./base_carrier/ups_base.py"<BR>The first line is 16</TD></TR><TR> | |
<TD> | |
def get_wsdl_file(self, service):<BR> | |
if service == 'track':<BR> | |
return os.path.join(self.wsdl_path, <span style="color: rgb(255, 0, 0);">'purolator/Track.wsdl'</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def get_wsdl_file(self, service):<BR> | |
if service == 'track':<BR> | |
return os.path.join(self.wsdl_path, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ups/Track.wsdl'</span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def get_port_name(self, service):<BR> | |
if service == 'track':<BR> | |
if self.is_test:<BR> | |
return 'TrackTestPort'<BR> | |
return 'TrackProdPort'</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
def get_port_name(self, service):<BR> | |
if service == 'track':<BR> | |
if self.is_test:<BR> | |
return 'TrackTestPort'<BR> | |
return 'TrackProdPort'</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 396</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./base_carrier/purolator_base.py"<BR>The first line is 12</TD><TD></TD><TD>Source file "./base_carrier/ups_base.py"<BR>The first line is 16</TD></TR><TR> | |
<TD> | |
def get_wsdl_file(self, service):<BR> | |
if service == 'track':<BR> | |
return os.path.join(self.wsdl_path, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'purolator/Track.wsdl'</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def get_wsdl_file(self, service):<BR> | |
if service == 'track':<BR> | |
return os.path.join(self.wsdl_path, <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ups/Track.wsdl'</span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def get_port_name(self, service):<BR> | |
if service == 'track':<BR> | |
if self.is_test:<BR> | |
return 'TrackTestPort'<BR> | |
return 'TrackProdPort'</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
def get_port_name(self, service):<BR> | |
if service == 'track':<BR> | |
if self.is_test:<BR> | |
return 'TrackTestPort'<BR> | |
return 'TrackProdPort'</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 397</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 75</TD><TD></TD><TD>Source file "./carriers/canada_post.py"<BR>The first line is 456</TD></TR><TR> | |
<TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);">'artifact'</span>, is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pickup'</span></span></span>, is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);">'artifact'</span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pickup'</span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 398</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 75</TD><TD></TD><TD>Source file "./carriers/canada_post.py"<BR>The first line is 201</TD></TR><TR> | |
<TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'artifact'</span></span>, is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ship'</span></span></span>, is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'artifact'</span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ship'</span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 399</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 75</TD><TD></TD><TD>Source file "./carriers/canada_post.py"<BR>The first line is 109</TD></TR><TR> | |
<TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'artifact'</span></span></span>, is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'rate'</span></span></span>, is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'artifact'</span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'rate'</span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 400</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 75</TD><TD></TD><TD>Source file "./carriers/canada_post.py"<BR>The first line is 456</TD></TR><TR> | |
<TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);">'artifact'</span>, is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pickup'</span></span></span>, is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);">'artifact'</span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pickup'</span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 401</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 75</TD><TD></TD><TD>Source file "./carriers/canada_post.py"<BR>The first line is 201</TD></TR><TR> | |
<TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'artifact'</span></span>, is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ship'</span></span></span>, is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'artifact'</span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ship'</span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 402</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 75</TD><TD></TD><TD>Source file "./carriers/canada_post.py"<BR>The first line is 109</TD></TR><TR> | |
<TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'artifact'</span></span></span>, is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'rate'</span></span></span>, is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'artifact'</span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'rate'</span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 403</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 75</TD><TD></TD><TD>Source file "./carriers/canada_post.py"<BR>The first line is 532</TD></TR><TR> | |
<TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'artifact'</span></span></span></span>, is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);">'pickup'</span>, is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'artifact'</span></span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);">'pickup'</span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 404</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 75</TD><TD></TD><TD>Source file "./carriers/canada_post.py"<BR>The first line is 532</TD></TR><TR> | |
<TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'artifact'</span></span></span></span>, is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);">'pickup'</span>, is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'artifact'</span></span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);">'pickup'</span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 405</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 75</TD><TD></TD><TD>Source file "./carriers/canada_post.py"<BR>The first line is 384</TD></TR><TR> | |
<TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'artifact'</span></span></span></span></span>, is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);">'track'</span>, is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'artifact'</span></span></span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);">'track'</span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 406</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 75</TD><TD></TD><TD>Source file "./carriers/canada_post.py"<BR>The first line is 384</TD></TR><TR> | |
<TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'artifact'</span></span></span></span></span>, is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);">'track'</span>, is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'artifact'</span></span></span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);">'track'</span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 408</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 201</TD><TD></TD><TD>Source file "./carriers/canada_post.py"<BR>The first line is 532</TD></TR><TR> | |
<TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ship'</span></span></span></span>, is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pickup'</span></span>, is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ship'</span></span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pickup'</span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 409</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 109</TD><TD></TD><TD>Source file "./carriers/canada_post.py"<BR>The first line is 532</TD></TR><TR> | |
<TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'rate'</span></span></span></span>, is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pickup'</span></span></span>, is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'rate'</span></span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pickup'</span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 411</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 201</TD><TD></TD><TD>Source file "./carriers/canada_post.py"<BR>The first line is 532</TD></TR><TR> | |
<TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ship'</span></span></span></span>, is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pickup'</span></span>, is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ship'</span></span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pickup'</span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 412</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 109</TD><TD></TD><TD>Source file "./carriers/canada_post.py"<BR>The first line is 532</TD></TR><TR> | |
<TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'rate'</span></span></span></span>, is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pickup'</span></span></span>, is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'rate'</span></span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pickup'</span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 413</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 456</TD><TD></TD><TD>Source file "./carriers/canada_post.py"<BR>The first line is 384</TD></TR><TR> | |
<TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pickup'</span></span></span></span>, is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'track'</span></span>, is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pickup'</span></span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'track'</span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 414</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 201</TD><TD></TD><TD>Source file "./carriers/canada_post.py"<BR>The first line is 384</TD></TR><TR> | |
<TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ship'</span></span></span></span></span>, is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'track'</span></span></span>, is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ship'</span></span></span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'track'</span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 415</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 109</TD><TD></TD><TD>Source file "./carriers/canada_post.py"<BR>The first line is 384</TD></TR><TR> | |
<TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'rate'</span></span></span></span></span>, is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'track'</span></span></span></span>, is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'rate'</span></span></span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'track'</span></span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 416</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 456</TD><TD></TD><TD>Source file "./carriers/canada_post.py"<BR>The first line is 384</TD></TR><TR> | |
<TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pickup'</span></span></span></span>, is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'track'</span></span>, is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pickup'</span></span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'track'</span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 417</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 201</TD><TD></TD><TD>Source file "./carriers/canada_post.py"<BR>The first line is 384</TD></TR><TR> | |
<TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ship'</span></span></span></span></span>, is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'track'</span></span></span>, is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'ship'</span></span></span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'track'</span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 418</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 109</TD><TD></TD><TD>Source file "./carriers/canada_post.py"<BR>The first line is 384</TD></TR><TR> | |
<TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'rate'</span></span></span></span></span>, is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'track'</span></span></span></span>, is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'rate'</span></span></span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'track'</span></span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 419</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 532</TD><TD></TD><TD>Source file "./carriers/canada_post.py"<BR>The first line is 384</TD></TR><TR> | |
<TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pickup'</span></span></span></span>, is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'track'</span></span></span></span></span>, is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pickup'</span></span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'track'</span></span></span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 420</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/canada_post.py"<BR>The first line is 532</TD><TD></TD><TD>Source file "./carriers/canada_post.py"<BR>The first line is 384</TD></TR><TR> | |
<TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pickup'</span></span></span></span>, is_test)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
port_name = _get_port_name(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'track'</span></span></span></span></span>, is_test)</TD> | |
</TR> | |
<TR> | |
<TD> | |
history = zeep.HistoryPlugin()</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
history = zeep.HistoryPlugin()</TD> | |
</TR> | |
<TR> | |
<TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'pickup'</span></span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
client = zeep.Client(wsdl=_get_wsdl_file(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'track'</span></span></span></span></span>), plugins=[history], transport=zeep.Transport(operation_timeout=60), port_name=port_name, wsse=UsernameToken(auth['username'], auth['password']))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 421</B><BR>Distance between two fragments = 3 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./tests/main_test.py"<BR>The first line is 1773</TD><TD></TD><TD>Source file "./tests/main_test.py"<BR>The first line is 1760</TD></TR><TR> | |
<TD> | |
params = {'cancel': {'shipping_account': acc_id, 'carrier': 'ups', 'tracking_number': <span style="color: rgb(255, 0, 0);">'1Z12345E0392508488'</span>}}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
params = {'cancel': {'shipping_account': acc_id, 'carrier': 'ups', 'tracking_number': <span style="color: rgb(255, 0, 0);">'1Z12345E0390817264'</span>}}</TD> | |
</TR> | |
<TR> | |
<TD> | |
res = req_post(app, api_key, '/cancel', params)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
res = req_post(app, api_key, '/cancel', params)</TD> | |
</TR> | |
<TR> | |
<TD> | |
msg = res[<span style="color: rgb(255, 0, 0);">'error'</span>]['message']</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
msg = res[<span style="color: rgb(255, 0, 0);">'success'</span>]['message']</TD> | |
</TR> | |
<TR> | |
<TD> | |
assert msg == <span style="color: rgb(255, 0, 0);">'Time for voiding has expired.'</span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
assert msg == <span style="color: rgb(255, 0, 0);">'Shipment cancelled'</span></TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 422</B><BR>Distance between two fragments = 3 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./tests/main_test.py"<BR>The first line is 1773</TD><TD></TD><TD>Source file "./tests/main_test.py"<BR>The first line is 1760</TD></TR><TR> | |
<TD> | |
params = {'cancel': {'shipping_account': acc_id, 'carrier': 'ups', 'tracking_number': <span style="color: rgb(255, 0, 0);">'1Z12345E0392508488'</span>}}</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
params = {'cancel': {'shipping_account': acc_id, 'carrier': 'ups', 'tracking_number': <span style="color: rgb(255, 0, 0);">'1Z12345E0390817264'</span>}}</TD> | |
</TR> | |
<TR> | |
<TD> | |
res = req_post(app, api_key, '/cancel', params)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
res = req_post(app, api_key, '/cancel', params)</TD> | |
</TR> | |
<TR> | |
<TD> | |
msg = res[<span style="color: rgb(255, 0, 0);">'error'</span>]['message']</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
msg = res[<span style="color: rgb(255, 0, 0);">'success'</span>]['message']</TD> | |
</TR> | |
<TR> | |
<TD> | |
assert msg == <span style="color: rgb(255, 0, 0);">'Time for voiding has expired.'</span></TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
assert msg == <span style="color: rgb(255, 0, 0);">'Shipment cancelled'</span></TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 423</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./models.py"<BR>The first line is 216</TD><TD></TD><TD>Source file "./models.py"<BR>The first line is 191</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">packages</span>(self):<BR> | |
if self.queued:<BR> | |
try:<BR> | |
return json.loads(self.data())['shipment'].get(<span style="color: rgb(255, 0, 0);">'packages'</span>, None)<BR> | |
except TypeError:<BR> | |
return self.data()['shipment'].get(<span style="color: rgb(255, 0, 0);">'packages'</span>, None)<BR> | |
else:<BR> | |
return self.data()['shipment'].get(<span style="color: rgb(255, 0, 0);">'packages'</span>, None)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">recipient</span>(self):<BR> | |
if self.queued:<BR> | |
try:<BR> | |
return json.loads(self.data())['shipment'].get(<span style="color: rgb(255, 0, 0);">'recipient'</span>, None)<BR> | |
except TypeError:<BR> | |
return self.data()['shipment'].get(<span style="color: rgb(255, 0, 0);">'recipient'</span>, None)<BR> | |
else:<BR> | |
return self.data()['shipment'].get(<span style="color: rgb(255, 0, 0);">'recipient'</span>, None)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 424</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./models.py"<BR>The first line is 216</TD><TD></TD><TD>Source file "./models.py"<BR>The first line is 191</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">packages</span>(self):<BR> | |
if self.queued:<BR> | |
try:<BR> | |
return json.loads(self.data())['shipment'].get(<span style="color: rgb(255, 0, 0);">'packages'</span>, None)<BR> | |
except TypeError:<BR> | |
return self.data()['shipment'].get(<span style="color: rgb(255, 0, 0);">'packages'</span>, None)<BR> | |
else:<BR> | |
return self.data()['shipment'].get(<span style="color: rgb(255, 0, 0);">'packages'</span>, None)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">recipient</span>(self):<BR> | |
if self.queued:<BR> | |
try:<BR> | |
return json.loads(self.data())['shipment'].get(<span style="color: rgb(255, 0, 0);">'recipient'</span>, None)<BR> | |
except TypeError:<BR> | |
return self.data()['shipment'].get(<span style="color: rgb(255, 0, 0);">'recipient'</span>, None)<BR> | |
else:<BR> | |
return self.data()['shipment'].get(<span style="color: rgb(255, 0, 0);">'recipient'</span>, None)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 425</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/purolator.py"<BR>The first line is 530</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 854</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span></span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_check_for_errors</span></span></span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span>, carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=request, carrier_response=<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 426</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/purolator.py"<BR>The first line is 530</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 779</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span></span></span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_check_for_errors</span></span></span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span>, carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=request, carrier_response=<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 427</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/purolator.py"<BR>The first line is 530</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 854</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span></span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_check_for_errors</span></span></span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span>, carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=request, carrier_response=<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 428</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/purolator.py"<BR>The first line is 530</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 779</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span></span></span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_check_for_errors</span></span></span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span>, carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=request, carrier_response=<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 429</B><BR>Distance between two fragments = 3 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 155</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 510</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);">request_str</span>, carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_check_for_errors</span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);">request</span>, carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span></span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 430</B><BR>Distance between two fragments = 3 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 155</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 510</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_str</span></span>, carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_check_for_errors</span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);">request</span>, carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span></span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 431</B><BR>Distance between two fragments = 3 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 155</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 510</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span></span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);">request_str</span>, carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_check_for_errors</span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span>, carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span></span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 432</B><BR>Distance between two fragments = 3 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 155</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 510</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span></span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_str</span></span>, carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_check_for_errors</span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span>, carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span></span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 433</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 155</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 854</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_str</span></span></span>, carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);">request</span>, carrier_response=<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 434</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 155</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 779</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_str</span></span></span></span>, carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);">request</span>, carrier_response=<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 435</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 155</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 854</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_str</span></span></span></span></span>, carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);">request</span>, carrier_response=<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 436</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 155</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 779</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_str</span></span></span></span></span></span>, carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);">request</span>, carrier_response=<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 437</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 155</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 854</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_str</span></span></span>, carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span>, carrier_response=<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 438</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 155</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 779</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_str</span></span></span></span>, carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span>, carrier_response=<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 439</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 155</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 854</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_str</span></span></span></span></span>, carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span>, carrier_response=<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 440</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 155</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 779</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_str</span></span></span></span></span></span>, carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span>, carrier_response=<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 441</B><BR>Distance between two fragments = 3 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 206</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 510</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span></span></span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);">request_str</span>, carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_check_for_errors</span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span></span>, carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span></span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 442</B><BR>Distance between two fragments = 3 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 206</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 510</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span></span></span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_str</span></span>, carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_check_for_errors</span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span></span>, carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span></span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 443</B><BR>Distance between two fragments = 3 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 206</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 510</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span></span></span></span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);">request_str</span>, carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_check_for_errors</span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span></span></span>, carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span></span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 444</B><BR>Distance between two fragments = 3 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 206</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 510</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span></span></span></span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_str</span></span>, carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_check_for_errors</span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span></span></span>, carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span></span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 445</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 206</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 854</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_str</span></span></span>, carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span></span>, carrier_response=<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 446</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 206</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 779</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_str</span></span></span></span>, carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span></span>, carrier_response=<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 447</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 206</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 854</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_str</span></span></span></span></span>, carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span></span>, carrier_response=<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 448</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 206</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 779</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_str</span></span></span></span></span></span>, carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span></span>, carrier_response=<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 449</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 206</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 854</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_str</span></span></span>, carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span></span></span>, carrier_response=<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 450</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 206</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 779</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_str</span></span></span></span>, carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span></span></span>, carrier_response=<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 451</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 206</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 854</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_str</span></span></span></span></span>, carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span></span></span>, carrier_response=<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 452</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/dpd_france.py"<BR>The first line is 206</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 779</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_str</span></span></span></span></span></span>, carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span></span></span>, carrier_response=<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 453</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/purolator.py"<BR>The first line is 510</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 854</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span></span></span></span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_check_for_errors</span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span></span></span>, carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span></span></span>, carrier_response=<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 454</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/purolator.py"<BR>The first line is 510</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 779</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span></span></span></span></span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_check_for_errors</span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span></span></span>, carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span></span></span>, carrier_response=<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 455</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/purolator.py"<BR>The first line is 510</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 854</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span></span></span></span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_check_for_errors</span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span></span></span>, carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span></span></span>, carrier_response=<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 456</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/purolator.py"<BR>The first line is 510</TD><TD></TD><TD>Source file "./carriers/purolator.py"<BR>The first line is 779</TD></TR><TR> | |
<TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">xml_str</span></span></span></span></span></span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
xml = parse_carrier_xml(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span>)</TD> | |
</TR> | |
<TR> | |
<TD> | |
try:<BR> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_check_for_errors</span></span>(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span></span></span>, carrier_response=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">result.content</span></span></span>)</TD> | |
<TD style="width: 10px;" BGCOLOR=AQUA> </TD><TD> | |
try:<BR> | |
_check_for_errors(xml)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request</span></span></span></span>, carrier_response=<span style="color: rgb(255, 0, 0);">result.content</span>)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 457</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./account.py"<BR>The first line is 66</TD><TD></TD><TD>Source file "./account.py"<BR>The first line is 186</TD></TR><TR> | |
<TD> | |
form = forms.<span style="color: rgb(255, 0, 0);">SignupForm</span>(self.request.POST)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
form = forms.<span style="color: rgb(255, 0, 0);">LoginForm</span>(self.request.POST)</TD> | |
</TR> | |
<TR> | |
<TD> | |
if not form.validate():<BR> | |
logging_info(form.errors)<BR> | |
for fieldName, errorMessages in form.errors.iteritems():<BR> | |
logging_info(errorMessages)<BR> | |
self.context['form'] = form<BR> | |
self.context['error_msgs'].append(errorMessages[0])<BR> | |
return self.render(<span style="color: rgb(255, 0, 0);">'account/signup.html'</span>, form=form)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if not form.validate():<BR> | |
logging_info(form.errors)<BR> | |
for fieldName, errorMessages in form.errors.iteritems():<BR> | |
logging_info(errorMessages)<BR> | |
self.context['form'] = form<BR> | |
self.context['error_msgs'].append(errorMessages[0])<BR> | |
return self.render(<span style="color: rgb(255, 0, 0);">'account/login.html'</span>, form=form)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 458</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./account.py"<BR>The first line is 66</TD><TD></TD><TD>Source file "./account.py"<BR>The first line is 186</TD></TR><TR> | |
<TD> | |
form = forms.<span style="color: rgb(255, 0, 0);">SignupForm</span>(self.request.POST)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
form = forms.<span style="color: rgb(255, 0, 0);">LoginForm</span>(self.request.POST)</TD> | |
</TR> | |
<TR> | |
<TD> | |
if not form.validate():<BR> | |
logging_info(form.errors)<BR> | |
for fieldName, errorMessages in form.errors.iteritems():<BR> | |
logging_info(errorMessages)<BR> | |
self.context['form'] = form<BR> | |
self.context['error_msgs'].append(errorMessages[0])<BR> | |
return self.render(<span style="color: rgb(255, 0, 0);">'account/signup.html'</span>, form=form)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if not form.validate():<BR> | |
logging_info(form.errors)<BR> | |
for fieldName, errorMessages in form.errors.iteritems():<BR> | |
logging_info(errorMessages)<BR> | |
self.context['form'] = form<BR> | |
self.context['error_msgs'].append(errorMessages[0])<BR> | |
return self.render(<span style="color: rgb(255, 0, 0);">'account/login.html'</span>, form=form)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 459</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./zeep/xsd/types/builtins.py"<BR>The first line is 249</TD><TD></TD><TD>Source file "./zeep/xsd/types/builtins.py"<BR>The first line is 199</TD></TR><TR> | |
<TD> | |
def pythonvalue(self, value):<BR> | |
match = self._pattern.match(value)<BR> | |
if not match:<BR> | |
raise ParseError()<BR> | |
group = match.groupdict()<BR> | |
return (int(group[<span style="color: rgb(255, 0, 0);">'month'</span>]), int(group[<span style="color: rgb(255, 0, 0);">'day'</span>]), _parse_timezone(group['timezone']))</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def pythonvalue(self, value):<BR> | |
match = self._pattern.match(value)<BR> | |
if not match:<BR> | |
raise ParseError()<BR> | |
group = match.groupdict()<BR> | |
return (int(group[<span style="color: rgb(255, 0, 0);">'year'</span>]), int(group[<span style="color: rgb(255, 0, 0);">'month'</span>]), _parse_timezone(group['timezone']))</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 460</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/australia_post.py"<BR>The first line is 384</TD><TD></TD><TD>Source file "./carriers/australia_post.py"<BR>The first line is 232</TD></TR><TR> | |
<TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">label_req</span></span>), carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_body</span></span>), carrier_response=result.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">label_resp</span></span> = result.json()</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">rate_result</span> = result.json()</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 461</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/australia_post.py"<BR>The first line is 384</TD><TD></TD><TD>Source file "./carriers/australia_post.py"<BR>The first line is 156</TD></TR><TR> | |
<TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">label_req</span></span></span>), carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_carrier_request</span></span>), carrier_response=result.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">label_resp</span></span></span> = result.json()</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">rate_result</span> = result.json()</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 462</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/australia_post.py"<BR>The first line is 332</TD><TD></TD><TD>Source file "./carriers/australia_post.py"<BR>The first line is 232</TD></TR><TR> | |
<TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">req</span></span>), carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_body</span></span></span>), carrier_response=result.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_resp</span></span> = result.json()</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_result</span></span> = result.json()</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 463</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/australia_post.py"<BR>The first line is 332</TD><TD></TD><TD>Source file "./carriers/australia_post.py"<BR>The first line is 156</TD></TR><TR> | |
<TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">req</span></span></span>), carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_carrier_request</span></span></span>), carrier_response=result.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_resp</span></span></span> = result.json()</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_result</span></span> = result.json()</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 464</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/australia_post.py"<BR>The first line is 384</TD><TD></TD><TD>Source file "./carriers/australia_post.py"<BR>The first line is 232</TD></TR><TR> | |
<TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">label_req</span></span>), carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_body</span></span>), carrier_response=result.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">label_resp</span></span> = result.json()</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">rate_result</span> = result.json()</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 465</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/australia_post.py"<BR>The first line is 384</TD><TD></TD><TD>Source file "./carriers/australia_post.py"<BR>The first line is 156</TD></TR><TR> | |
<TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">label_req</span></span></span>), carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_carrier_request</span></span>), carrier_response=result.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">label_resp</span></span></span> = result.json()</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">rate_result</span> = result.json()</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 466</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/australia_post.py"<BR>The first line is 332</TD><TD></TD><TD>Source file "./carriers/australia_post.py"<BR>The first line is 232</TD></TR><TR> | |
<TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">req</span></span>), carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_body</span></span></span>), carrier_response=result.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_resp</span></span> = result.json()</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_result</span></span> = result.json()</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 467</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/australia_post.py"<BR>The first line is 332</TD><TD></TD><TD>Source file "./carriers/australia_post.py"<BR>The first line is 156</TD></TR><TR> | |
<TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">req</span></span></span>), carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_carrier_request</span></span></span>), carrier_response=result.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_resp</span></span></span> = result.json()</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_result</span></span> = result.json()</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 468</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/australia_post.py"<BR>The first line is 384</TD><TD></TD><TD>Source file "./carriers/australia_post.py"<BR>The first line is 440</TD></TR><TR> | |
<TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">label_req</span></span></span></span>), carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);">order_req</span>), carrier_response=result.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">label_resp</span></span></span></span> = result.json()</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">order_resp</span> = result.json()</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 469</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/australia_post.py"<BR>The first line is 332</TD><TD></TD><TD>Source file "./carriers/australia_post.py"<BR>The first line is 440</TD></TR><TR> | |
<TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">req</span></span></span></span>), carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">order_req</span></span>), carrier_response=result.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_resp</span></span></span></span> = result.json()</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">order_resp</span></span> = result.json()</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 470</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/australia_post.py"<BR>The first line is 384</TD><TD></TD><TD>Source file "./carriers/australia_post.py"<BR>The first line is 440</TD></TR><TR> | |
<TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">label_req</span></span></span></span>), carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);">order_req</span>), carrier_response=result.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">label_resp</span></span></span></span> = result.json()</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);">order_resp</span> = result.json()</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 471</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/australia_post.py"<BR>The first line is 332</TD><TD></TD><TD>Source file "./carriers/australia_post.py"<BR>The first line is 440</TD></TR><TR> | |
<TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">req</span></span></span></span>), carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">order_req</span></span>), carrier_response=result.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship_resp</span></span></span></span> = result.json()</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">order_resp</span></span> = result.json()</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 472</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/australia_post.py"<BR>The first line is 232</TD><TD></TD><TD>Source file "./carriers/australia_post.py"<BR>The first line is 440</TD></TR><TR> | |
<TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_body</span></span></span></span>), carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">order_req</span></span></span>), carrier_response=result.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_result</span></span></span> = result.json()</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">order_resp</span></span></span> = result.json()</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 473</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/australia_post.py"<BR>The first line is 156</TD><TD></TD><TD>Source file "./carriers/australia_post.py"<BR>The first line is 440</TD></TR><TR> | |
<TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_carrier_request</span></span></span></span>), carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">order_req</span></span></span></span>), carrier_response=result.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_result</span></span></span> = result.json()</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">order_resp</span></span></span></span> = result.json()</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 474</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/australia_post.py"<BR>The first line is 232</TD><TD></TD><TD>Source file "./carriers/australia_post.py"<BR>The first line is 440</TD></TR><TR> | |
<TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">request_body</span></span></span></span>), carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">order_req</span></span></span>), carrier_response=result.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_result</span></span></span> = result.json()</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">order_resp</span></span></span> = result.json()</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 475</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/australia_post.py"<BR>The first line is 156</TD><TD></TD><TD>Source file "./carriers/australia_post.py"<BR>The first line is 440</TD></TR><TR> | |
<TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">_carrier_request</span></span></span></span>), carrier_response=result.content)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
try:<BR> | |
_validate_api_response(result)<BR> | |
except ApiException, e:<BR> | |
raise CarrierException(message=e.message, carrier_request=json.dumps(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">order_req</span></span></span></span>), carrier_response=result.content)</TD> | |
</TR> | |
<TR> | |
<TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate_result</span></span></span> = result.json()</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">order_resp</span></span></span></span> = result.json()</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 476</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 41</TD><TD></TD><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 36</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">rate</span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">address_validation</span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">ship</span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate</span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">cancel</span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">track</span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 477</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 41</TD><TD></TD><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 36</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate</span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">address_validation</span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">rate</span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">ship</span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">cancel</span>(obj):<BR> | |
pass</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 478</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 41</TD><TD></TD><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 36</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate</span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">address_validation</span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate</span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">track</span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 479</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 41</TD><TD></TD><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 36</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate</span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">address_validation</span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate</span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 480</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 51</TD><TD></TD><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 36</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">address_validation</span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate</span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">pickup</span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 481</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 51</TD><TD></TD><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 36</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">address_validation</span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate</span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 482</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 51</TD><TD></TD><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 36</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">address_validation</span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate</span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">pickup</span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 483</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 51</TD><TD></TD><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 36</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">address_validation</span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate</span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 484</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 57</TD><TD></TD><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 36</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">address_validation</span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate</span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">pickup_cancel</span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 485</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 57</TD><TD></TD><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 36</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">address_validation</span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate</span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup_cancel</span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 486</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 57</TD><TD></TD><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 36</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">address_validation</span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate</span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span></span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">pickup_cancel</span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span></span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 487</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 57</TD><TD></TD><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 36</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">address_validation</span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate</span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span></span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup_cancel</span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span></span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 488</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 63</TD><TD></TD><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 36</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">address_validation</span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate</span></span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup_cancel</span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span></span></span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">pickup_status</span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span></span></span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 489</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 63</TD><TD></TD><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 36</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">address_validation</span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate</span></span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup_cancel</span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span></span></span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup_status</span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span></span></span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 490</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 63</TD><TD></TD><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 36</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">address_validation</span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate</span></span></span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup_cancel</span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span></span></span></span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">pickup_status</span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span></span></span></span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 491</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 63</TD><TD></TD><TD>Source file "./carriers/carrier_template.py"<BR>The first line is 36</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">track</span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">address_validation</span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate</span></span></span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup_cancel</span></span></span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span></span></span></span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup_status</span></span>(obj):<BR> | |
pass</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span></span></span></span></span></span></span></span></span></span></span></span></span>(obj):<BR> | |
pass</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 494</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./blowfish.py"<BR>The first line is 135</TD><TD></TD><TD>Source file "./blowfish.py"<BR>The first line is 122</TD></TR><TR> | |
<TD> | |
for i in xrange(0, <span style="color: rgb(255, 0, 0);">(4) * (256)</span>, 2):<BR> | |
d, j = stream2word(data, j)<BR> | |
None<BR> | |
datal ^= d<BR> | |
d, j = stream2word(data, j)<BR> | |
None<BR> | |
datar ^= d<BR> | |
datal, datar = encipher(ctx, datal, datar)<BR> | |
None<BR> | |
<span style="color: rgb(255, 0, 0);">s</span>[(i) + (0)] = datal<BR> | |
<span style="color: rgb(255, 0, 0);">s</span>[(i) + (1)] = datar</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
for i in xrange(0, <span style="color: rgb(255, 0, 0);">(BLF_N) + (2L)</span>, 2):<BR> | |
d, j = stream2word(data, j)<BR> | |
None<BR> | |
datal ^= d<BR> | |
d, j = stream2word(data, j)<BR> | |
None<BR> | |
datar ^= d<BR> | |
datal, datar = encipher(ctx, datal, datar)<BR> | |
None<BR> | |
<span style="color: rgb(255, 0, 0);">p</span>[(i) + (0)] = datal<BR> | |
<span style="color: rgb(255, 0, 0);">p</span>[(i) + (1)] = datar</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 495</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./blowfish.py"<BR>The first line is 135</TD><TD></TD><TD>Source file "./blowfish.py"<BR>The first line is 122</TD></TR><TR> | |
<TD> | |
for i in xrange(0, <span style="color: rgb(255, 0, 0);">(4) * (256)</span>, 2):<BR> | |
d, j = stream2word(data, j)<BR> | |
None<BR> | |
datal ^= d<BR> | |
d, j = stream2word(data, j)<BR> | |
None<BR> | |
datar ^= d<BR> | |
datal, datar = encipher(ctx, datal, datar)<BR> | |
None<BR> | |
<span style="color: rgb(255, 0, 0);">s</span>[(i) + (0)] = datal<BR> | |
<span style="color: rgb(255, 0, 0);">s</span>[(i) + (1)] = datar</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
for i in xrange(0, <span style="color: rgb(255, 0, 0);">(BLF_N) + (2L)</span>, 2):<BR> | |
d, j = stream2word(data, j)<BR> | |
None<BR> | |
datal ^= d<BR> | |
d, j = stream2word(data, j)<BR> | |
None<BR> | |
datar ^= d<BR> | |
datal, datar = encipher(ctx, datal, datar)<BR> | |
None<BR> | |
<span style="color: rgb(255, 0, 0);">p</span>[(i) + (0)] = datal<BR> | |
<span style="color: rgb(255, 0, 0);">p</span>[(i) + (1)] = datar</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 496</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1385</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1236</TD></TR><TR> | |
<TD> | |
if <span style="color: rgb(255, 0, 0);">resp</span>.HighestSeverity == 'ERROR':<BR> | |
raise CarrierException(, **{'message': ('Fedex Freight API: ') + (<span style="color: rgb(255, 0, 0);">resp</span>.Notifications[0].Message), 'carrier_request': etree_to_pretty_string(history.last_sent['envelope']), 'carrier_response': etree_to_pretty_string(history.last_received['envelope'])})</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if <span style="color: rgb(255, 0, 0);">pickup_response</span>.HighestSeverity == 'ERROR':<BR> | |
raise CarrierException(, **{'message': ('Fedex Freight API: ') + (<span style="color: rgb(255, 0, 0);">pickup_response</span>.Notifications[0].Message), 'carrier_request': etree_to_pretty_string(history.last_sent['envelope']), 'carrier_response': etree_to_pretty_string(history.last_received['envelope'])})</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 497</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1385</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1236</TD></TR><TR> | |
<TD> | |
if <span style="color: rgb(255, 0, 0);">resp</span>.HighestSeverity == 'ERROR':<BR> | |
raise CarrierException(, **{'message': ('Fedex Freight API: ') + (<span style="color: rgb(255, 0, 0);">resp</span>.Notifications[0].Message), 'carrier_request': etree_to_pretty_string(history.last_sent['envelope']), 'carrier_response': etree_to_pretty_string(history.last_received['envelope'])})</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if <span style="color: rgb(255, 0, 0);">pickup_response</span>.HighestSeverity == 'ERROR':<BR> | |
raise CarrierException(, **{'message': ('Fedex Freight API: ') + (<span style="color: rgb(255, 0, 0);">pickup_response</span>.Notifications[0].Message), 'carrier_request': etree_to_pretty_string(history.last_sent['envelope']), 'carrier_response': etree_to_pretty_string(history.last_received['envelope'])})</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 498</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1385</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1315</TD></TR><TR> | |
<TD> | |
if <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">resp</span></span>.HighestSeverity == 'ERROR':<BR> | |
raise CarrierException(, **{'message': ('Fedex Freight API: ') + (<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">resp</span></span>.Notifications[0].Message), 'carrier_request': etree_to_pretty_string(history.last_sent['envelope']), 'carrier_response': etree_to_pretty_string(history.last_received['envelope'])})</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if <span style="color: rgb(255, 0, 0);">void_pickup</span>.HighestSeverity == 'ERROR':<BR> | |
raise CarrierException(, **{'message': ('Fedex Freight API: ') + (<span style="color: rgb(255, 0, 0);">void_pickup</span>.Notifications[0].Message), 'carrier_request': etree_to_pretty_string(history.last_sent['envelope']), 'carrier_response': etree_to_pretty_string(history.last_received['envelope'])})</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 499</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1385</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1315</TD></TR><TR> | |
<TD> | |
if <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">resp</span></span>.HighestSeverity == 'ERROR':<BR> | |
raise CarrierException(, **{'message': ('Fedex Freight API: ') + (<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">resp</span></span>.Notifications[0].Message), 'carrier_request': etree_to_pretty_string(history.last_sent['envelope']), 'carrier_response': etree_to_pretty_string(history.last_received['envelope'])})</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if <span style="color: rgb(255, 0, 0);">void_pickup</span>.HighestSeverity == 'ERROR':<BR> | |
raise CarrierException(, **{'message': ('Fedex Freight API: ') + (<span style="color: rgb(255, 0, 0);">void_pickup</span>.Notifications[0].Message), 'carrier_request': etree_to_pretty_string(history.last_sent['envelope']), 'carrier_response': etree_to_pretty_string(history.last_received['envelope'])})</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 500</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1236</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1315</TD></TR><TR> | |
<TD> | |
if <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup_response</span></span>.HighestSeverity == 'ERROR':<BR> | |
raise CarrierException(, **{'message': ('Fedex Freight API: ') + (<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup_response</span></span>.Notifications[0].Message), 'carrier_request': etree_to_pretty_string(history.last_sent['envelope']), 'carrier_response': etree_to_pretty_string(history.last_received['envelope'])})</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">void_pickup</span></span>.HighestSeverity == 'ERROR':<BR> | |
raise CarrierException(, **{'message': ('Fedex Freight API: ') + (<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">void_pickup</span></span>.Notifications[0].Message), 'carrier_request': etree_to_pretty_string(history.last_sent['envelope']), 'carrier_response': etree_to_pretty_string(history.last_received['envelope'])})</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 501</B><BR>Distance between two fragments = 1 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1236</TD><TD></TD><TD>Source file "./carriers/fedex_freight.py"<BR>The first line is 1315</TD></TR><TR> | |
<TD> | |
if <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup_response</span></span>.HighestSeverity == 'ERROR':<BR> | |
raise CarrierException(, **{'message': ('Fedex Freight API: ') + (<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup_response</span></span>.Notifications[0].Message), 'carrier_request': etree_to_pretty_string(history.last_sent['envelope']), 'carrier_response': etree_to_pretty_string(history.last_received['envelope'])})</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
if <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">void_pickup</span></span>.HighestSeverity == 'ERROR':<BR> | |
raise CarrierException(, **{'message': ('Fedex Freight API: ') + (<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">void_pickup</span></span>.Notifications[0].Message), 'carrier_request': etree_to_pretty_string(history.last_sent['envelope']), 'carrier_response': etree_to_pretty_string(history.last_received['envelope'])})</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 502</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./account.py"<BR>The first line is 1010</TD><TD></TD><TD>Source file "./account.py"<BR>The first line is 1003</TD></TR><TR> | |
<TD> | |
class <span style="color: rgb(255, 0, 0);">CarriersNew</span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);">'account/custom_carriers/new.html'</span>)<BR> | |
</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
class <span style="color: rgb(255, 0, 0);">Carriers</span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);">'account/custom_carriers/index.html'</span>)<BR> | |
</TD> | |
</TR> | |
<TR> | |
<TD> | |
class <span style="color: rgb(255, 0, 0);">CarriersDetail</span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);">'account/custom_carriers/detail.html'</span>)<BR> | |
</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CarriersNew</span></span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'account/custom_carriers/new.html'</span></span>)<BR> | |
</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 503</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./account.py"<BR>The first line is 1010</TD><TD></TD><TD>Source file "./account.py"<BR>The first line is 1003</TD></TR><TR> | |
<TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CarriersNew</span></span></span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'account/custom_carriers/new.html'</span></span></span>)<BR> | |
</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
class <span style="color: rgb(255, 0, 0);">Carriers</span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);">'account/custom_carriers/index.html'</span>)<BR> | |
</TD> | |
</TR> | |
<TR> | |
<TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CarriersDetail</span></span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'account/custom_carriers/detail.html'</span></span>)<BR> | |
</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
class <span style="color: rgb(255, 0, 0);">CarriersNew</span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);">'account/custom_carriers/new.html'</span>)<BR> | |
</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 504</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./account.py"<BR>The first line is 1010</TD><TD></TD><TD>Source file "./account.py"<BR>The first line is 1003</TD></TR><TR> | |
<TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CarriersNew</span></span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'account/custom_carriers/new.html'</span></span>)<BR> | |
</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Carriers</span></span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'account/custom_carriers/index.html'</span></span>)<BR> | |
</TD> | |
</TR> | |
<TR> | |
<TD> | |
class <span style="color: rgb(255, 0, 0);">CarriersDetail</span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);">'account/custom_carriers/detail.html'</span>)<BR> | |
</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CarriersNew</span></span></span></span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'account/custom_carriers/new.html'</span></span></span></span>)<BR> | |
</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 505</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./account.py"<BR>The first line is 1010</TD><TD></TD><TD>Source file "./account.py"<BR>The first line is 1003</TD></TR><TR> | |
<TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CarriersNew</span></span></span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'account/custom_carriers/new.html'</span></span></span>)<BR> | |
</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Carriers</span></span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'account/custom_carriers/index.html'</span></span>)<BR> | |
</TD> | |
</TR> | |
<TR> | |
<TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CarriersDetail</span></span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'account/custom_carriers/detail.html'</span></span>)<BR> | |
</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CarriersNew</span></span></span></span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'account/custom_carriers/new.html'</span></span></span></span>)<BR> | |
</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 506</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./account.py"<BR>The first line is 1017</TD><TD></TD><TD>Source file "./account.py"<BR>The first line is 1003</TD></TR><TR> | |
<TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CarriersDetail</span></span></span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'account/custom_carriers/detail.html'</span></span></span>)<BR> | |
</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Carriers</span></span></span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'account/custom_carriers/index.html'</span></span></span>)<BR> | |
</TD> | |
</TR> | |
<TR> | |
<TD> | |
class <span style="color: rgb(255, 0, 0);">CarriersComms</span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);">'account/custom_carriers/comms.html'</span>)<BR> | |
</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CarriersNew</span></span></span></span></span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'account/custom_carriers/new.html'</span></span></span></span></span>)<BR> | |
</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 507</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./account.py"<BR>The first line is 1017</TD><TD></TD><TD>Source file "./account.py"<BR>The first line is 1003</TD></TR><TR> | |
<TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CarriersDetail</span></span></span></span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'account/custom_carriers/detail.html'</span></span></span></span>)<BR> | |
</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Carriers</span></span></span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'account/custom_carriers/index.html'</span></span></span>)<BR> | |
</TD> | |
</TR> | |
<TR> | |
<TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CarriersComms</span></span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'account/custom_carriers/comms.html'</span></span>)<BR> | |
</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CarriersNew</span></span></span></span></span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'account/custom_carriers/new.html'</span></span></span></span></span>)<BR> | |
</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 508</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./account.py"<BR>The first line is 1017</TD><TD></TD><TD>Source file "./account.py"<BR>The first line is 1003</TD></TR><TR> | |
<TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CarriersDetail</span></span></span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'account/custom_carriers/detail.html'</span></span></span>)<BR> | |
</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Carriers</span></span></span></span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'account/custom_carriers/index.html'</span></span></span></span>)<BR> | |
</TD> | |
</TR> | |
<TR> | |
<TD> | |
class <span style="color: rgb(255, 0, 0);">CarriersComms</span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);">'account/custom_carriers/comms.html'</span>)<BR> | |
</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CarriersNew</span></span></span></span></span></span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'account/custom_carriers/new.html'</span></span></span></span></span></span>)<BR> | |
</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 509</B><BR>Distance between two fragments = 4 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./account.py"<BR>The first line is 1017</TD><TD></TD><TD>Source file "./account.py"<BR>The first line is 1003</TD></TR><TR> | |
<TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CarriersDetail</span></span></span></span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'account/custom_carriers/detail.html'</span></span></span></span>)<BR> | |
</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">Carriers</span></span></span></span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'account/custom_carriers/index.html'</span></span></span></span>)<BR> | |
</TD> | |
</TR> | |
<TR> | |
<TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CarriersComms</span></span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'account/custom_carriers/comms.html'</span></span>)<BR> | |
</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
class <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">CarriersNew</span></span></span></span></span></span>(ExtendedRequestHandler):<BR> | |
def get(self):<BR> | |
self.context['account'] = self.account<BR> | |
self.render(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'account/custom_carriers/new.html'</span></span></span></span></span></span>)<BR> | |
</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 512</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/posti_fi.py"<BR>The first line is 85</TD><TD></TD><TD>Source file "./carriers/posti_fi.py"<BR>The first line is 38</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">cancel</span>(is_test, req, auth):<BR> | |
raise ApiException('Posti.fi only supports tracking. Please contact [email protected] if you would like to request other services.', status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">rate</span>(is_test, req, auth):<BR> | |
raise ApiException('Posti.fi only supports tracking. Please contact [email protected] if you would like to request other services.', status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">pickup</span>(is_test, req, auth):<BR> | |
raise ApiException('Posti.fi only supports tracking. Please contact [email protected] if you would like to request other services.', status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">ship</span>(is_test, req, auth):<BR> | |
raise ApiException('Posti.fi only supports tracking. Please contact [email protected] if you would like to request other services.', status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 513</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/posti_fi.py"<BR>The first line is 85</TD><TD></TD><TD>Source file "./carriers/posti_fi.py"<BR>The first line is 38</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span>(is_test, req, auth):<BR> | |
raise ApiException('Posti.fi only supports tracking. Please contact [email protected] if you would like to request other services.', status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">rate</span>(is_test, req, auth):<BR> | |
raise ApiException('Posti.fi only supports tracking. Please contact [email protected] if you would like to request other services.', status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span>(is_test, req, auth):<BR> | |
raise ApiException('Posti.fi only supports tracking. Please contact [email protected] if you would like to request other services.', status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">ship</span>(is_test, req, auth):<BR> | |
raise ApiException('Posti.fi only supports tracking. Please contact [email protected] if you would like to request other services.', status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 514</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/posti_fi.py"<BR>The first line is 85</TD><TD></TD><TD>Source file "./carriers/posti_fi.py"<BR>The first line is 38</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">cancel</span>(is_test, req, auth):<BR> | |
raise ApiException('Posti.fi only supports tracking. Please contact [email protected] if you would like to request other services.', status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate</span></span>(is_test, req, auth):<BR> | |
raise ApiException('Posti.fi only supports tracking. Please contact [email protected] if you would like to request other services.', status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);">pickup</span>(is_test, req, auth):<BR> | |
raise ApiException('Posti.fi only supports tracking. Please contact [email protected] if you would like to request other services.', status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span>(is_test, req, auth):<BR> | |
raise ApiException('Posti.fi only supports tracking. Please contact [email protected] if you would like to request other services.', status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 515</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/posti_fi.py"<BR>The first line is 85</TD><TD></TD><TD>Source file "./carriers/posti_fi.py"<BR>The first line is 38</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span>(is_test, req, auth):<BR> | |
raise ApiException('Posti.fi only supports tracking. Please contact [email protected] if you would like to request other services.', status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate</span></span>(is_test, req, auth):<BR> | |
raise ApiException('Posti.fi only supports tracking. Please contact [email protected] if you would like to request other services.', status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span>(is_test, req, auth):<BR> | |
raise ApiException('Posti.fi only supports tracking. Please contact [email protected] if you would like to request other services.', status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span>(is_test, req, auth):<BR> | |
raise ApiException('Posti.fi only supports tracking. Please contact [email protected] if you would like to request other services.', status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 516</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/posti_fi.py"<BR>The first line is 85</TD><TD></TD><TD>Source file "./carriers/sf_express.py"<BR>The first line is 408</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'Posti.fi only supports tracking. Please contact [email protected] if you would like to request other services.'</span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for SF Express. You must call SF Express to cancel and/or update a previously scheduled shipment.'</span>, status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'Posti.fi only supports tracking. Please contact [email protected] if you would like to request other services.'</span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">rate</span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for SF Express. You must call SF Express to cancel and/or update a previously scheduled shipment.'</span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 517</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/posti_fi.py"<BR>The first line is 85</TD><TD></TD><TD>Source file "./carriers/sf_express.py"<BR>The first line is 408</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Posti.fi only supports tracking. Please contact [email protected] if you would like to request other services.'</span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for SF Express. You must call SF Express to cancel and/or update a previously scheduled shipment.'</span>, status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Posti.fi only supports tracking. Please contact [email protected] if you would like to request other services.'</span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">rate</span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for SF Express. You must call SF Express to cancel and/or update a previously scheduled shipment.'</span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 518</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/posti_fi.py"<BR>The first line is 85</TD><TD></TD><TD>Source file "./carriers/sf_express.py"<BR>The first line is 408</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'Posti.fi only supports tracking. Please contact [email protected] if you would like to request other services.'</span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for SF Express. You must call SF Express to cancel and/or update a previously scheduled shipment.'</span></span>, status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'Posti.fi only supports tracking. Please contact [email protected] if you would like to request other services.'</span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate</span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for SF Express. You must call SF Express to cancel and/or update a previously scheduled shipment.'</span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 519</B><BR>Distance between two fragments = 2 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/posti_fi.py"<BR>The first line is 85</TD><TD></TD><TD>Source file "./carriers/sf_express.py"<BR>The first line is 408</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">cancel</span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Posti.fi only supports tracking. Please contact [email protected] if you would like to request other services.'</span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def cancel(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for SF Express. You must call SF Express to cancel and/or update a previously scheduled shipment.'</span></span>, status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">pickup</span></span></span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Posti.fi only supports tracking. Please contact [email protected] if you would like to request other services.'</span></span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate</span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for SF Express. You must call SF Express to cancel and/or update a previously scheduled shipment.'</span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 520</B><BR>Distance between two fragments = 3 <BR>Clone size = 8<TABLE NOWRAP WIDTH=100% BORDER=1><TD>Source file "./carriers/posti_fi.py"<BR>The first line is 38</TD><TD></TD><TD>Source file "./carriers/sf_express.py"<BR>The first line is 408</TD></TR><TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate</span></span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'Posti.fi only supports tracking. Please contact [email protected] if you would like to request other services.'</span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);">cancel</span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for SF Express. You must call SF Express to cancel and/or update a previously scheduled shipment.'</span></span></span>, status_code=400)</TD> | |
</TR> | |
<TR> | |
<TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">ship</span></span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);">'Posti.fi only supports tracking. Please contact [email protected] if you would like to request other services.'</span>, status_code=400)</TD> | |
<TD style="width: 10px;" BGCOLOR=RED> </TD><TD> | |
def <span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">rate</span></span></span>(is_test, req, auth):<BR> | |
raise ApiException(<span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);"><span style="color: rgb(255, 0, 0);">'Canceling a shipment is not supported for SF Express. You must call SF Express to cancel and/or update a previously scheduled shipment.'</span></span></span>, status_code=400)</TD> | |
</TR> | |
</TABLE> </P> <HR><BR> | |
<P><B>Clone # 521</B><BR>Distance between two fragments = 3 <BR>Clone size = 8<TABLE NOWRAP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment