MCPcopy
hub / github.com/serverless/examples / save

Method save

aws-python-pynamodb-s3-sigurl/asset/asset_model.py:45–52  ·  view source on GitHub ↗
(self, conditional_operator=None, **expected_values)

Source from the content-addressed store, hash-verified

43 return u'{}/{}'.format(KEY_BASE, self.asset_id)
44
45 def save(self, conditional_operator=None, **expected_values):
46 try:
47 self.updatedAt = datetime.now().astimezone()
48 logger.debug('saving: {}'.format(self))
49 super(AssetModel, self).save()
50 except Exception as e:
51 logger.error('save {} failed: {}'.format(self.asset_id, e), exc_info=True)
52 raise e
53
54 def __iter__(self):
55 for name, attr in self._get_attributes().items():

Callers 6

createFunction · 0.95
mark_receivedMethod · 0.95
mark_uploadedMethod · 0.95
mark_deletedMethod · 0.95
handler.jsFile · 0.45
handler.jsFile · 0.45

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected