OK. Thanks for letting me know. I did figure out that when I added a user just by name, without selecting groups initially, I did not get the error. It was only when I select a group when trying to create the user also.
--- 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, 4:14 PM
OK. This is a common class of bugs in the transition to the new
version. Basically, groups, and a lot of other things are now organized
by year, so you can keep track of things in a sane manner year to year.
It is a big reshuffling, though, so there are a few places that didn't
get updated. We should be able to push a bugfix next week that clears
this problem up in a couple of places.
--
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.
OK. Thanks for letting me know. I did figure out that when I added a user just by name, without selecting groups initially, I did not get the error. It was only when I select a group when trying to create the user also.
--- 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, 4:14 PM
OK. This is a common class of bugs in the transition to the new
version. Basically, groups, and a lot of other things are now organized
by year, so you can keep track of things in a sane manner year to year.
It is a big reshuffling, though, so there are a few places that didn't
get updated. We should be able to push a bugfix next week that clears
this problem up in a couple of places.
-- /bugs.launchpad .net/bugs/ 298135
adding new users after deleting database
https:/
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", callObject( request, obj) python2. 4/site- packages/ zope/app/ publication/ zopepublication .py", getPositionalAr guments( ), request) python2. 4/site- packages/ zope/publisher/ publish. py", publisher. browser. viewmeta. PersonAddView object python2. 4/site- packages/ zope/publisher/ publish. py", python2. 4/site- packages/ z3c/form/ form.py" , line 189, python2. 4/site- packages/ z3c/form/ form.py" , line 186, actions. execute( ) python2. 4/site- packages/ z3c/form/ action. py", line 99, python2. 4/site- packages/ z3c/form/ button. py", line 302, python2. 4/site- packages/ z3c/form/ button. py", line 170, python2. 4/site- packages/ schooltool/ basicperson/ browser/ person. py", dd(data) python2. 4/site- packages/ z3c/form/ form.py" , line 217, python2. 4/site- packages/ schooltool/ basicperson/ browser/ person. py", ication( None)[' groups' ] python2. 4/site- packages/ zope/app/ container/ sample. py", python2. 4/UserDict. py", line 17, in __getitem__
line 133, in publish
result = publication.
File
"/usr/lib/
line 167, in callObject
return mapply(ob, request.
File "/usr/lib/
line 108, in mapply
return debug_call(obj, args)
Extra information: <zope.app.
at 0x9bae0cc>
File "/usr/lib/
line 114, in debug_call
return obj(*args)
File "/usr/lib/
in __call__
self.update()
File "/usr/lib/
in update
self.
File "/usr/lib/
in execute
result = handler()
File "/usr/lib/
in __call__
return handler(self.form, self.action)
File "/usr/lib/
in __call__
return self.func(form, action)
File
"/usr/lib/
line 136, in handleAdd
obj = self.createAndA
File "/usr/lib/
in createAndAdd
self.add(obj)
File
"/usr/lib/
line 165, in add
groups = ISchoolToolAppl
File "/usr/lib/
line 60, in __getitem__
return self.__data[key]
File "/usr/lib/
def __getitem__(self, key): return self.data[key]
Thoughts? Suggestions? I have an Ubuntu server, Hardy edition.