233a089604121931a7f9e8b3861ca4b691cc555d,descarteslabs/catalog/image_upload.py,ImageUpload,reload,#ImageUpload#,248
Before Change
)
)
try:
data, related_objects = self._send_data(
id=self.id, method=HttpRequestMethod.GET, client=self._client
)
except NotFoundError:
// with tasks-based ingest, jobs are unknown until completed
if self.status == ImageUploadStatus.PENDING:
self._clear_modified_attributes()
return
raise
self._initialize(
id=data["id"],
saved=True,
relationships=data.get("relationships"),
After Change
oldstatus = self.status
super(ImageUpload, self).reload()
if self.status == ImageUploadStatus.SUCCESS and oldstatus != self.status:
// image is not in a saved state, so doctor it up
self.image._saved = True
self.image._clear_modified_attributes()
self.image.reload()
@check_deleted
def cancel(self):
Cancel the upload if it is not yet completed.
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 9
Instances
Project Name: descarteslabs/descarteslabs-python
Commit Name: 233a089604121931a7f9e8b3861ca4b691cc555d
Time: 2020-01-17
Author: stephen@descarteslabs.com
File Name: descarteslabs/catalog/image_upload.py
Class Name: ImageUpload
Method Name: reload
Project Name: home-assistant/home-assistant
Commit Name: ced3cd2616332af50bf9a8a4a7241aae017c34e8
Time: 2017-03-16
Author: mezz@johnmihalic.com
File Name: homeassistant/components/sensor/neurio_energy.py
Class Name: NeurioEnergy
Method Name: update
Project Name: tensorflow/transform
Commit Name: 5b2fa49f9ee24bd079ab0c8d5373a3bfcfcc60b4
Time: 2017-03-07
Author: no-reply@google.com
File Name: tensorflow_transform/beam/impl.py
Class Name: _RunMetaGraphDoFn
Method Name: process
Project Name: dickreuter/Poker
Commit Name: 34aa81447b74b182fcfc419ba02e7e1cbed95292
Time: 2019-12-23
Author: 47919514+MikePlace1971@users.noreply.github.com
File Name: poker/table_analysers/table_screen_based.py
Class Name: TableScreenBased
Method Name: get_total_pot_value