"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
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...
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
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.