diff options
Diffstat (limited to 'service/pixelated/resources')
-rw-r--r-- | service/pixelated/resources/backup_account_resource.py (renamed from service/pixelated/resources/account_recovery_resource.py) | 10 | ||||
-rw-r--r-- | service/pixelated/resources/root_resource.py | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/service/pixelated/resources/account_recovery_resource.py b/service/pixelated/resources/backup_account_resource.py index a69cac9a..5d9cb032 100644 --- a/service/pixelated/resources/account_recovery_resource.py +++ b/service/pixelated/resources/backup_account_resource.py @@ -24,14 +24,14 @@ from twisted.web.http import OK from twisted.web.template import Element, XMLFile, renderElement -class AccountRecoveryPage(Element): - loader = XMLFile(FilePath(os.path.join(get_static_folder(), 'account_recovery.html'))) +class BackupAccountPage(Element): + loader = XMLFile(FilePath(os.path.join(get_static_folder(), 'backup_account.html'))) def __init__(self): - super(AccountRecoveryPage, self).__init__() + super(BackupAccountPage, self).__init__() -class AccountRecoveryResource(BaseResource): +class BackupAccountResource(BaseResource): isLeaf = True def __init__(self, services_factory): @@ -42,5 +42,5 @@ class AccountRecoveryResource(BaseResource): return self._render_template(request) def _render_template(self, request): - site = AccountRecoveryPage() + site = BackupAccountPage() return renderElement(request, site) diff --git a/service/pixelated/resources/root_resource.py b/service/pixelated/resources/root_resource.py index a97bd049..206cb3be 100644 --- a/service/pixelated/resources/root_resource.py +++ b/service/pixelated/resources/root_resource.py @@ -23,7 +23,7 @@ from pixelated.resources import BaseResource, UnAuthorizedResource, UnavailableR from pixelated.resources import get_startup_folder, get_static_folder from pixelated.resources.attachments_resource import AttachmentsResource from pixelated.resources.sandbox_resource import SandboxResource -from pixelated.resources.account_recovery_resource import AccountRecoveryResource +from pixelated.resources.backup_account_resource import BackupAccountResource from pixelated.resources.contacts_resource import ContactsResource from pixelated.resources.features_resource import FeaturesResource from pixelated.resources.feedback_resource import FeedbackResource @@ -89,7 +89,7 @@ class RootResource(BaseResource): return csrf_input and csrf_input == xsrf_token def initialize(self, provider=None, disclaimer_banner=None, authenticator=None): - self._child_resources.add('recovery', AccountRecoveryResource(self._services_factory)) + self._child_resources.add('backup-account', BackupAccountResource(self._services_factory)) self._child_resources.add('sandbox', SandboxResource(self._static_folder)) self._child_resources.add('assets', File(self._static_folder)) self._child_resources.add('keys', KeysResource(self._services_factory)) |