plain 0.2.1__py3-none-any.whl → 0.2.3__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 +3 -3
- {plain-0.2.1.dist-info → plain-0.2.3.dist-info}/METADATA +1 -1
- {plain-0.2.1.dist-info → plain-0.2.3.dist-info}/RECORD +6 -6
- {plain-0.2.1.dist-info → plain-0.2.3.dist-info}/LICENSE +0 -0
- {plain-0.2.1.dist-info → plain-0.2.3.dist-info}/WHEEL +0 -0
- {plain-0.2.1.dist-info → plain-0.2.3.dist-info}/entry_points.txt +0 -0
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
|
|
@@ -33,7 +33,7 @@ class AssetView(View):
|
|
33
33
|
# Make a trailing slash work, but we don't expect it
|
34
34
|
url_path = url_path.rstrip("/")
|
35
35
|
|
36
|
-
if settings.DEBUG
|
36
|
+
if settings.DEBUG:
|
37
37
|
absolute_path = self.get_debug_asset_path(url_path)
|
38
38
|
else:
|
39
39
|
absolute_path = self.get_asset_path(url_path)
|
@@ -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(
|
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
|
@@ -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=
|
9
|
+
plain/assets/views.py,sha256=BabrNgBAs5UqVAuaC47SFF3Ocq30ut2OoS9911FIeA4,8826
|
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.
|
156
|
-
plain-0.2.
|
157
|
-
plain-0.2.
|
158
|
-
plain-0.2.
|
159
|
-
plain-0.2.
|
155
|
+
plain-0.2.3.dist-info/LICENSE,sha256=m0D5O7QoH9l5Vz_rrX_9r-C8d9UNr_ciK6Qwac7o6yo,3175
|
156
|
+
plain-0.2.3.dist-info/METADATA,sha256=dvGFe3NkdchsGoroE3XfePr1xytqe6OnlMArM_7grWA,2716
|
157
|
+
plain-0.2.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
158
|
+
plain-0.2.3.dist-info/entry_points.txt,sha256=7O1RZTmMasKYB73bfqQcTwIhsXo7RjEIKv2WbtTtOIM,39
|
159
|
+
plain-0.2.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|