[Zope-dev] ZPatterns + Skinscript
Steve Spicklemire
steve@spvi.com
Tue, 31 Oct 2000 09:16:42 -0500 (EST)
OK I think I found the problem(s):
*** Expressions.py 2000/10/18 23:11:55 1.1.1.3
--- Expressions.py 2000/10/31 14:14:09
***************
*** 133,139 ****
def eval(self,mapping):
"""Return the result of looking up/calling the name from 'mapping'.
If the object was created with 'call==1', call it before returning it."""
! return md.getitem(self.name,self.call)
del Eval, expr_globals, TemplateDict, Base, ComputedAttribute
--- 133,139 ----
def eval(self,mapping):
"""Return the result of looking up/calling the name from 'mapping'.
If the object was created with 'call==1', call it before returning it."""
! return mapping.getitem(self.name,self.call)
del Eval, expr_globals, TemplateDict, Base, ComputedAttribute
*** SkinScript/Compiler.py 2000/10/18 23:11:56 1.1.1.4
--- SkinScript/Compiler.py 2000/10/31 14:12:09
***************
*** 168,174 ****
class Compute(AST):
type = 'COMPUTE'
! def __init__(self,*args,**args):
self._kids=list(args)+kw.items()
class Trigger(Compute):
--- 168,174 ----
class Compute(AST):
type = 'COMPUTE'
! def __init__(self,*args,**kw):
self._kids=list(args)+kw.items()
class Trigger(Compute):
Try these patches and see if it works...
-steve