[TRUNK] TypeError: object of type 'int' has no len()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP R&D Addons Team 1 |
Bug Description
Using server, web-client and addons from trunk on Ubuntu 11.04 with python2.6, I installed survey module.
In Tools > Surveys > Define Surveys > Surveys, I choose any survey and whey I try to create a question, I get:
[2011-07-29 15:03:55,180][?] ERROR:web-
Traceback (most recent call last):
File "/home/
return f(self, dbname, *args, **kwargs)
File "/home/
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/
if len(context[
TypeError: object of type 'int' has no len()
> /home/max/
-> if len(context[
(Pdb) l
507 def default_get(self, cr, uid, fields, context=None):
508 if context is None:
509 context = {}
510 data = super(survey_
511 if context.
512 -> if len(context[
513 data['sequence'] = context[
514
515 if context.
516 data['page_id']= context.
517 return data
(Pdb) context[
62
Related branches
- Maxime Chambreuil (http://www.savoirfairelinux.com) (community): Approve
- Bhumika Shrimali: Pending requested
- Diff: 0 lines
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 1 (openerp-dev-addons1) |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
status: | Fix Committed → Fix Released |
Hello,
Its fixed inlp:~openerp- dev/openobject- addons/ trunk-bug-819257-dbr
branch. It will be merge soon with trunk addons.
Revision ID : 4903 <email address hidden>
Revision No: 4903
Thank You.