Server error when generating sample data error

Bug #306107 reported by budgester on 2008-12-08
2
Affects Status Importance Assigned to Milestone
SchoolTool
Undecided
Gediminas Paulauskas

Bug Description

Installed on a fully updated Intrepid install
Set devmode on
Generate sample data with all checkboxes ticked.

Exception

  TypeError: ('Could not adapt', <schooltool.app.app.SchoolToolApplication object at 0x5343b18>, <InterfaceClass schooltool.timetable.interfaces.ITimetableSchemaContainer>)
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: <bound method SampleDataView.__call__ of <zope.app.publisher.browser.viewmeta.SampleDataView object at 0x61ba9d0>>
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/schooltool/sampledata/browser.py", line 44, in __call__
  self.update()
File "/usr/lib/python2.4/site-packages/schooltool/sampledata/browser.py", line 58, in update
  pluginNames=self._getSelectedPlugins())
File "/usr/lib/python2.4/site-packages/schooltool/sampledata/generator.py", line 108, in generate
  visit(name)
File "/usr/lib/python2.4/site-packages/schooltool/sampledata/generator.py", line 92, in visit
  plugin.generate(app, seed)
File "/usr/lib/python2.4/site-packages/schooltool/timetable/sampledata.py", line 68, in generate
  ITimetableSchemaContainer(app)['simple'] = ttschema

Tom Hoffman (tom-hoffman) wrote :

Actually, we need to eliminate the old sample data generation. We're replacing it with a set of sample data in a spreadsheet that can be imported via a new data import mechanism. We released the new import system on Friday but unfortunately introduced some unrelated bugs. We should have this all cleaned up and documented shortly.

Sorry for the inconvenience.

budgester (budgester) wrote :

Sounds interesting, I'm looking at being able to do data import with an xml file that we can produce with our existing school MIS system, so I might have a poke around in the code and see whats there.

budgester (budgester) wrote :

Here is an information about how student data is transfered between schools and government bodies in the uk, using xml files.

http://www.teachernet.gov.uk/management/ims/datatransfers/CTF/

Regards

Budgester

Tom Hoffman (tom-hoffman) wrote :

Yes, if you want to do something country-specific like that (which would be very welcome for the UK) you could create a separate UK person package. If you're interested in having a crack at it, we've got some examples. Catching Ignas on #schooltool on freenode IRC during the day (Lithuanian time) is the best way to get rolling on that.

tags: added: code-cleanup traceback
Changed in schooltool:
status: New → Fix Committed
assignee: nobody → Gediminas Paulauskas (menesis)
milestone: none → 1.4.0
Changed in schooltool:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers