openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #17488
Re: [Bug 1069001] Re: Wrong return string in rml_tag preprocessing
The problems are caused by some incomplete regular expressions in function
preprocess_rml in the class report, file server/openerp/report/preprocess.py
The regular expressions used to recognized and preprocess repeatIn, setTag
and removeParentNode do not support more than one field per line (for
example [[ setTag(...) ]] [[ something else]])
It will happen in any report.
A temporary solution is to try whenever it is possible to implement all
operations in just one field per line
2012/11/6 Pieter J. Kersten (EduSense BV) <1069001@xxxxxxxxxxxxxxxxxx>
> Tried it using the OpenOffice plugin and changing the Order/Quotation
> report from the the sale_order module. Field stays blank, server gives
> backtrace. Reproducible for other reports as well. The server code in
> this area stayed identical through the 5.0, 6.0 and 6.1 series. Didn't
> try 7.x. Provided fix solves the problem.
>
> --
> You received this bug notification because you are subscribed to OpenERP
> Server.
> https://bugs.launchpad.net/bugs/1069001
>
> Title:
> Wrong return string in rml_tag preprocessing
>
> Status in OpenERP Server:
> Incomplete
>
> Bug description:
> The code for setTag() handling in preprocess.py returns an invalid
> "empty" clause for further processing, causing parsing errors on later
> code.
>
> Example:
> [[ setTag('para','xpre') ]][[ variable ]]
> Generates an exception:
> Syntax error: " '' ]][[ variable "
>
> This is caused by rml_tag returning "[[ '' ]]"
>
> Converting this "empty" clause to an empty string solves the error.
>
> Attached a patch to the 6.0 tree.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/openobject-server/+bug/1069001/+subscriptions
>
--
Gustavo Adrian Marino
Mobile: +54 911 5498 2515
Email: gamarino@xxxxxxxxx
Skype: gustavo.adrian.marino
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/1069001
Title:
Wrong return string in rml_tag preprocessing
Status in OpenERP Server:
Incomplete
Bug description:
The code for setTag() handling in preprocess.py returns an invalid
"empty" clause for further processing, causing parsing errors on later
code.
Example:
[[ setTag('para','xpre') ]][[ variable ]]
Generates an exception:
Syntax error: " '' ]][[ variable "
This is caused by rml_tag returning "[[ '' ]]"
Converting this "empty" clause to an empty string solves the error.
Attached a patch to the 6.0 tree.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/1069001/+subscriptions
References