[Zope-CMF] Upgrading to CMF 1.2 error - Update

Tres Seaver tseaver@ZOPE.COM
23 Apr 2002 10:39:09 -0400


On Tue, 2002-04-23 at 10:30, Florent Guillaume wrote:
> Could you show us the traceback of the error? We need to know where it
> occurs.

I think I answered this this morning, but some mismatch between our
mailers caused the list's address to bounce.  Anyway, the gist was:


I think that Apache's known "cookie gobbling" behavior may be in play,
here.
I am presuming:

  - You once-upon-a-time customized a method ('viewThreadsAtBottom',
likely)
    under CMF 1.1.

  - The default skin on your site includes this customized version ahead
of the
    one in CMFDefault/skins/generic.

  - You are selecting a different skin (from the "Preferences" page) in
the
    non-Apache case, and therefore see the "correct" footer.

  - Apache gobbles your 'portal_skin' cookie, leaving you with the
default
    skin.

Please examine any customized skins, and try to find the call to
'hasReplies';
and apply (by hand, likely) this diff (from the version of
'viewThreadsAtBottom'
in CMF 1.1 to now):

---------- cut here -----------------
--- CMF/CMFDefault/skins/generic/viewThreadsAtBottom.dtml      
2001/06/17 19:21:06     1.2
+++ CMF/CMFDefault/skins/generic/viewThreadsAtBottom.dtml      
2001/07/11 21:46:36     1.4
@@ -8,9 +8,14 @@

 <dtml-if talkback>
-    <dtml-if expr="talkback.hasReplies()">
-    <h4>Comments:</h4>
-    <dtml-var showThreads>
+  <dtml-let hasReplies="talkback.hasReplies( this() )">
+
+    <dtml-if hasReplies>
+      <h4>Comments:</h4>
+      <dtml-var showThreads>
</dtml-if>
+  </dtml-let>
+
 </dtml-if>
+
---------- cut here -----------------

You could also just delete and re-customize 'viewThreadsAtBottom'.



> 
> Florent
> 
> <J.C.Mcnulty@open.ac.uk> wrote:
> > I have got one step further to solving the problem. The error message does
> > not appear if you publish through the management screen (Zserver) but does
> > occur is you are running it through a browser (Apache). Has anyone else had
> > this problem?
> > 
> > Any help or guidance would be a great help.
> > 
> > Thanks
> > 
> > James
> > 
> > >  -----Original Message-----
> > > From: 	J.C.Mcnulty  
> > > Sent:	22 April 2002 5:09
> > > To:	
> > > Subject:	Upgrading to CMF 1.2 error
> > > 
> > > I was wondering if someone could help me. I am running Zope 2.5.1b2 with
> > > CMF 1.1 (python 2.1). I want to upgrade to CMF 1.2 but when I do and try
> > > to publish an item I get the following error:
> > > 
> > > Error Type: TypeError
> > > Error Value: hasReplies() takes exactly 2 arguments (1 given).
> > > 
> > > Publishing a document works fine on CMF 1.1 but this error occurs under
> > > 1.2.
> > > 
> > > Any help or guidance you can provide would be greatly appreciated.
> > > 
> > > Thanks
> > > 
> > > James
> -- 
> Florent Guillaume, Nuxeo (Paris, France)
> +33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com
> 
> 
> _______________________________________________
> Zope-CMF maillist  -  Zope-CMF@zope.org
> http://lists.zope.org/mailman/listinfo/zope-cmf
> 
> See http://www.zope.org/Products/PTK/Tracker for bug reports and feature requests
-- 
===============================================================
Tres Seaver                                tseaver@zope.com
Zope Corporation      "Zope Dealers"       http://www.zope.com