Appears in extra-trunk and extra-6.0.
In extra-6.0, revisions 4664, 4666 and 4672 removed several print
statements.
In olap/cube/warehouse.py, this lead, around line 92, from
_ _ _ _ _ _ _ _ elif len(data[0]) == 3:
_ _ _ _ _ _ _ _ _ _ _ _ print "Its for Pages:>>>>>>>>>"
_ _ _ _ pooler.get_pool(cr.dbname).get('olap.query.logs').write(cr, uid,
log_ids, {'count':counter, 'table_name': table_name})
_ _ _ _ return True
to
_ _ _ _ _ _ _ _ elif len(data[0]) == 3:
_ _ _ _ pooler.get_pool(cr.dbname).get('olap.query.logs').write(cr, uid,
log_ids, {'count':counter, 'table_name': table_name})
_ _ _ _ return True
thus creating the indentation error.
The elif line has to be removed as well.
** Changed in: openobject-addons
Status: Invalid => Confirmed
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/620791
Title:
trunk: olap indentation Error
Status in OpenERP Modules (addons):
Confirmed
Bug description:
Selecting bussiness intelligence on configuration wizard to be
installed I obtain this error:
import olap
File "/home/ana/openerp6.0/server/bin/addons/olap/olap.py", line 37, in
<module>
import cube
File "/home/ana/openerp6.0/server/bin/addons/olap/cube/__init__.py", line
3, in <module>
from warehouse import warehouse
File "/home/ana/openerp6.0/server/bin/addons/olap/cube/warehouse.py", line
92
pooler.get_pool(cr.dbname).get('olap.query.logs').write(cr, uid,
log_ids, {'count':counter, 'table_name': table_name})
^
IndentationError: expected an indented block
I just solved including correct indentation on line 92 of file warehouse.py,
as shown below.
elif len(data[0]) == 3:
pooler.get_pool(cr.dbname).get('olap.query.logs').write(cr, uid, log_ids,
{'count':counter, 'table_name': table_name})
_______________________________________________
Mailing list: https://launchpad.net/~c2c-oerpscenario
Post to : [email protected]
Unsubscribe : https://launchpad.net/~c2c-oerpscenario
More help : https://help.launchpad.net/ListHelp