| t | The bug is in handling multi-line fields in the data_scan module. | t | |
| <p> | | |
| On the page: <a href="http://bird.org/Fuego_Issue_List">http://bird.org/Fuego_Issue_List</a> there is a database | | |
| definition with a match_spec that includes a multi-line field (Description). | | |
| This field is not getting parsed by the routine data_scan:scan_attr_db(). | | |
| <p> | | |
| I'm not sure what the syntax is supposed to be for multi-line fields, | | |
| but here is the current definition in the match_spec: | | |
| <p> | | |
| <pre> | | |
| Description=^= Description =() | | |
| Description_endpat=^=() | | |
| </pre> | | |
| <p> | | |
| <h2><a name="Location_of_routines">Location of routines</a> | | |
| <span align=right class="section_edit_link">[<a href="/tbwiki/data_scan_bug_notes?action=edit§ion=Location_of_routines">edit section</a>]</font></span> | | |
| </h2> | | |
| <ul><li>in table.py, db_from_parsed_files() calls data_scan.scan_attr_db() | | |
| <li>in data_scan.py scan_attr_db() calls parse_data() | | |
| </ul> | | |
| <p> | | |
| There's a FIXTHIS line in parse_data that says that multi-line values are not tested. | | |
| <p> | | |
| <h2><a name="traceback_showing_call_stack">traceback showing call stack</a> | | |
| <span align=right class="section_edit_link">[<a href="/tbwiki/data_scan_bug_notes?action=edit§ion=traceback_showing_call_stack">edit section</a>]</font></span> | | |
| </h2> | | |
| <pre> File "fuego.cgi", line 54, in | | |
| main(req) | | |
| File "/home2/birdorg/work/tbwiki/cgi-bin/tbwiki_engine.py", line 1490, in main | | |
| html = block_to_html(req, page_data) | | |
| File "/home2/birdorg/work/tbwiki/cgi-bin/tbwiki_engine.py", line 1026, in block_to_html | | |
| html += line_to_html(req.state, newline + '\n') | | |
| File "/home2/birdorg/work/tbwiki/cgi-bin/tbwiki_engine.py", line 1087, in line_to_html | | |
| html += state.req.processors[state.processor][1](state.req, state.block_content) | | |
| File "/home2/birdorg/work/tbwiki-data/fuego/plugins/ProcessorTable.py", line 15, in Table | | |
| result = table.get_table(req, content) | | |
| File "/home2/birdorg/work/tbwiki/cgi-bin/table.py", line 1293, in get_table | | |
| tb = setup_conf_and_db(req, content) | | |
| File "/home2/birdorg/work/tbwiki/cgi-bin/table.py", line 1249, in setup_conf_and_db | | |
| req.page_name, conf) | | |
| File "/home2/birdorg/work/tbwiki/cgi-bin/table.py", line 1987, in get_table_data | | |
| tb.handler.read() | | |
| File "/home2/birdorg/work/tbwiki/cgi-bin/table.py", line 474, in read | | |
| db_from_parsed_files(self.tb, self.data_dir, self.source_spec) | | |
| File "/home2/birdorg/work/tbwiki/cgi-bin/table.py", line 1740, in db_from_parsed_files | | |
| match_spec, 1) | | |
| File "/home2/birdorg/work/tbwiki/cgi-bin/data_scan.py", line 480, in scan_attr_db | | |
| drprint(req, mv.__dict__) | | |
| File "/home2/birdorg/work/tbwiki/cgi-bin/data_scan.py", line 112, in drprint | | |
| rprint(req, msg) | | |
| File "/home2/birdorg/work/tbwiki/cgi-bin/data_scan.py", line 100, in rprint | | |
| req.add_to_message(msg) | | |
| File "/home2/birdorg/work/tbwiki/cgi-bin/tbwiki_engine.py", line 180, in add_to_message | | |
| self.message += msg + " | | |
| </pre> | | |