Error importing xls with section timetables without resources

Bug #839031 reported by Mantykora on 2011-09-01
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gediminas Paulauskas
Gediminas Paulauskas

Bug Description

I've just installed frsh schooltool, recovered backup than exported xls and imported it again and got this errors:


  KeyError: u''

  File "/usr/lib/python2.7/dist-packages/zope/publisher/", line 132, in publish
  result = publication.callObject(request, obj)
File "/usr/lib/python2.7/dist-packages/zope/app/publication/", line 207, in callObject
  return mapply(ob, request.getPositionalArguments(), request)
File "/usr/lib/python2.7/dist-packages/zope/publisher/", line 107, in mapply
  return debug_call(obj, args)
Extra information: <zope.browserpage.simpleviewclass.SimpleViewClass from /usr/lib/python2.7/dist-packages/schooltool/export/templates/ object at 0xc61cdd0>
File "/usr/lib/python2.7/dist-packages/zope/publisher/", line 113, in debug_call
  return obj(*args)
File "/usr/lib/python2.7/dist-packages/zope/browserpage/", line 44, in __call__
  return self.index(*args, **kw)
File "/usr/lib/python2.7/dist-packages/zope/browserpage/", line 83, in __call__
  return self.im_func(im_self, *args, **kw)
File "/usr/lib/python2.7/dist-packages/zope/browserpage/", line 51, in __call__
  sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
File "/usr/lib/python2.7/dist-packages/zope/pagetemplate/", line 113, in pt_render
  strictinsert=0, sourceAnnotations=sourceAnnotations)()
Template "/usr/lib/python2.7/dist-packages/schooltool/export/templates/"
File "/usr/lib/python2.7/dist-packages/zope/tal/", line 271, in __call__
File "/usr/lib/python2.7/dist-packages/zope/tal/", line 343, in interpret
  handlers[opcode](self, args)
File "/usr/lib/python2.7/dist-packages/zope/tal/", line 583, in do_setLocal_tal
  self.engine.setLocal(name, self.engine.evaluateValue(expr))
File "/usr/lib/python2.7/dist-packages/zope/tales/", line 696, in evaluate
  return expression(self)
Template "/usr/lib/python2.7/dist-packages/schooltool/export/templates/", line 1, column 0
  Expression: <PathExpr standard:u'view/update'>
File "/usr/lib/python2.7/dist-packages/zope/tales/", line 217, in __call__
  return self._eval(econtext)
File "/usr/lib/python2.7/dist-packages/zope/tales/", line 211, in _eval
  return ob()
File "/usr/lib/python2.7/dist-packages/schooltool/export/", line 1020, in update
File "/usr/lib/python2.7/dist-packages/schooltool/export/", line 913, in import_data
File "/usr/lib/python2.7/dist-packages/schooltool/export/", line 904, in process
  self.import_section(sheet, row, year, term)
File "/usr/lib/python2.7/dist-packages/schooltool/export/", line 878, in import_section
  self.import_timetables(sh, row, section)
File "/usr/lib/python2.7/dist-packages/schooltool/export/", line 797, in import_timetables
  self.import_timetable(sh, row, section)
File "/usr/lib/python2.7/dist-packages/schooltool/export/", line 791, in import_timetable
  resource = rc[resource_id]
File "/usr/lib/python2.7/dist-packages/zope/container/", line 107, in __getitem__
  return self._SampleContainer__data[key]

Changed in schooltool:
assignee: nobody → Justas Sadzevičius (justas-pov)
importance: Undecided → High
Gediminas Paulauskas (menesis) wrote :

I have just merged a fix for this yesterday, and will be making releases next week. Will be available in School|Tool PPA for Natty, I guess that's what you have.

Changed in schooltool:
status: New → Fix Committed
assignee: Justas Sadzevičius (justas-pov) → Gediminas Paulauskas (menesis)
summary: - Error during importing exported xls
+ Error importing xls with section timetables without resources
Changed in schooltool:
milestone: none → 1.6.1
Changed in schooltool:
status: Fix Committed → Fix Released
no longer affects: schooltool/1.5
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers