[web2py] 2.0.6 on GAE - Routing issues and ticket unrecoverable

2012-09-02 Thread Udi Milo
Hi, Decided to start fresh a new project with 2.0.6 on GAE. downloaded it, unzipped, created app.yaml, created routes.py ran it in PyDev and welcome comes out fine. I cannot go to admin app for some reason, and every error is ticket unrecoverable. Any idea how to debug it or solutions? --

[web2py] Re: 2.0.6 on GAE - Routing issues and ticket unrecoverable

2012-09-03 Thread Udi Milo
Normally admin is disabled in app.yaml although that does not see to be > your problem. > > If you get an unrecoverable thicket there should be a log in gae log. > Please let us know what you see. > > On Sunday, 2 September 2012 18:11:09 UTC-5, Udi Milo wrote: >> >> H

[web2py] LinkedIn Integration - my step by step tutorial

2012-04-03 Thread Udi Milo
It took a while to figure out, but this is my version on how to use linkedIn in web2py, comments are much appreciated. (its very detailed and intended for people that are just starting out like me) Enjoy! first thing, go to linkedIn.com and get your key and secret. after getting it: *1. add li

[web2py] 3rd party login hooks

2012-04-10 Thread Udi Milo
Hi, I was wondering if the 3rd party login integration (I'm using linkedIn to logic) has a hook I can use in my linkedinAccount.py that is called every time a user logs in or the first time she logs in? I want to hold the user from the db in my hand and refresh a cache object. get_user is not t

[web2py] Hebrew encoding

2012-05-31 Thread Udi Milo
part of my product receives user text, saves it and shows it later. one of my users added a hebrew text attached below and I do not know how to translate it into letter instead of hex. simple text.encode('UTF-8') doesn't work, and I am far from being an expert in the subject. can someone help me

Re: [web2py] Hebrew encoding

2012-06-02 Thread Udi Milo
ons? > > 2012/6/2 Massimo Di Pierro > >> I am not sure there is an error here. Is the problem that the characters >> are not dissplayed properly? Are you using a custom layout? If so, is it >> setting the utf8 encoding or does it tell the browser it is latin1? &g

[web2py] Twitter OAuth lib

2012-06-02 Thread Udi Milo
I want to allow my users to connect a Twitter account to their account. Which python lib do you recommend using? Twython uses requests which I'm having difficulty running on 2.5.4 and I have not tried any other yet.

Re: [web2py] Twitter OAuth lib

2012-06-03 Thread Udi Milo
can you point me to an example or where can I find the code? On Sunday, June 3, 2012 4:35:57 AM UTC-4, mcm wrote: > > Twitter oauth is supported by web2py natively. > > mic > Il giorno 03/giu/2012 02:37, "Udi Milo" ha scritto: > >> I want to allow my users to

[web2py] Modules on Google App Engine

2012-03-13 Thread Udi Milo
Hi all, I've added a new api.py file to the /modules directory. I've also added a call from my default.py "from api import Api" working locally, everything is fine. when deploying to GAE, I get No module named api can anyone suggest an answer to my problem?

Re: [web2py] Modules on Google App Engine

2012-03-14 Thread Udi Milo
mports inside the api > module, the web2py custom importer does not shows complete traceback for > that cases. > > On Tue, Mar 13, 2012 at 10:48 AM, Udi Milo wrote: > >> Hi all, >> >> I've added a new api.py file to the /modules directory. >> I'v

Re: [web2py] Modules on Google App Engine

2012-03-15 Thread Udi Milo
Another common problem is incompatibility with Python2.5 > > Take a look at LOG tab at your google app engine admin page, may be the > traceback is there. > > On Thu, Mar 15, 2012 at 12:19 AM, Udi Milo wrote: > >> The thing is that locally, it works. >> only when I

[web2py] LinkedIn integration

2012-03-21 Thread Udi Milo
Hi, I've been trying for some time now to get linkedIn integrated into a web2py website running on GAE, but I can't make it work. (im a python beginner) Can someone please help me? here is what I did: - added linkedin.py + model.py (from python-linkedin) to modules. - added from gluon.contrib.l

[web2py] efficient DB queries

2012-03-21 Thread Udi Milo
Hi, I have two db tables: board (name, created_on) article(board, name, title) currently, in my html I do a naive loop {{for article in articles}} {{=article.board.name}} {{pass}} I would like to change it and do something like: articles = db.select.all... board_ids = set(map(lambda a: a.b

[web2py] Re: efficient DB queries

2012-03-21 Thread Udi Milo
Anthony, Thanks for answering so quickly. I did mean board and not board_id My question is very basic. I know that the article table has an Id column that is really the board reference, but when I look at the result of the query and unification of: board_ids = set(map(lambda a: a.board, articles

[web2py] Re: efficient DB queries

2012-03-21 Thread Udi Milo
ne with more GAE experience can chime in. In an RDBMS, you > should be able to do: > > board_ids = set([a.board for a in articles]) > boards = db(db.boards.id.belongs(board_ids)).select() > > But not sure if that works on GAE. > > Anthony > > On Wednesday, March

[web2py] Re: efficient DB queries

2012-03-21 Thread Udi Milo
ed to 30 items per query (so you have > to break it up). Perhaps there is a better way, though. > > Anthony > > On Wednesday, March 21, 2012 9:26:44 PM UTC-4, Udi Milo wrote: >> >> It doesn't. >> I found this: >> """" >> GAE

[web2py] DAL Challenge

2012-03-26 Thread Udi Milo
Hi guys, I have an entity called article. I want to build the ability to comment on each article. comment at least need (created_on, user_id, article_id, text) I'm running on GAE. On my index page I'm showing 30-60 articles and I want each article to have its comments showing. how would you do

[web2py] Re: DAL Challenge

2012-03-27 Thread Udi Milo
Thanks! I'm trying to follow the logic of your suggestion all the way to rendering it, tell me if you have a better idea: once I hold the list of articles I want to show, I run over the list and get all the comment ids, I issue a large query with the ids of all comments for all articles togethe

[web2py] LinkedIn Integration - Tutorial needed

2012-03-27 Thread Udi Milo
Hi, For a while now I've been trying to get the linkedIn module to work as described in the book and in different posts around the web, without success. Can someone who has done it please describe how this can be achieved? Thanks!