#102 Installation Error (MailHost)

open
nobody
None
5
2007-04-10
2007-04-10
Tom Von
No

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

Zope Version (Zope 2.9.5-final, python 2.4.3, darwin)
Python Version 2.4.3 (#1, Oct 9 2006, 13:49:03) [GCC 4.0.1 (Apple Computer, Inc. build 5332)]
System Platform darwin

Discussion

  • Chris Withers

    Chris Withers - 2007-04-11

    Logged In: YES
    user_id=24723
    Originator: NO

    See this thread:
    http://www.squishdot.org/1120592957

    Please have a go with Squishdot from the Subversion repository and let me know how you get on...

     
  • Nobody/Anonymous

    Logged In: NO

    Please, Test This patch with Zope-2.10.4 or laters. You may be happy.

    --- __init__.py_org 2001-08-13 19:59:04.000000000 +0900
    +++ __init__.py 2007-11-05 20:56:22.000000000 +0900
    @@ -26,6 +26,13 @@
    )
    )

    +
    +# 2007-11-05
    +def mailhost_list(self):
    + """ list of mail hosts """
    + try: return self.superValues(('Mail Host',))
    + except: return []
    +
    # Load addSquishdotForm from disk
    manage_addSquishdotForm = HTMLFile('addSquishdotForm', globals())

    @@ -61,6 +68,6 @@

    # make the mailhost_list method accessible
    # does this need to be changed to the new system?
    -methods={ 'mailhost_list': SquishSite.mailhost_list }
    -
    +#methods={ 'mailhost_list': SquishSite.mailhost_list } 2007-11-05
    +methods={ 'mailhost_list': mailhost_list }

    thanks.

    Nobuyuki Koyoshi

     
  • Chris Withers

    Chris Withers - 2007-11-06

    Logged In: YES
    user_id=24723
    Originator: NO

    To Nobuyuki Koyoshi:

    This patch is *wrong*, very wrong.

    Please read the thread I referred to and *don't* use this patch.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks