Skip to content
This repository has been archived by the owner on Feb 12, 2020. It is now read-only.

Commit

Permalink
This should be expressed using the bind method. Note that this al…
Browse files Browse the repository at this point in the history
…so fixes an incompatibility with the newest ``z3c.pt`` package.
  • Loading branch information
malthe committed May 12, 2010
1 parent 2a314ab commit 708ae0d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Changelog
=========

0.7 - Unreleased
----------------
In next release...

-

0.6 - 2009-10-25
----------------
Expand Down
8 changes: 4 additions & 4 deletions src/cmf/pt/fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ def _readFile(self, reparse):
self.read()

def __call__(self, *args, **kwargs):
kwargs['args'] = args
return BaseTemplateFile.__call__(self, self, **kwargs)
bound = self.bind(self)
return bound(*args, **kwargs)

def _exec(self, bound_names, *args, **kwargs):
# execute the template in a new security context.
Expand All @@ -67,9 +67,9 @@ def _exec(self, bound_names, *args, **kwargs):

class FSControllerPageTemplate(FSPageTemplate, FSControllerBase, BaseCPT):
def __init__(self, id, filepath, fullname=None, properties=None):
FSPageTemplate.__init__(self, id, filepath, fullname, properties)
FSPageTemplate.__init__(self, id, filepath, fullname, properties)
self.filepath = filepath

self._read_action_metadata(self.getId(), filepath)
self._read_validator_metadata(self.getId(), filepath)

Expand Down

0 comments on commit 708ae0d

Please sign in to comment.