Mercurial > p > roundup > code
comparison test/test_templating.py @ 4728:4caa6de726a5
templating: Rename 'extension' argument in Loader.load() to 'view'
to avoid confusion with file extension, and because this is what
this argument really does - specifies a different view for a class.
| author | anatoly techtonik <techtonik@gmail.com> |
|---|---|
| date | Mon, 14 Jan 2013 00:13:58 +0300 |
| parents | 5033c2ad80a7 |
| children | fe9568a6cbd6 |
comparison
equal
deleted
inserted
replaced
| 4727:5033c2ad80a7 | 4728:4caa6de726a5 |
|---|---|
| 334 | 334 |
| 335 class NoTemplate(Exception): | 335 class NoTemplate(Exception): |
| 336 class Unauthorised(Exception): | 336 class Unauthorised(Exception): |
| 337 def __init__(self, action, klass): | 337 def __init__(self, action, klass): |
| 338 def __str__(self): | 338 def __str__(self): |
| 339 def find_template(dir, name, extension): | 339 def find_template(dir, name, view): |
| 340 | 340 |
| 341 class Loader: | 341 class Loader: |
| 342 def __init__(self, dir): | 342 def __init__(self, dir): |
| 343 def precompileTemplates(self): | 343 def precompileTemplates(self): |
| 344 def load(self, name, extension=None): | 344 def load(self, name, extension=None): |
