[Zope] Error Value: can't pickle function objects

Mohamed Lrhazi mohamed at your-site.com
Fri May 28 11:36:18 EDT 2004


What does that error mean?

In my main class I have :


main_page=PageTemplateFile('zpt/main_page.zpt',globals())
main_page._owner=None

	
  def index_html(self,REQUEST=None):
	"""our main page... Enter here!"""
	if REQUEST is not None:
		if REQUEST.has_key('YSURLARGS'):
			if REQUEST['YSURLARGS'][0] == 'domain':
				self.domain = self.ddb.getDomain(REQUEST['YSURLARGS'][1])
				self.domainTitle=self.domain.getHTMLDomainName()
			else:
				pass
		else:
			pass
	else:
		pass
	return self.main_page(self,REQUEST)


And this results in:

Site Error
An error was encountered while publishing this resource.

Error Type: TypeError
Error Value: can't pickle function objects






More information about the Zope mailing list