CSV Import of Students fails

Bug #208415 reported by Jason Straw
2
Affects Status Importance Assigned to Milestone
SchoolTool
Fix Released
Critical
Ignas Mikalajūnas

Bug Description

File "/home/jstraw/compile/cando/schooltool.stapp2008spring/eggs/tmphZRKe6/zope.publisher-3.5.0a1.dev_r78838-py2.4.egg/zope/publisher/publish.py", line 133, in publish

File "/home/jstraw/compile/cando/schooltool.stapp2008spring/eggs/tmpOv713q/zope.app.publication-3.4.3-py2.4.egg/zope/app/publication/zopepublication.py", line 167, in callObject

File "/home/jstraw/compile/cando/schooltool.stapp2008spring/eggs/tmphZRKe6/zope.publisher-3.5.0a1.dev_r78838-py2.4.egg/zope/publisher/publish.py", line 108, in mapply

Extra information: <zope.app.pagetemplate.simpleviewclass.SimpleViewClass from /home/jstraw/compile/cando/schooltool.stapp2008spring/eggs/schooltool-2006.999_2007_alpha1_svn_r7547-py2.4.egg/schooltool/person/browser/person-csvimport.pt object at 0xa2dc68c>
File "/home/jstraw/compile/cando/schooltool.stapp2008spring/eggs/tmphZRKe6/zope.publisher-3.5.0a1.dev_r78838-py2.4.egg/zope/publisher/publish.py", line 114, in debug_call

File "/home/jstraw/compile/cando/schooltool.stapp2008spring/eggs/zope.app.pagetemplate-3.4.0-py2.4.egg/zope/app/pagetemplate/simpleviewclass.py", line 44, in __call__
  return self.index(*args, **kw)
File "/home/jstraw/compile/cando/schooltool.stapp2008spring/eggs/zope.app.pagetemplate-3.4.0-py2.4.egg/zope/app/pagetemplate/viewpagetemplatefile.py", line 83, in __call__
  return self.im_func(im_self, *args, **kw)
File "/home/jstraw/compile/cando/schooltool.stapp2008spring/eggs/zope.app.pagetemplate-3.4.0-py2.4.egg/zope/app/pagetemplate/viewpagetemplatefile.py", line 51, in __call__
  sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
File "/home/jstraw/compile/cando/schooltool.stapp2008spring/eggs/tmpM-RcN2/zope.pagetemplate-3.4.0-py2.4.egg/zope/pagetemplate/pagetemplate.py", line 115, in pt_render

Template "/home/jstraw/compile/cando/schooltool.stapp2008spring/eggs/schooltool-2006.999_2007_alpha1_svn_r7547-py2.4.egg/schooltool/person/browser/person-csvimport.pt"
File "/home/jstraw/compile/cando/schooltool.stapp2008spring/eggs/tmpp5JW8R/zope.tal-3.4.1-py2.4.egg/zope/tal/talinterpreter.py", line 271, in __call__

File "/home/jstraw/compile/cando/schooltool.stapp2008spring/eggs/tmpp5JW8R/zope.tal-3.4.1-py2.4.egg/zope/tal/talinterpreter.py", line 346, in interpret

File "/home/jstraw/compile/cando/schooltool.stapp2008spring/eggs/tmpp5JW8R/zope.tal-3.4.1-py2.4.egg/zope/tal/talinterpreter.py", line 586, in do_setLocal_tal

File "/home/jstraw/compile/cando/schooltool.stapp2008spring/eggs/tmpOrff6r/zope.tales-3.4.0-py2.4.egg/zope/tales/tales.py", line 696, in evaluate

Template "/home/jstraw/compile/cando/schooltool.stapp2008spring/eggs/schooltool-2006.999_2007_alpha1_svn_r7547-py2.4.egg/schooltool/person/browser/person-csvimport.pt", line 1, column 0
  Expression: <PathExpr standard:u'view/update'>
File "/home/jstraw/compile/cando/schooltool.stapp2008spring/eggs/tmpOrff6r/zope.tales-3.4.0-py2.4.egg/zope/tales/expressions.py", line 217, in __call__

File "/home/jstraw/compile/cando/schooltool.stapp2008spring/eggs/tmpOrff6r/zope.tales-3.4.0-py2.4.egg/zope/tales/expressions.py", line 211, in _eval

File "/home/jstraw/compile/cando/schooltool.stapp2008spring/eggs/tmpw-GzI-/schooltool-2006.999_2007_alpha1_svn_r7547-py2.4.egg/schooltool/app/browser/csvimport.py", line 130, in update

File "/home/jstraw/compile/cando/schooltool.stapp2008spring/eggs/tmpw-GzI-/schooltool-2006.999_2007_alpha1_svn_r7547-py2.4.egg/schooltool/app/browser/csvimport.py", line 228, in importFromCSV

File "/home/jstraw/compile/cando/schooltool.stapp2008spring/eggs/tmpw-GzI-/schooltool-2006.999_2007_alpha1_svn_r7547-py2.4.egg/schooltool/person/browser/csvimport.py", line 67, in createAndAdd

File "/home/jstraw/compile/cando/schooltool.stapp2008spring/eggs/tmpw-GzI-/schooltool-2006.999_2007_alpha1_svn_r7547-py2.4.egg/schooltool/person/browser/csvimport.py", line 77, in personFactory

File "/home/jstraw/compile/cando/schooltool.stapp2008spring/eggs/tmpw-GzI-/schooltool-2006.999_2007_alpha1_svn_r7547-py2.4.egg/schooltool/basicperson/person.py", line 104, in __call__

data was:
dwelsh,David Welsh,dwelsh
jstraw,Jason Straw,jstraw
mconnet,Michael Connet

Changed in schooltool:
assignee: nobody → ignas
importance: Undecided → Critical
milestone: none → hardy
status: New → Triaged
Revision history for this message
Ignas Mikalajūnas (ignas) wrote :

Added a proper CSV import view for BasicPerson, now you should be able to import BasicPersons using CSV import too. You will have to provide a first name and a last name instead of a title now though.

Changed in schooltool:
status: Triaged → 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.