velocity-python 0.9.7__py3-none-any.whl → 0.9.8__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
velocity/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = version = "0.9.7"
1
+ __version__ = version = "0.9.8"
2
2
 
3
3
  import importlib as _importlib
4
4
 
@@ -346,7 +346,11 @@ class LambdaHandler(BaseHandler):
346
346
  return dict(user) if user else None
347
347
 
348
348
  def afterAction(self, tx, context):
349
- self._enhanced_after_action(tx, context)
349
+ # As in beforeAction: a bare LambdaHandler (an SNS or scheduled
350
+ # handler, no WebHandler) has no activity tracking to finish.
351
+ enhanced = getattr(self, "_enhanced_after_action", None)
352
+ if callable(enhanced):
353
+ enhanced(tx, context)
350
354
  logger.debug("starting LamdaHandler.afterAction")
351
355
 
352
356
  self.end = time.time()
@@ -359,7 +363,9 @@ class LambdaHandler(BaseHandler):
359
363
  )
360
364
 
361
365
  def onError(self, tx, context, exc, tb):
362
- self._enhanced_error_handler(tx, context, exc, tb)
366
+ enhanced = getattr(self, "_enhanced_error_handler", None)
367
+ if callable(enhanced):
368
+ enhanced(tx, context, exc, tb)
363
369
  logger.debug("starting LamdaHandler.aws_api_activity")
364
370
  request_id = getattr(self.aws_context, "aws_request_id", None)
365
371
  logger.error(
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: velocity-python
3
- Version: 0.9.7
3
+ Version: 0.9.8
4
4
  Summary: A rapid application development library for interfacing with data storage
5
5
  Author-email: Velocity Team <info@codeclubs.org>
6
6
  License-Expression: MIT
@@ -1,4 +1,4 @@
1
- velocity/__init__.py,sha256=kTCmpCw1w9AUZdrpHaN5IHMp0fERI3q6A0cqV7E5bho,362
1
+ velocity/__init__.py,sha256=OFuGvZsnpALA_6WspdUaTXowNTQJQ5jD082tdlGgcV0,362
2
2
  velocity/cache.py,sha256=pthvw7gDVEXRzkTcQtA5YVf4Q1IxAamWsba4UReT0RE,8933
3
3
  velocity/hooks.py,sha256=jY_qtAapNHvptmryFSD-Zc7RvLhV6e5nJEH3x2xTgCw,20575
4
4
  velocity/logging.py,sha256=MAsZap1cDSdOBNRc_9ezQxup5dHOS0ARxU9NI_-UK3E,4037
@@ -56,7 +56,7 @@ velocity/aws/handlers/base_handler.py,sha256=1A_EO_71clM3-h-hAIUJxs_2LL7w3kkwj9N
56
56
  velocity/aws/handlers/context.py,sha256=Yrq-vtl2-0WeoTaFVMuKOQRM2Cnyq21rNvVtUvGjxx0,61416
57
57
  velocity/aws/handlers/context_factory.py,sha256=8rhYKrylzwQxBFqBckmF7jgWGZhfomLOT_Yu404CtJQ,784
58
58
  velocity/aws/handlers/exceptions.py,sha256=J-4VkiKASE-z2X-sr5EUq7FWv3x7fzR7Yl536G5VeZc,5026
59
- velocity/aws/handlers/lambda_handler.py,sha256=CR9PrFHPpXlvIXPf_GrTXFaF5Ih0Es2DTU_qlYj1Zkk,21842
59
+ velocity/aws/handlers/lambda_handler.py,sha256=yphzgJ6w7tCCvdvwKZCHMaDQhvM3XVeURxeBjdPIpe4,22146
60
60
  velocity/aws/handlers/masquerade.py,sha256=ZMXGGB-w7pXRV8Fq0qBmJOL1Eq55hXP3Rq3dWjJk6Ck,5157
61
61
  velocity/aws/handlers/perf.py,sha256=zLAcr_IrvpnZS1zzzXi-YhopRgCv3OeetQgOx_S43Xw,1421
62
62
  velocity/aws/handlers/response.py,sha256=Xi5mzBPiYC-VVS3qFyCgfuV3YyuGuhS1O54QGI7jGHs,17201
@@ -258,9 +258,9 @@ velocity/workflow/points.py,sha256=g_vQ3cdHdx_JloVCS5dVjo_jJoSolO92K5p3suDzxlE,1
258
258
  velocity/workflow/schema.py,sha256=1ZAkGZ_4YrTAfY6TIPCviWQJGLhhmAJmkxisfLyy2og,21597
259
259
  velocity/workflow/traveler.py,sha256=Ik1InoEo69sZB1wVV-UinVo4P0P5QlcV_hh858p3OWE,20562
260
260
  velocity/workflow/views.py,sha256=oTPjpuheND8y4VbcTY8c-4fMdSHKb0jgGzXMuT_G7_s,32175
261
- velocity_python-0.9.7.dist-info/licenses/LICENSE,sha256=aoN245GG8s9oRUU89KNiGTU4_4OtnNmVi4hQeChg6rM,1076
262
- velocity_python-0.9.7.dist-info/METADATA,sha256=5u_tu_AiOlo9AhP7VATvnW_A_SZqMsA2N8-ozFbftsI,17789
263
- velocity_python-0.9.7.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
264
- velocity_python-0.9.7.dist-info/entry_points.txt,sha256=nXUKJHkOGQCSPoagdmMNd_qycrle1LVU-GhYknLGM1M,56
265
- velocity_python-0.9.7.dist-info/top_level.txt,sha256=JW2vJPmodgdgSz7H6yoZvnxF8S3fTMIv-YJWCT1sNW0,9
266
- velocity_python-0.9.7.dist-info/RECORD,,
261
+ velocity_python-0.9.8.dist-info/licenses/LICENSE,sha256=aoN245GG8s9oRUU89KNiGTU4_4OtnNmVi4hQeChg6rM,1076
262
+ velocity_python-0.9.8.dist-info/METADATA,sha256=4P1FjdNqhoGJEqQu2wASITJP9MYMBUtdUZnAXPrjSmI,17789
263
+ velocity_python-0.9.8.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
264
+ velocity_python-0.9.8.dist-info/entry_points.txt,sha256=nXUKJHkOGQCSPoagdmMNd_qycrle1LVU-GhYknLGM1M,56
265
+ velocity_python-0.9.8.dist-info/top_level.txt,sha256=JW2vJPmodgdgSz7H6yoZvnxF8S3fTMIv-YJWCT1sNW0,9
266
+ velocity_python-0.9.8.dist-info/RECORD,,