comparison test/test_templating.py @ 4720:fd72576e07ed

API break: rename Templates to Loader for zopetal and chameleon engines.
author anatoly techtonik <techtonik@gmail.com>
date Sun, 06 Jan 2013 16:36:33 +0300
parents 11b6601629d7
children 5033c2ad80a7
comparison
equal deleted inserted replaced
4719:05fe39f1d823 4720:fd72576e07ed
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, extension):
340 340
341 class Templates: 341 class Loader:
342 def __init__(self, dir): 342 def __init__(self, dir):
343 def precompileTemplates(self): 343 def precompileTemplates(self):
344 def get(self, name, extension=None): 344 def get(self, name, extension=None):
345 def __getitem__(self, name): 345 def __getitem__(self, name):
346 346

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