xls import of persons crashes if username is a number
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SchoolTool |
Fix Released
|
Medium
|
Gediminas Paulauskas | ||
1.4 |
Fix Released
|
Medium
|
Gediminas Paulauskas |
Bug Description
Exception
AttributeError: 'float' object has no attribute 'encode'
Traceback
File "/usr/lib/
result = publication.
File "/usr/lib/
return mapply(ob, request.
File "/usr/lib/
return debug_call(obj, args)
Extra information: <zope.browserpa
File "/usr/lib/
return obj(*args)
File "/usr/lib/
return self.index(*args, **kw)
File "/usr/lib/
return self.im_
File "/usr/lib/
sourceAnnotat
File "/usr/lib/
strictinsert=0, sourceAnnotatio
Template "/usr/lib/
File "/usr/lib/
self.
File "/usr/lib/
handlers[
File "/usr/lib/
self.
File "/usr/lib/
return expression(self)
Template "/usr/lib/
Expression: <PathExpr standard:
File "/usr/lib/
return self._eval(
File "/usr/lib/
return ob()
File "/usr/lib/
imp.import_
File "/usr/lib/
return self.process()
File "/usr/lib/
data[
Related branches
affects: | cando → schooltool |
Changed in schooltool: | |
assignee: | nobody → Gediminas Paulauskas (menesis) |
importance: | Undecided → Low |
milestone: | none → 1.6.1 |
status: | New → Confirmed |
summary: |
- Importing xls fail + xls import of persons fails if username is a number |
tags: | added: import |
summary: |
- xls import of persons fails if username is a number + xls import of persons crashes if username is a number |
Changed in schooltool: | |
status: | Confirmed → Fix Committed |
importance: | Low → Medium |
Changed in schooltool: | |
status: | Fix Committed → Fix Released |
no longer affects: | schooltool/1.5 |
If you could change the format (I know it's not easy) of "User Name" column to Default or Text, the import would succeed. I will fix this particular error, but if you will not change the format of the cells then import would fail anyway with an error "Not unicode or ascii string".