Possible bug using | at end of element of list:string

40 views
Skip to first unread message

Scott Hunter

unread,
Nov 29, 2017, 8:12:56 AM11/29/17
to web2py-users
Suppose I have a list:string field, and I put `A|B` in for one of the elements.  This works as expected, and gets represented internally as `|A||B|`.

Now suppose I break that up into 2 elements: `A|` followed by `B`.  When I submit the form (a smart grid, in my case), it comes back with a single element: `A||B`, with the internal representation `|A|||B|`.

The same thing happens if the 2 elements as `A` followed by `|B`: single element `A||B`, internally `|A||B|`.

This looks like a bug to me, but thought I'd check here first.  I'm using v2.16.1 under python2.7 on MacOS 10.12.6

- Scott

Anthony

unread,
Nov 30, 2017, 7:31:56 PM11/30/17
to web2py-users
Looks like a bug -- I submitted an issue: https://github.com/web2py/pydal/issues/504

Anthony

Massimo Di Pierro

unread,
Dec 2, 2017, 3:26:44 PM12/2/17
to web2py-users
I agree this is a bug. The problem is that this means our internal representation is ambiguous. We cannot fix this without changing the internal representation and breaking backward compatibility.
Will think of a solution. Thanks for catching this.
Reply all
Reply to author
Forward
0 new messages