[reportlab-users] pyRXP 0.96

Robin Becker reportlab-users@reportlab.com
Thu, 13 Mar 2003 16:14:22 +0000


At Andy's request I have upgraded (probably degraded) the RML
documentation and have added one new feature that is important for an
intended application.

I added a new module level variable
recordLocation  a special do nothing constant that can be used as
                the 'fourth' argument and causes location information
                    to be recorded in the fourth position of each node.
The fourth argument to the parser is defined now thusly

fourth  argument should be None (default) or a callable method with\n\
     no arguments. If callable, will be called to get or generate the\n\
     4th item of every 4-item tuple or list in the returned tree.\n\
     May also be the special value pyRXP.recordLocation in which\n\
     case the 4th item is set to the tuple\n\
     ((startsrc,startline,startchar),(endsrc,endline,endchar)).

src,line,char are the name of the file, linenumber and character
position. These are at present tied into the actual event so record the
end of tags, rather than the beginning.
-- 
Robin Becker