I finally think I'm getting there and I see that data after it is
inserted - gae is doing something to the list.

After enter a value then I go back to edit it it has a u in front of
every list value

['a','b']  insert then edit

it now looks like

[u'a',u'b']

now the IS_LIST doesn't work on gae when a value is updated :(

-wes

On Thu, Feb 18, 2010 at 5:07 PM, Wes James <[email protected]> wrote:
> Thank you Massimo.
>
> http://web2pyapi.appspot.com/ide/default/models
>
> is working now!
>
> It only has one record right now, but I'm trying to figure out how to
> parse lines like:
>
> l="if request.env.web2py_runtime_gae:"
> l=l.replace('.',' ')
> l=l.replace('_',' ')
> l=l.replace(':',' ')
> l=l.split(' ')
>
> then write a
>
> for w in l
>   get all combinations - like "i" "if" "r" "re" "req" "requ" "reque"
> "reques" "request" "e", etc. for searches
>
> thx again for your help!
>
> -wes
>
> On Thu, Feb 18, 2010 at 4:43 PM, mdipierro <[email protected]> wrote:
>> db(db.table.slp=='value').select() checks that 'value' is in the slp
>>
>> db(db.table.slp<'value').select() checks that at least one element is
>> less than 'value'
>>
>> db(db.table.slp>'value').select() checks that at least one element if
>> greater then 'value'
>>
>> slp is the name of your field of type StringListProperty. The selected
>> field will be a list.
>>
>>
>> On Feb 18, 5:23 pm, Wes James <[email protected]> wrote:
>>> I can't find any examples of web2py and gae select with
>>> StringListProperty.  Where did you find the example below?  I've
>>> looked in the web2py list emails, but I can't see any other working
>>> examples.
>>>
>>> How do you do this with web2py
>>>
>>> pseudo code:
>>>
>>> form(_query)
>>>
>>> def aview
>>>     query=request.vars._query
>>>
>>>     #how do you do this part with stringlistproperty/gae
>>>     rows=db(??).select(??)
>>>
>>> thx,
>>>
>>> -wes
>>>
>>> On Sun, Feb 14, 2010 at 3:57 AM, Richard <[email protected]> wrote:
>>> > sounds like this will be useful.
>>>
>>> > StringListProperty is a native gae type now supported by web2py:
>>> >http://code.google.com/appengine/docs/python/datastore/typesandproper...
>>> >http://groups.google.com/group/web2py/browse_thread/thread/7d284c9fa4...
>>>
>>> > To get around the like problem you can do something like this:
>>> > Model.all().filter('ngrams >=', word).filter('ngrams <', word +
>>> > u'\ufffd')
>>>
>>> > Check out Thadeus's code for a full example.
>>>
>>> > There's also info how to do this in the docs:
>>> >http://code.google.com/appengine/docs/python/datastore/queriesandinde...
>>>
>>> > Richard
>>>
>>> > On Feb 14, 1:52 pm, Wes James <[email protected]> wrote:
>>> >> Richard,
>>>
>>> >> Do you have a python example of this?  I'll check on
>>> >> StringListProperty also and see how it works. (would this work on
>>> >> gae?) I was trying somthing else since like is not supported, but this
>>> >> might work.  I would like this site to provide quick search on
>>> >> anything that would be helpful in building a web2py app.  There are a
>>> >> lot of things in tools.py that could go here for instance, and maybe
>>> >> another page with docstrings?  Whatever anyone thinks would be
>>> >> helpful.
>>>
>>> >> -wes
>>>
>>> >> On Sat, Feb 13, 2010 at 4:26 PM, Richard <[email protected]> wrote:
>>> >> > hi wes,
>>>
>>> >> > something like this could be really nice for browsing the function
>>> >> > docstrings. Do you intend to take it further?
>>>
>>> >> > If you use a StringListProperty to store all the ngrams (eg: web2py,
>>> >> > web2p, web2, web, we, w) then it could match partial words.
>>>
>>> >> > Richard
>>>
>>> > --
>>> > You received this message because you are subscribed to the Google Groups 
>>> > "web2py-users" group.
>>> > To post to this group, send email to [email protected].
>>> > To unsubscribe from this group, send email to 
>>> > [email protected].
>>> > For more options, visit this group 
>>> > athttp://groups.google.com/group/web2py?hl=en.
>>
>> --
>> You received this message because you are subscribed to the Google Groups 
>> "web2py-users" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to 
>> [email protected].
>> For more options, visit this group at 
>> http://groups.google.com/group/web2py?hl=en.
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.

Reply via email to