Browse Source

Start templates refactor branch. task_url template function

templates_refactor
dequis 6 years ago
parent
commit
6bd592e3fc
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      template.py

+ 7
- 0
template.py View File

@@ -117,6 +117,13 @@ class Template(object):
return misc.get_script_name()

@function
def task_url(self, task, **kwargs):
kwargs['task'] = task
kwargs['board'] = self.board.name
from werkzeug.urls import url_encode
return misc.get_script_name() + "?" + url_encode(kwargs)

@function
def get_secure_script_name(self):
return misc.get_secure_script_name()


Loading…
Cancel
Save