Maybe. Let's wait for Massimo's answer because he successfully deployed 
that code on GAE.

Massimo, here is the log for the first problem. It occurs when user tries 
to Search:

  File "C:\Users\Denis\Desktop\latest web2py\web2py\gluon\restricted.py", 
> line 217, in restricted
>     exec ccode in environment
>   File "C:\Users\Denis\Desktop\latest 
> web2py\web2py\applications\HandsCo\controllers/default.py", line 310, in 
> <module>
>   File "C:\Users\Denis\Desktop\latest web2py\web2py\gluon\globals.py", 
> line 372, in <lambda>
>     self._caller = lambda f: f()
>   File "C:\Users\Denis\Desktop\latest web2py\web2py\gluon\tools.py", line 
> 3239, in f
>     return action(*a, **b)
>   File "C:\Users\Denis\Desktop\latest 
> web2py\web2py\applications\HandsCo\controllers/default.py", line 187, in 
> personal
>     people = 
> db(query).select(orderby=alphabetical,left=Friends.on(Friends.friended==db.auth_user.id))
>   File "C:\Users\Denis\Desktop\latest web2py\web2py\gluon\dal.py", line 
> 10335, in select
>     return adapter.select(self.query,fields,attributes)
>   File "C:\Users\Denis\Desktop\latest web2py\web2py\gluon\dal.py", line 
> 5162, in select
>     (items, tablename, fields) = self.select_raw(query,fields,attributes)
>   File "C:\Users\Denis\Desktop\latest web2py\web2py\gluon\dal.py", line 
> 5021, in select_raw
>     filters = self.expand(query)
>   File "C:\Users\Denis\Desktop\latest web2py\web2py\gluon\dal.py", line 
> 4881, in expand
>     return expression.op(expression.first, expression.second)
>   File "C:\Users\Denis\Desktop\latest web2py\web2py\gluon\dal.py", line 
> 4678, in OR
>     def OR(self,first,second): raise SyntaxError("Not supported")
> SyntaxError: Not supported




The search function is:

> form = SQLFORM.factory(Field('name',requires=IS_NOT_EMPTY(), label='', 
> widget=lambda field,value: SQLFORM.widgets.string.widget(field, value, 
> _placeholder=T('Enter a name'))))
>     if form.accepts(request):
>         tokens = form.vars.name.split()
>         query = reduce(lambda a,b:a&b,
>                       
> [db.auth_user.first_name.contains(k)|db.auth_user.last_name.contains(k) \
>                            for k in tokens])
>         people = 
> db(query).select(orderby=alphabetical,left=Friends.on(Friends.friended==db.auth_user.id))
>     else:
>        people = []





On Saturday, November 30, 2013 12:38:09 AM UTC+2, Alan Etkin wrote:
>
> So now I have two problems:
>>
>
> Just consider that GAE not deploying your app is a different issue than a 
> recipe failing. It may be that the fb clone was not meant to work with that 
> platform. Perhaps you can create a new thread about the fb clone issue.
>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to