lines = archivo.file.read().split('\n')
ok = []
fail = []
+ entregador = Rol.get(2)
for line in lines:
for row in csv.reader([line]):
if row == []:
u.telefono = row[3]
u.contrasenia = row[0]
u.activo = True
+ u.add_rol(entregador)
ok.append(row)
except Exception, e:
row.append(str(e))
alumno = Alumno.byPadron(padron=padron)
msg = {}
msg['id'] = alumno.id
- msg['value'] = alumno.nombre
+ msg['value'] = alumno.shortrepr()
except SQLObjectNotFound:
msg = 'No existe el alumno con padron: %s.' % padron
error=True