Server error when generating sample data error

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

Bug Description

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


  TypeError: ('Could not adapt', < object at 0x5343b18>, <InterfaceClass schooltool.timetable.interfaces.ITimetableSchemaContainer>)

  File "/usr/lib/python2.4/site-packages/zope/publisher/", line 133, in publish
  result = publication.callObject(request, obj)
File "/usr/lib/python2.4/site-packages/zope/app/publication/", line 167, in callObject
  return mapply(ob, request.getPositionalArguments(), request)
File "/usr/lib/python2.4/site-packages/zope/publisher/", line 108, in mapply
  return debug_call(obj, args)
Extra information: <bound method SampleDataView.__call__ of < object at 0x61ba9d0>>
File "/usr/lib/python2.4/site-packages/zope/publisher/", line 114, in debug_call
  return obj(*args)
File "/usr/lib/python2.4/site-packages/schooltool/sampledata/", line 44, in __call__
File "/usr/lib/python2.4/site-packages/schooltool/sampledata/", line 58, in update
File "/usr/lib/python2.4/site-packages/schooltool/sampledata/", line 108, in generate
File "/usr/lib/python2.4/site-packages/schooltool/sampledata/", line 92, in visit
  plugin.generate(app, seed)
File "/usr/lib/python2.4/site-packages/schooltool/timetable/", 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.



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