[web2py] Is only first argument available for "ordering factor" with GAE?

2012-08-20 Thread JungHyun Kim
Hello everyone! I have question about order by option with GAE. This code works well on my local (not GAE test server), but has problem on google app engine. (even on the GAE local test server) I filtered messages which has end_time after now, and tried to sort them by reg_time. messages

Re: [web2py] Is only first argument available for "ordering factor" with GAE?

2012-08-20 Thread JungHyun Kim
Thank you Lundell! If it is a limitation, I don't need to argue with it. You saved me! 2012년 8월 20일 월요일 오후 11시 25분 49초 UTC+9, Jonathan Lundell 님의 말: > > On 20 Aug 2012, at 7:20 AM, JungHyun Kim > > wrote: > > I have question about order by option with GAE. > This c

[web2py] SQLFORM.factory + Multiple Tables + Upload Field + GAE Blob Problem

2012-08-20 Thread JungHyun Kim
Hello! I have a problem with upload field. I tried to upload a file through one form with two tables using SQLFORM.factory. It worked OK on web2py rocket server. But with GAE server (both local test server and real GAE server), I can't upload files. The problem is blob is None after uploaded.

[web2py] Re: Is only first argument available for "ordering factor" with GAE?

2012-08-20 Thread JungHyun Kim
you want though. > > you know about select().sort(lambda r:...) right? i use that on GAE to > get around extra indexes and illegal sorts. :) > > On Monday, August 20, 2012 7:20:05 AM UTC-7, JungHyun Kim wrote: >> >> Hello everyone! >> >> I have question abo

[web2py] Re: SQLFORM.factory + Multiple Tables + Upload Field + GAE Blob Problem

2012-08-20 Thread JungHyun Kim
> On Monday, 20 August 2012 11:49:14 UTC-5, JungHyun Kim wrote: >> >> Hello! >> >> I have a problem with upload field. >> >> I tried to upload a file through one form with two tables using >> SQLFORM.factory. >> It worked OK on web2py rocket server. B

[web2py] Re: Can a table field reference a list?

2012-08-21 Thread JungHyun Kim
As I know, you can write code like, Field('activity_id','list:reference activities'), >From official document, http://web2py.com/books/default/chapter/29/6#DAL,-Table,-Field list:reference IS_IN_DB(db,table.field,format,multiple=True) 2012년 8월 21일 화요일 오후 6시 24분 9초 UTC+9, lyn2py 님의 말: > >

[web2py] Re: SQLFORM.factory + Multiple Tables + Upload Field + GAE Blob Problem

2012-08-21 Thread JungHyun Kim
set it. This thread was helpful. https://groups.google.com/forum/?fromgroups=#!search/%5Bweb2py%5D$20Re:$20Uploading$20Excel$20and$20reading$20from$20it/web2py/3wKcHVPBFI0/IobcR5OGcu8J 2012년 8월 21일 화요일 오후 2시 13분 37초 UTC+9, JungHyun Kim 님의 말: > > > I opend the ticket. > > Iss

[web2py] Question about multiple OAuth (Twitter or Facebook) Problem.

2012-08-29 Thread JungHyun Kim
Hello, I am trying multiple login methods- Twitter or Facebook. I want to know the best practice to support multiple login methods (multiple OAuth). Currently, I got a problem. I can redirect to login form of facebook or twitter. But after I successfully logged in the OAuth providers, I can't l

[web2py] Is there anyone who running web2py application on Redhat openshift?

2012-05-15 Thread JungHyun Kim
Hello. I'm now trying to use redhat openshift. I am struggling access database - mysql-5.1 - which is set via openshift cartridge. I got admin user(admin), password and database name(we2py). So I modified database setting in models/db.py as db = DAL('mysql://admin:passw...@web2py-codingday.rhc

[web2py] Re: Is there anyone who running web2py application on Redhat openshift?

2012-05-15 Thread JungHyun Kim
t; > > On Tuesday, May 15, 2012 3:55:07 AM UTC-4, JungHyun Kim wrote: >> >> Hello. I'm now trying to use redhat openshift. >> >> I am struggling access database - mysql-5.1 - which is set via openshift >> cartridge. >> I got admin user(admin), password

[web2py] AttributeError: 'thread._local' object has no attribute 'request'

2012-05-15 Thread JungHyun Kim
Hi. I got a error "AttributeError: 'thread._local' object has no attribute 'request'" when trying to run web2py with wsgi. The application was "welcome" which is sample application of web2py. in db.py from gluon.tools import Auth, Crud, Service, PluginManager, prettydate auth = Auth(db, hmac_

[web2py] Re: AttributeError: 'thread._local' object has no attribute 'request'

2012-05-16 Thread JungHyun Kim
The server is Redhat Openshift (cloud PAAS). It uses Python 2.6 on RHEL 6. 2012년 5월 17일 목요일 오전 12시 34분 54초 UTC+9, Massimo Di Pierro 님의 말: > > what python version and os version do you have? > > On Tuesday, 15 May 2012 22:20:00 UTC-5, JungHyun Kim wrote: >> >>

[web2py] Re: Is there anyone who running web2py application on Redhat openshift?

2012-05-16 Thread JungHyun Kim
that the app will run. > > I'll try and create a mysql cartridge and put the model in that to see > what happens. > > Andrew > > On Tuesday, May 15, 2012 2:55:07 AM UTC-5, JungHyun Kim wrote: >> >> Hello. I'm now trying to use redhat openshift. >>

[web2py] Re: AttributeError: 'thread._local' object has no attribute 'request'

2012-05-16 Thread JungHyun Kim
Unfortunately, I can't. No way to change python version of the server. But I tried with python 2.6 on my OS X. It works well. 2012년 5월 17일 목요일 오전 6시 17분 54초 UTC+9, Massimo Di Pierro 님의 말: > > Any chance you can try 2.5 or 2.7? > > On Wednesday, 16 May 2012 11:28:32 UTC-5, J

[web2py] Re: AttributeError: 'thread._local' object has no attribute 'request'

2012-05-16 Thread JungHyun Kim
prised. > > On Wednesday, 16 May 2012 21:33:24 UTC-5, JungHyun Kim wrote: >> >> Unfortunately, I can't. No way to change python version of the server. >> >> But I tried with python 2.6 on my OS X. It works well. >> >> >> 2012년 5월 17일 목요일 오전 6시 17분 54

[web2py] Re: Is there anyone who running web2py application on Redhat openshift?

2012-05-18 Thread JungHyun Kim
t web2py app to Openshift with no issues but > haven't played with it much. I'd be happy to share my project dir so you > can see how I've structured my wsgi file and various libs like gluon so > that the app will run. > > I'll try and create a mysql cartridge

[web2py] Re: Is there anyone who running web2py application on Redhat openshift?

2012-05-19 Thread JungHyun Kim
.. > > .openshift/ (nothing modified) > action_hooks > cron > markers > > On Tuesday, May 15, 2012 2:55:07 AM UTC-5, JungHyun Kim wrote: >> >> Hello. I'm now trying to use redhat openshift. >> >> I am struggling access database - mysql

[web2py] Re: Is there anyone who running web2py application on Redhat openshift?

2012-05-21 Thread JungHyun Kim
ift > other than Pythonanywhere or Fluxflex which are all free for low traffic. > > Thanks, > Changju > > On Saturday, May 19, 2012 7:44:31 PM UTC+9, JungHyun Kim wrote: >> >> Andrew!! >> >> It works !!! >> >> Two things were keys. >> &g

[web2py] Re: Is there anyone who running web2py application on Redhat openshift?

2012-05-25 Thread JungHyun Kim
that's > all. > You can serve your own web service like Blog in a minute. > > Anyway, can I send an email in person? > > On Monday, May 21, 2012 4:05:43 PM UTC+9, JungHyun Kim wrote: >> >> >> Hello Changju. >> >> Frankly speaking, I