Welcome to Squishdot Websites Squishdot How-To Newbies
 about
 search
 post article
 Documentation
 Mailing Lists
 Bug Tracking
 Development
 Installation
 Upgrading
 Download
 admin
 rdf

 main


Zope 2.8.0 and Squishdot 1.5
Squishdot Posted by Dirk on Tuesday July 05, 08:49PM, 2005
from the dept.
Adding Squishdot 1.5 to Zope 2.8 not working

Hi,

I've just downloaded actual Squishdot 1.5 and Zope 2.8 for testing purpose and here is the first error on adding a new SquishdotSite to Zope:

Error Type: TypeError
Error Value: unbound method mailhost_list() must be called with SquishSite instance as first argument (got nothing instead)

Regards,
Dirk

global name 'MessageDialog' is not defined | Sending Email notification after moderation  >

 

Related Links
  • Articles on Squishdot
  • Also by Dirk
  • Contact author
  • The Fine Print: The following comments are owned by whoever posted them.
    ( Reply )

    Re: Zope 2.8.0 and Squishdot 1.5
    by Jonathan Despres on Saturday July 30, 07:13AM, 2005
    My web site www.nanoaging.com is using PHP NUKE can I use Squishdot without Zope ?
    [ Reply to this ]
    • Re: Zope 2.8.0 and Squishdot 1.5
      by gcw on Sunday August 07, 03:15AM, 2005
      The short answer (in case you haven't found out yet) is no.

      Squish dot is built on top of zope and not a stand alone product that can be installed into php based sites.
      [ Reply to this ]
    Re: Zope 2.8.0 and Squishdot 1.5
    by Chris Withers on Thursday August 25, 01:21PM, 2005
    Best thing to do is put an issue to the tracker on SourceForge.

    To get it fixed quicker, try and get a unit test for it, and then a fix ;-)

    cheers,

    Chris
    [ Reply to this ]
    Re: Zope 2.8.0 and Squishdot 1.5
    by Toni Andjelkovic on Wednesday September 21, 01:37PM, 2005

    While migrating a Squishdot blog from Zope 2.7.0 to 2.8.1-final (with python-2.3.5) I encountered two problems:

    The first problem occurs when trying to add a new Squishdot site with the ZMI:

    TypeError: unbound method mailhost_list() must be called with SquishSite instance as first argument (got nothing instead)
    

    Probably some change in ZOPE happened, so this method doesn't get passed a parameter any longer. I was able to work around that by patching the addSquishdotForm.dtml template, but the real cause of this problem appears to be within ZOPE. Since mailhost_list is called only in two DTML documents, you might get rid of it altogether by using the literal expression

    superValues('Mail Host')
    instead.

    The other error happened after I exported an existing Squishdot site object in .zexp format on 2.7.0 and tried to import it into the 2.8.1 instance:

    AttributeError: _length
    

    This is probably due to a compatibility safeguard in ZCatalog.Catalog, which disappeared between 2.7.0 and 2.8.1. After restoring this change I was able to successfully import the Squishdot .zexp file.

    Everything else appears to work fine.

    [ Reply to this ]
    • Re: Zope 2.8.0 and Squishdot 1.5
      by Matt K on Thursday September 22, 11:44AM, 2005
      Does that patch completely fix the problem(s)?
      [ Reply to this ]
    • TinyTablePlus also broken in Zope 2.8.4
      by I. Valdes on Wednesday December 21, 03:10AM, 2005
      I am finding that TinyTablePlus is broken as well for Zope 2.8.4 -- IV
      [ Reply to this ]
    • Re: Zope 2.8.0 and Squishdot 1.5
      by Chris Withers on Thursday January 19, 09:33AM, 2006
      Hmm, the _length this is weird, I'm sure there's a ZCatalog upgrade step which should fix that permenantly...
      [ Reply to this ]
    Re: Zope 2.8.0 and Squishdot 1.5
    by lukasz on Tuesday January 17, 12:57PM, 2006

    I had similar problem. It was caused by wrong constructors that creates Zope objects. When they were method in classes that are actually added an error occurs. So all manage_add... methods I've moved outside classes and correct __init.py__ file.:

        #This is how it was
        registrar.registerClass(
            Product, 
            constructors = (Product.manage_addProduct ),
            )  
        #This is how it should be
        registrar.registerClass(
            Product, 
            constructors = (manage_addProduct ),
            )
    

    [ Reply to this ]
    • Hmm...
      by Chris Withers on Thursday January 19, 09:29AM, 2006

      I'd be very surpised if the change you show above made a significant difference...


      [ Reply to this ]

     
    The Fine Print: The following comments are owned by whoever posted them.
    ( Reply )

    Powered by Zope  Squishdot Powered
      "Any system that depends on reliability is unreliable." -- Nogg's Postulate
    All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©1999 Butch Landingin, ©2000-2002 Chris Withers.