plain 0.2.1__py3-none-any.whl → 0.2.2__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.
plain/assets/views.py CHANGED
@@ -15,7 +15,7 @@ from plain.runtime import settings
15
15
  from plain.urls import reverse
16
16
  from plain.views import View
17
17
 
18
- from .compile import FINGERPRINT_LENGTH
18
+ from .compile import FINGERPRINT_LENGTH, get_compiled_path
19
19
  from .finders import find_assets
20
20
  from .fingerprints import get_fingerprinted_url_path
21
21
 
@@ -62,7 +62,7 @@ class AssetView(View):
62
62
 
63
63
  def get_asset_path(self, path):
64
64
  """Get the path to the compiled asset"""
65
- compiled_path = os.path.abspath(settings.ASSETS_COMPILED_PATH)
65
+ compiled_path = os.path.abspath(get_compiled_path())
66
66
  asset_path = os.path.join(compiled_path, path)
67
67
 
68
68
  # Make sure we don't try to escape the compiled assests path
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: plain
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: A web framework for building products with Python.
5
5
  Author: Dave Gaeddert
6
6
  Author-email: dave.gaeddert@dropseed.dev
@@ -6,7 +6,7 @@ plain/assets/compile.py,sha256=lsnciN85YjHe6d8VIKJi1L8r7NGHNzMOe9L87wObM5I,3287
6
6
  plain/assets/finders.py,sha256=WEKAnXTmpuQ7UKLZz7vHPrKFdDOkuZSP6_JTKmIxrKg,1268
7
7
  plain/assets/fingerprints.py,sha256=1NKAnnXVlncY5iimXztr0NL3RIjBKsNlZRIe6nmItJc,931
8
8
  plain/assets/urls.py,sha256=ZTIoM1Zq35JaXZ3wFhXhfGa7VoITDNlH9i5RS0R5xow,933
9
- plain/assets/views.py,sha256=y-ONVDwB64e1adc1dR41OPlYLnZRBRN5cb001Wy4358,8827
9
+ plain/assets/views.py,sha256=vcjDZYUC979rM03wlVHV19-6afgeFd3ldTEfZUs0kw0,8836
10
10
  plain/cli/README.md,sha256=bEp9B9C92YEa44wN2IywTmNZsYBv_uGq9AS_bBiAGdY,2580
11
11
  plain/cli/__init__.py,sha256=9ByBOIdM8DebChjNz-RH2atdz4vWe8somlwNEsbhwh4,40
12
12
  plain/cli/cli.py,sha256=JyPNQGlczqCyLxZq5Jh_591rKpBMN91JHGXdaTuPWJ0,14841
@@ -152,8 +152,8 @@ plain/views/objects.py,sha256=9QBYyb8PgkRirXCQ8-Pms4_yMzP37dfeL30hWRYmtZg,7909
152
152
  plain/views/redirect.py,sha256=KLnlktzK6ZNMTlaEiZpMKQMEP5zeTgGLJ9BIkIJfwBo,1733
153
153
  plain/views/templates.py,sha256=nF9CcdhhjAyp3LB0RrSYnBaHpHzMfPSw719RCdcXk7o,2007
154
154
  plain/wsgi.py,sha256=R6k5FiAElvGDApEbMPTT0MPqSD7n2e2Az5chQqJZU0I,236
155
- plain-0.2.1.dist-info/LICENSE,sha256=m0D5O7QoH9l5Vz_rrX_9r-C8d9UNr_ciK6Qwac7o6yo,3175
156
- plain-0.2.1.dist-info/METADATA,sha256=W6mobgEzSytu79MxBGjnB0SZBjlOiEMxKU_hVH4g5Ao,2716
157
- plain-0.2.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
158
- plain-0.2.1.dist-info/entry_points.txt,sha256=7O1RZTmMasKYB73bfqQcTwIhsXo7RjEIKv2WbtTtOIM,39
159
- plain-0.2.1.dist-info/RECORD,,
155
+ plain-0.2.2.dist-info/LICENSE,sha256=m0D5O7QoH9l5Vz_rrX_9r-C8d9UNr_ciK6Qwac7o6yo,3175
156
+ plain-0.2.2.dist-info/METADATA,sha256=sYL_lmFR9UJE-JZY1IdPvynfYqcGsX_CAG33gryHqOQ,2716
157
+ plain-0.2.2.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
158
+ plain-0.2.2.dist-info/entry_points.txt,sha256=7O1RZTmMasKYB73bfqQcTwIhsXo7RjEIKv2WbtTtOIM,39
159
+ plain-0.2.2.dist-info/RECORD,,
File without changes
File without changes