AttributeError __getslice__ from Zope Construction Kit book
Hello. I've been through the Zope "Web Application Construction Kit" book tutorial, chapter 5, "Building a Portal and Adding Serices" "Creating a Type with ZClasses", twice now. Each time, when attempting to add the new ZClass object in a user folder, this error is generated: Error Type AttributeError Error Value __getslice__ Does anyone have any sense of what this means and how to fix it? My Zope is 2.6.0 running on Redhat 8. Thanks. Harlow Pinson Indepth Learning Email: hpinson@indepthl.com Web: http://www.indepthl.com Voice: 505-994-2135 FAX: 208-475-7678
hpinson@indepthl.com wrote at 2003-6-2 12:59 -0600:
Hello. I've been through the Zope "Web Application Construction Kit" book tutorial, chapter 5, "Building a Portal and Adding Serices" "Creating a Type with ZClasses", twice now.
Each time, when attempting to add the new ZClass object in a user folder, this error is generated:
Error Type AttributeError
Error Value __getslice__
Does anyone have any sense of what this means and how to fix it?
My Zope is 2.6.0 running on Redhat 8.
Please look at the traceback. Post it (together with the information you already provided in this message!) when you do not understand it.
From Zope 2.6 on, the traceback can be found via the "error_log" object in your Zope root folder.
Dieter
Dieter, thanks. The solution was fairly simple-- the book appears to have an error: Zope Web Application Construction Kit Page 217 addTermpaper.py Instead of: return context.manage_addProduct['SchoolProjects'].TermPaperClass.createInObj ectManager(id,context,REQUEST) should be: context.manage_addProduct['Unit Folder'].UnitClass.createInObjectManager(id,context.REQUEST) return id with a parameter of id Harlow Pinson Indepth Learning Email: hpinson@indepthl.com Web: http://www.indepthl.com Voice: 505-994-2135 FAX: 208-475-7678
participants (2)
-
Dieter Maurer -
hpinson@indepthl.com