diff -r b5af2ac0c43c -r 57372dbfd114 web/propertysheet.py --- a/web/propertysheet.py Wed May 05 10:22:11 2010 +0200 +++ b/web/propertysheet.py Wed May 05 10:28:55 2010 +0200 @@ -27,7 +27,7 @@ class PropertySheet(dict): def __init__(self, cache_directory, **context): self._cache_directory = cache_directory - self._context = context + self.context = context self.reset() context['sheet'] = self self._percent_rgx = re.compile('%(?!\()') @@ -40,7 +40,7 @@ self._cache = {} def load(self, fpath): - scriptglobals = self._context.copy() + scriptglobals = self.context.copy() scriptglobals['__file__'] = fpath execfile(fpath, scriptglobals, self) self._propfile_mtime[fpath] = os.stat(fpath)[-2]