Comment 3 for bug 298135

Revision history for this message
Brent Ward (bmward1) wrote : Re: [Bug 298135] Re: adding new users after deleting database

I actually had upgraded to 2008.10.  I had installed the sample data, and the person who will be the primary site manager was done looking around at the program, and was ready to start from scratch.

--- On Fri, 11/14/08, Tom Hoffman <email address hidden> wrote:
From: Tom Hoffman <email address hidden>
Subject: [Bug 298135] Re: adding new users after deleting database
To: <email address hidden>
Date: Friday, November 14, 2008, 2:22 PM

Is this after upgrading to SchoolTool 2010.8? Check your footer for the
version.

--
adding new users after deleting database
https://bugs.launchpad.net/bugs/298135
You received this bug notification because you are a direct subscriber
of the bug.

Status in SchoolTool: New

Bug description:
Had the sample data installed. Deleted the database file. restarted
Schooltool. Can sign in as manager. However, when trying to add new users, I
get this error:

Exception

  KeyError: 'groups'
Traceback

  File "/usr/lib/python2.4/site-packages/zope/publisher/publish.py",
line 133, in publish
  result = publication.callObject(request, obj)
File
"/usr/lib/python2.4/site-packages/zope/app/publication/zopepublication.py",
line 167, in callObject
  return mapply(ob, request.getPositionalArguments(), request)
File "/usr/lib/python2.4/site-packages/zope/publisher/publish.py",
line 108, in mapply
  return debug_call(obj, args)
Extra information: <zope.app.publisher.browser.viewmeta.PersonAddView object
at 0x9bae0cc>
File "/usr/lib/python2.4/site-packages/zope/publisher/publish.py",
line 114, in debug_call
  return obj(*args)
File "/usr/lib/python2.4/site-packages/z3c/form/form.py", line 189,
in __call__
  self.update()
File "/usr/lib/python2.4/site-packages/z3c/form/form.py", line 186,
in update
  self.actions.execute()
File "/usr/lib/python2.4/site-packages/z3c/form/action.py", line 99,
in execute
  result = handler()
File "/usr/lib/python2.4/site-packages/z3c/form/button.py", line 302,
in __call__
  return handler(self.form, self.action)
File "/usr/lib/python2.4/site-packages/z3c/form/button.py", line 170,
in __call__
  return self.func(form, action)
File
"/usr/lib/python2.4/site-packages/schooltool/basicperson/browser/person.py",
line 136, in handleAdd
  obj = self.createAndAdd(data)
File "/usr/lib/python2.4/site-packages/z3c/form/form.py", line 217,
in createAndAdd
  self.add(obj)
File
"/usr/lib/python2.4/site-packages/schooltool/basicperson/browser/person.py",
line 165, in add
  groups = ISchoolToolApplication(None)['groups']
File "/usr/lib/python2.4/site-packages/zope/app/container/sample.py",
line 60, in __getitem__
  return self.__data[key]
File "/usr/lib/python2.4/UserDict.py", line 17, in __getitem__
  def __getitem__(self, key): return self.data[key]

Thoughts? Suggestions? I have an Ubuntu server, Hardy edition.