2012-02-19 | Paul Boddie | file changeset files shortlog | Added support for specifying column types in table regions without any sort criteria in order to permit sorting using the controls. The column types are defined by any explicit region declaration and are then overridden by any types specified in a region's sort criteria or in a request's sort criteria. Permitted table name definition using a table's own "tableid" attribute. |
paul@1 | 1 | #!/usr/bin/env python |
paul@1 | 2 | |
paul@1 | 3 | from ImprovedTableParser import replaceMarkers |
paul@1 | 4 | |
paul@1 | 5 | text = """ |
paul@1 | 6 | {{{ |
paul@1 | 7 | Hello |
paul@1 | 8 | \\{\\{\\{ |
paul@1 | 9 | Hello again |
paul@1 | 10 | But not \\{\\{\\{ this \\}\\}\\} |
paul@1 | 11 | \\\\{\\\\{\\\\{ |
paul@1 | 12 | And once again |
paul@1 | 13 | \\\\}\\\\}\\\\} |
paul@1 | 14 | And again |
paul@1 | 15 | \\}\\}\\} |
paul@1 | 16 | again |
paul@1 | 17 | }}} |
paul@1 | 18 | """ |
paul@1 | 19 | |
paul@1 | 20 | replaced = replaceMarkers(text) |
paul@1 | 21 | |
paul@1 | 22 | print text |
paul@1 | 23 | print |
paul@1 | 24 | print replaced |
paul@1 | 25 | |
paul@1 | 26 | # vim: tabstop=4 expandtab shiftwidth=4 |