comparison test/test_templating.py @ 4740:fe9568a6cbd6

Untangle template selection logic from template loading functionality.
author anatoly techtonik <techtonik@gmail.com>
date Tue, 15 Jan 2013 00:10:01 +0300
parents 4caa6de726a5
children 364c54991861
comparison
equal deleted inserted replaced
4739:94be76e04140 4740:fe9568a6cbd6
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, view):
340 339
341 class Loader: 340 class Loader:
342 def __init__(self, dir): 341 def __init__(self, dir):
343 def precompileTemplates(self): 342 def precompileTemplates(self):
344 def load(self, name, extension=None): 343 def load(self, name, extension=None):

Roundup Issue Tracker: http://roundup-tracker.org/