Error importing xls with section timetables without resources

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

Bug Description

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

Wyjątek

  KeyError: u''
Prześledź

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