diff src/server/utils.py @ 1092:63ed5f6bd4eb

pages: new "getURLByPath" method in LiberviaPage, which is similar to getURLByNames, but which a more readable way to request a path with named pages.
author Goffi <goffi@goffi.org>
date Fri, 01 Jun 2018 12:58:20 +0200
parents 808ec98de8b3
children cdd389ef97bc
line wrap: on
line diff
--- a/src/server/utils.py	Fri Jun 01 12:56:13 2018 +0200
+++ b/src/server/utils.py	Fri Jun 01 12:58:20 2018 +0200
@@ -97,3 +97,7 @@
         handler_data[u'error'] = error_cb
         handler_data[u'timeout'] = reactor.callLater(timeout, self._timeout)
         return deferred
+
+
+class SubPage(unicode):
+    """use to mark subpages when generating a page path"""