Server error on export XLS

Bug #352027 reported by Laurie Savage
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SchoolTool
Fix Released
High
Ignas Mikalajūnas

Bug Description

I have just updated Schooltool 2 (ppa.launchpad.net) via Ubuntu's automatic updates feature (31/03/2009)
Any call to http://127.0.0.1:7080/export.xls results in this error:

Server Error

An internal server error has occurred. This most likely means that you have found a bug in SchoolTool. Please report it on the issue tracker.

Exception

  IndexError: tuple index out of range
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 MegaExporter.__call__ of <zope.app.publisher.browser.viewmeta.MegaExporter object at 0xc809dec>>
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/export/export.py", line 533, in __call__
  self.export_sections(wb)
File "/usr/lib/python2.4/site-packages/schooltool/export/export.py", line 500, in export_sections
  row = self.format_section(section, ws, row) + 1
File "/usr/lib/python2.4/site-packages/schooltool/export/export.py", line 488, in format_section
  offset = self.format_timetables(section, ws, offset)
File "/usr/lib/python2.4/site-packages/schooltool/export/export.py", line 466, in format_timetables
  resource = event.resources[0]

Revision history for this message
Richard Drake (richard-drake) wrote :
Download full text (4.8 KiB)

I'm a complete newb to school tool and Zope
I had the same error on a new install with SchoolTool 2009.04dev on My Linux Mint (Ubuntu) System.
Just created some test courses and 2 sections.

Also previously I tried the import of the test data and I got similar "Index out of range" error
============
Header
Exception traceback
Time
Thu Apr 16 22:39:12 2009
Usero
unauthenticated, sb.person.manager, Administrator, SchoolTool,
Request URL
http://localhost:7080/@@import.html
Exception Type
IndexError
Exception Value
list index out of range
Traceback

Traceback (most recent call last):

    * Module zope.publisher.publish, line 133, in publish
      result = publication.callObject(request, obj)
    * Module zope.app.publication.zopepublication, line 167, in callObject
      return mapply(ob, request.getPositionalArguments(), request)
    * Module zope.publisher.publish, line 108, in mapply
      return debug_call(obj, args)
      __traceback_info__: <security proxied zope.app.pagetemplate.simpleviewclass.SimpleViewClass from /usr/lib/python2.4/site-packages/schooltool/export/templates/import.pt instance at 0xc3c53ac>
    * Module zope.publisher.publish, line 114, in debug_call
      return obj(*args)
    * Module zope.app.pagetemplate.simpleviewclass, line 44, in __call__
      return self.index(*args, **kw)
    * Module zope.app.pagetemplate.viewpagetemplatefile, line 83, in __call__
      return self.im_func(im_self, *args, **kw)
    * Module zope.app.pagetemplate.viewpagetemplatefile, line 51, in __call__
      sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
    * Module zope.pagetemplate.pagetemplate, line 115, in pt_render
      strictinsert=0, sourceAnnotations=sourceAnnotations)()
    * Module zope.tal.talinterpreter, line 271, in __call__
      self.interpret(self.program)
    * Module zope.tal.talinterpreter, line 346, in interpret
      handlers[opcode](self, args)
    * Module zope.tal.talinterpreter, line 586, in do_setLocal_tal
      self.engine.setLocal(name, self.engine.evaluateValue(expr))
    * Module zope.tales.tales, line 696, in evaluate
      return expression(self)
      /usr/lib/python2.4/site-packages/schooltool/export/templates/import.pt
      Line 1, Column 0
      Expression: <PathExpr standard:u'view/update'>
         - Names:
            {'args': (),
             'context': <schooltool.app.app.SchoolToolApplication object at 0xb6f8f66c>,
             'default': <object object at 0xb7dc2538>,
             'loop': {},
             'nothing': None,
             'options': {},
             'repeat': {},
             'request': <zc.resourcelibrary.publication.Request instance URL=http://localhost:7080/@@import.html>,
             'template': <zope.app.pagetemplate.viewpagetemplatefile.ViewPageTemplateFile object at 0xb426e2c>,
             'view': <zope.app.pagetemplate.simpleviewclass.SimpleViewClass from /usr/lib/python2.4/site-packages/schooltool/export/templates/import.pt object at 0xc3c53ac>,
             'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper object at 0xc3c53ec>}
    * Module zope.tales.expressions, line 217, in __call__
      return self._eval(econtext)
    * Module zope.t...

Read more...

Changed in schooltool:
assignee: nobody → Ignas Mikalajūnas (ignas)
importance: Undecided → High
milestone: none → jaunty
Revision history for this message
Ignas Mikalajūnas (ignas) wrote :

Commited to export fix branch.

Changed in schooltool:
status: New → Fix Committed
Changed in schooltool:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.