diff options
author | Anike Arni <aarni@thoughtworks.com> | 2017-02-16 18:51:26 -0200 |
---|---|---|
committer | Anike Arni <aarni@thoughtworks.com> | 2017-02-16 18:51:26 -0200 |
commit | 957599ae01687d6b3d02a3c34fdbe2ac6bd920f9 (patch) | |
tree | 7612fa7cfd33bd9657bce0eb9e8db47b076cedcc /service/pixelated/resources/backup_account_resource.py | |
parent | 64780114ae90bb890d3ffa0a9aebe4686c6b74d3 (diff) |
[#907] Bundles login static files separately
Due to conflicts with public and protected urls, login and interstitial
files have to be on a different public url from inbox and resources that
require login. Therefore, here, we delegate that logic to webpack. Now
we have a '/public' url and a '/assets' url for those static assets.
Diffstat (limited to 'service/pixelated/resources/backup_account_resource.py')
-rw-r--r-- | service/pixelated/resources/backup_account_resource.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/service/pixelated/resources/backup_account_resource.py b/service/pixelated/resources/backup_account_resource.py index 5d9cb032..f1eeee53 100644 --- a/service/pixelated/resources/backup_account_resource.py +++ b/service/pixelated/resources/backup_account_resource.py @@ -19,13 +19,13 @@ from xml.sax import SAXParseException from pixelated.resources import BaseResource from twisted.python.filepath import FilePath -from pixelated.resources import get_static_folder +from pixelated.resources import get_protected_static_folder from twisted.web.http import OK from twisted.web.template import Element, XMLFile, renderElement class BackupAccountPage(Element): - loader = XMLFile(FilePath(os.path.join(get_static_folder(), 'backup_account.html'))) + loader = XMLFile(FilePath(os.path.join(get_protected_static_folder(), 'backup_account.html'))) def __init__(self): super(BackupAccountPage, self).__init__() |