[Zope] LoginManager/ZPatterns with Zope 2.4.1
Mayers, Philip J
p.mayers@ic.ac.uk
Wed, 19 Sep 2001 18:57:26 +0100
Inbetween Zope crashing, I'm using LoginManager with 2.4.1 - I had to make
the following changes:
diff -ur ./ZPatterns/Expressions.py
/usr/local/Zope24/lib/python/Products/ZPatterns/Expressions.py
--- ./ZPatterns/Expressions.py Sun Oct 15 23:07:43 2000
+++ /usr/local/Zope24/lib/python/Products/ZPatterns/Expressions.py Mon
Sep 17 18:25:33 2001
@@ -35,7 +35,7 @@
from ExtensionClass import Base
from ComputedAttribute import ComputedAttribute
-from DocumentTemplate.DT_Util import Eval, expr_globals, TemplateDict, \
+from DocumentTemplate.DT_Util import Eval, TemplateDict, \
InstanceDict
from AccessControl import getSecurityManager
@@ -99,8 +99,8 @@
self.expr = expr
# Private: computed attribute for compiled form of expression
- def _v_expr(self, expr_globals=expr_globals, Eval=Eval):
- self._v_expr = Eval(self.expr, expr_globals)
+ def _v_expr(self, expr_globals=None, Eval=Eval):
+ self._v_expr = Eval(self.expr)
return self._v_expr
_v_expr = ComputedAttribute(_v_expr)
@@ -136,5 +136,5 @@
return md.getitem(self.name,self.call)
-del Eval, expr_globals, TemplateDict, Base, ComputedAttribute
+del Eval, TemplateDict, Base, ComputedAttribute
diff -ur ./ZPatterns/Setup
/usr/local/Zope24/lib/python/Products/ZPatterns/Setup
--- ./ZPatterns/Setup Fri May 5 19:06:22 2000
+++ /usr/local/Zope24/lib/python/Products/ZPatterns/Setup Mon Sep 17
18:21:05 2001
@@ -1,3 +1,3 @@
*shared*
-DynPersist DynPersist.c -I../../ZODB
-I../../../Components/ExtensionClass
+DynPersist DynPersist.c -I../../ZODB
-I../../../Components/ExtensionClass/src
diff -ur ./ZPatterns/SkinScript/Compiler.py
/usr/local/Zope24/lib/python/Products/ZPatterns/SkinScript/Compiler.py
--- ./ZPatterns/SkinScript/Compiler.py Fri Oct 6 17:55:02 2000
+++ /usr/local/Zope24/lib/python/Products/ZPatterns/SkinScript/Compiler.py
Mon Sep 17 18:26:52 2001
@@ -168,7 +168,7 @@
class Compute(AST):
type = 'COMPUTE'
- def __init__(self,*args,**args):
+ def __init__(self,*args,**kw):
self._kids=list(args)+kw.items()
class Trigger(Compute):
Hope this helps someone.
Regards,
Phil
+------------------------------------------+
| Phil Mayers |
| Network & Infrastructure Group |
| Information & Communication Technologies |
| Imperial College |
+------------------------------------------+