<html>
<head>
<base href="http://bugzilla.ecoinformatics.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Check for problems with sanitized RecordToken labels"
href="http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5722#c12">Comment # 12</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Check for problems with sanitized RecordToken labels"
href="http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5722">bug 5722</a>
from <span class="vcard"><a class="email" href="mailto:barseghian@nceas.ucsb.edu" title="Derik Barseghian <barseghian@nceas.ucsb.edu>"> <span class="fn">Derik Barseghian</span></a>
</span></b>
<pre>I haven't gotten parenthesis (or better, arbitrary strings) working.
Here's some testing showing behavior w/ my patch. All seems to work except note
the inconsistency it introduces with being unable to refer to a label with a
prefix number in its name.
<span class="quote">>> [myLabel= {4,5}].myLabel</span >
{4, 5}
<span class="quote">>> [myLabel A= {4,5}].myLabel A</span >
{4, 5}
<span class="quote">>> [myLabel A 5= {4,5}].myLabel A 5</span >
{4, 5}
<span class="quote">>> [5myLabel A 5= {4,5}].5myLabel A 5</span >
Error parsing expression "[5myLabel A 5= {4,5}].5myLabel A 5"
Because:
Encountered " <DOUBLE> ".5 "" at line 1, column 22.
<span class="quote">>> {5myLabel A 5= {4,5}}.length()</span >
1
<span class="quote">>> foo = {5myLabel A 5= {4,5}, 6myLab 6={6,7}}</span >
{5myLabel A 5 = {4, 5}, 6myLab 6 = {6, 7}}
<span class="quote">>> bar = {6myLab 6={6,7}}</span >
{6myLab 6 = {6, 7}}
<span class="quote">>> merge(foo,bar)</span >
{5myLabel A 5 = {4, 5}, 6myLab 6 = {6, 7}}
<span class="quote">>> intersect(foo,bar)</span >
{6myLab 6 = {6, 7}}
<span class="quote">>> foo + foo</span >
{5myLabel A 5 = {8, 10}, 6myLab 6 = {12, 14}}
<span class="quote">>> foo * foo</span >
{5myLabel A 5 = {16, 25}, 6myLab 6 = {36, 49}}
<span class="quote">>> foo / foo</span >
{5myLabel A 5 = {1, 1}, 6myLab 6 = {1, 1}}
<span class="quote">>> foo = foo + foo</span >
{5myLabel A 5 = {8, 10}, 6myLab 6 = {12, 14}}</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>