appier 1.33.0__py2.py3-none-any.whl → 1.33.2__py2.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.
appier/base.py CHANGED
@@ -94,7 +94,7 @@ NAME = "appier"
94
94
  """ The name to be used to describe the framework while working
95
95
  on its own environment, this is just a descriptive value """
96
96
 
97
- VERSION = "1.33.0"
97
+ VERSION = "1.33.2"
98
98
  """ The version of the framework that is currently installed
99
99
  this value may be used for debugging/diagnostic purposes """
100
100
 
@@ -2378,6 +2378,8 @@ class App(
2378
2378
  headers={},
2379
2379
  attachments=[],
2380
2380
  renderer=None,
2381
+ html=None,
2382
+ plain=None,
2381
2383
  html_handler=None,
2382
2384
  plain_handler=None,
2383
2385
  **kwargs
@@ -2452,13 +2454,16 @@ class App(
2452
2454
  subject=subject,
2453
2455
  )
2454
2456
 
2455
- html = renderer(template, detached=True, **parameters)
2456
- if plain_template:
2457
- plain = renderer(plain_template, detached=True, **parameters)
2458
- elif convert:
2459
- plain = util.html_to_text(html)
2460
- else:
2461
- plain = legacy.UNICODE("Email rendered using HTML")
2457
+ if html == None:
2458
+ html = renderer(template, detached=True, **parameters)
2459
+
2460
+ if plain == None:
2461
+ if plain_template:
2462
+ plain = renderer(plain_template, detached=True, **parameters)
2463
+ elif convert:
2464
+ plain = util.html_to_text(html)
2465
+ else:
2466
+ plain = legacy.UNICODE("Email rendered using HTML")
2462
2467
 
2463
2468
  if html_handler:
2464
2469
  html = html_handler(html)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: appier
3
- Version: 1.33.0
3
+ Version: 1.33.2
4
4
  Summary: Appier Framework
5
5
  Home-page: http://appier.hive.pt
6
6
  Author: Hive Solutions Lda.
@@ -5,7 +5,7 @@ appier/asgi.py,sha256=sKQH9K_QEDPbBSk3AWcvHo7Lfl5yawIo6NcM0z1qQCw,12100
5
5
  appier/async_neo.py,sha256=gQpyT1-nZE6Uynh5FEmFl5kfXkxChdUsgiKgwlaNw5E,5446
6
6
  appier/async_old.py,sha256=m3BFqHVPCRuIZ9L2sGYhCQPEwuCNKBO2y7SKM0dbtj8,9194
7
7
  appier/asynchronous.py,sha256=a1LQa3wbGMaXELhF7W71dRr1klPOj6x-ST9EInvPhtU,1757
8
- appier/base.py,sha256=CSPjeAmoawPDoKCPWv8z5UiyCbskHa7sg7jU7FwvWHU,268944
8
+ appier/base.py,sha256=6ZXt3Z63zXHkEYkxuDa_knYY44VjJMoxumDKEJ6H640,269068
9
9
  appier/bus.py,sha256=AMC2UXlaf6rzhzlIyTHkzbfb6tdfPBiOii4lpl9AAwg,7670
10
10
  appier/cache.py,sha256=V1nhf4aHJpUlcFtxVsd-2tGCt1BarkxvHWwVwuhc4Ao,10689
11
11
  appier/common.py,sha256=fcECBvu-KcB9DImZzkpM_FA_PUqgCx0FKP4KHuOikYc,1313
@@ -81,8 +81,8 @@ appier/test/structures.py,sha256=Uylzx5vLNORXKG5wsPMdIreW1SlHWGnmSQouqQNG6E8,674
81
81
  appier/test/typesf.py,sha256=KHumQFzx7wPZSCb8_mpIwobhIy2Fh_0XYviwPjXMbKI,9680
82
82
  appier/test/util.py,sha256=SSHuBAZQ0TcXLDYI0xUvmwId5nndDZb88s_5Y-Hqibw,46884
83
83
  appier/test/validation.py,sha256=riOCsGKob1P5jnbcB5qGZ45ApimNAVS0byg9v_uUdrk,4952
84
- appier-1.33.0.dist-info/LICENSE,sha256=Pd-b5cKP4n2tFDpdx27qJSIq0d1ok0oEcGTlbtL6QMU,11560
85
- appier-1.33.0.dist-info/METADATA,sha256=15fdtmGnRjQCiRtcnImCg5krRWYsZ_2bCGr5PGxyhvI,1920
86
- appier-1.33.0.dist-info/WHEEL,sha256=kGT74LWyRUZrL4VgLh6_g12IeVl_9u9ZVhadrgXZUEY,110
87
- appier-1.33.0.dist-info/top_level.txt,sha256=Z2e_Y1ya06a554WwQZkfNRiaaQxqsdaPtBzrck384Lo,7
88
- appier-1.33.0.dist-info/RECORD,,
84
+ appier-1.33.2.dist-info/LICENSE,sha256=Pd-b5cKP4n2tFDpdx27qJSIq0d1ok0oEcGTlbtL6QMU,11560
85
+ appier-1.33.2.dist-info/METADATA,sha256=lmp3zTy2LDLj2RK9EoV8IhO_jCMausvZE1-DlL19Z2Q,1920
86
+ appier-1.33.2.dist-info/WHEEL,sha256=kGT74LWyRUZrL4VgLh6_g12IeVl_9u9ZVhadrgXZUEY,110
87
+ appier-1.33.2.dist-info/top_level.txt,sha256=Z2e_Y1ya06a554WwQZkfNRiaaQxqsdaPtBzrck384Lo,7
88
+ appier-1.33.2.dist-info/RECORD,,