[Zope-Coders] Re: 2.8 odds and ends

Tres Seaver tseaver at zope.com
Tue Sep 28 14:01:36 EDT 2004


yuppie wrote:
> Hi!
> 
> 
> Andreas Jung wrote:
> 
>> - Adding Plone or CMF site fails:
> 
> [...]
> 
>> TypeError: unbound method pt_getContext() must be called with 
>> ZopePageTemplate instance as first argument (got nothing instead) 
>> (Also, an error occurred while attempting to render the standard error 
>> message.)
> 
> 
> Please use CMF 1.5 beta(2) or a HEAD checkout. There were some changes 
> for Zope 2.8 compatibilty that didn't go in the 1.4 branch and I believe 
> this is one of the fixed issues.

I just sent Andreas a one-line patch which fixes that for 1.4.7:

--- CMFCore/FSPageTemplate.py   2004-09-28 13:47:40.551858578 -0400
+++ CMFCore/FSPageTemplate.py.z28       2004-09-28 13:47:37.184290587 -0400
@@ -212,7 +212,7 @@
      security.declareProtected(ViewManagementScreens, 'document_src')
      document_src = ZopePageTemplate.document_src

-    pt_getContext = ZopePageTemplate.pt_getContext
+    pt_getContext = ZopePageTemplate.pt_getContext.im_func

      ZScriptHTML_tryParams = ZopePageTemplate.ZScriptHTML_tryParams


Tres.
-- 
===============================================================
Tres Seaver                                tseaver at zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com



More information about the Zope-Coders mailing list