Forget, try to use " " instead of ' ' if you can... It should works...

Richard

On Thu, Aug 18, 2011 at 5:17 PM, Richard Vézina <[email protected]
> wrote:

> It must be the ' ' :
>
> Pass
> T("('#8:2','t')")
> Out[3]: <lazyT "('#8:2','t')">
>
> Not Pass
> In [1]: T('('#8:2','t')')
>
> Richard
>
> On Thu, Aug 18, 2011 at 5:14 PM, Richard Vézina <
> [email protected]> wrote:
>
>> Typo in your code... Don't know if it's a copy/paste...
>>
>> On Thu, Aug 18, 2011 at 4:47 PM, TheSweetlink <[email protected]>wrote:
>>
>>> I am trying to use IS_IN_SET() in a 1 field SQLFORM.factory().
>>>
>>> IS_IN_SET() is receiving a list of tuples like:
>>>
>>
>> *Here :*
>>
>>
>>> * ([*'#8:5', 'Bob'), ('#4:2', 'Jane'), ... ]
>>>
>>> The set shows up just fine as an dropdown select box but form.errors
>>> shows:
>>> " <Storage: {'my_input_name': <Lazy T 'value not allowed'>}> "
>>>
>>> I tried to place T.force(None) in models and top of controller but
>>> wish to avoid such a solution as my project will be internationalized
>>> not long after launch.
>>>
>>> I would greatly appreciate it if anyone could point me in the right
>>> direction.
>>>
>>> Thanks in advance for your time.
>>>
>>> -David
>>
>>
>> Richard
>>
>
>

Reply via email to