Quoting problem
Tom Ekberg <[email protected]>
| Newsgroups | gmane.comp.bug-tracking.roundup.user |
|---|---|
| Message-ID | <DM6PR08MB477858C64DB8630CE11011B8CAC90@DM6PR08MB4778.namprd08.prod.outlook.com> |
I'm using TAL and am having a quoting problem that I didn't have, was it roundup 1.5? Here is a snippet of the TAL code:
<script language="javascript" tal:define="ordering_providers python:[('- no selection -',-1)]+sorted([(op.name.plain(), op.id) for op in db['ordering_provider'].list()], key=lambda a:a[0].upper())"
tal:content="python:utils.objects_to_name_id_js(ordering_providers, 'names', 'ids')">
</script>
The define builds a list of (name, id) tuples. The objects_to_name_ids_js function generates Javascript code to initialize two arrays, names and ids using the ordering_providers array. The first few lines that it generates as a big string are:
var names = new Array();
var ids = new Array();
names[0] = "- no selection -";
names[1] = "redacted (NPI#1407170467 PH#123-456-7890- FAX# 987-654-3210) redacted";
I redacted the 2 names and changed the phone/fax numbers. The HTML code that is generated with the near-tip roundup is:
<script language="javascript">
var names = new Array();
var ids = new Array();
names[0] = "- no selection -";
names[1] = "redacted (NPI#1407170467 PH#123-456-7890- FAX# 987-654-3210) Maggie Miller";
In the old roundup it generates this HTML:
<script language="javascript">
var names = new Array();
var ids = new Array();
names[0] = "- no selection -";
names[1] = "redacted (NPI#1407170467 PH#123-456-7890- FAX# 987-654-3210) redacted";
The TAL code is identical for both. Note that the latest roundup quotes the string, changing quotes to "e;s.
Is there a way with the new roundup to turn off the quoting and just have the raw text?
Tom Ekberg
Senior Computer Specialist, Lab Medicine
4th Floor, Pat Steel Building
Department of Laboratory Medicine
Work: (206) 520-4856
Email: [email protected]
_______________________________________________
Roundup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/roundup-users