Traceback (most recent call last):
File "/base/data/home/apps/web2try/1.8/gluon/restricted.py", line 64, in restricted
ccode=compile(code,layer,'exec')
File "/base/data/home/apps/web2try/1.8/applications/Form/controllers/default.py", line 1
response.session_id=None
^
SyntaxError: invalid syntax
This request used a high amount of CPU, and was roughly 1.4 times over the average request CPU limit. High CPU requests have a small quota, and if you exceed this quota, your app will be temporarily disabled.
I have only tested it locally, I do not have an account so I have not tried to upload it.It seems to be a timeout issue. Very strange since this is a very minimalist example.
Massimo
>> controllers/default.py" ,
I had similar (mysterious) problems when I was trying to run some
synthetically correct files which were manually edited on Widnows
platform. I spent almost an hour until I identified that the problem
is caused by new lines (did not have time to find out WHY new lines
are causing the problem, neither to send you a patch).
BTW save through the web form DOES convert the new lines - so I
suppose that you have already stumbled upon this problem ?
So - Sorry, I have not yet tried web2py in GAE - still fighting with
it on "normal" platforms - I just guessed that maybe this problem was
similar to what I have observed.
Let's see limodou's feedback.
COOL!
publish "step by step" how to web2py run in GAE in u Chinese Blog;
so CPyUG people can sharing us feeling!
Sayeahoo!
--
'''过程改进乃是开始催生可促生靠谱的人的组织!
PI keeps evolving organizations which promoting people be good!
'''http://zoomquiet.org
Pls. usage OOo to replace M$ Office. http://zh.openoffice.org
Pls. usage 7-zip to replace WinRAR/WinZip. http://7-zip.org
You can get the truely Freedom 4 software.
--
suggest append us into code.google web2py,
so we can writing chinese wiki page in
http://code.google.com/p/web2py/
;) ?
>
>
> --
> I like python!
> UliPad <<The Python Editor>>: http://code.google.com/p/ulipad/
> UliSpot <<UliPad Snippets>>: http://ulipad.appspot.com
> My Blog: http://www.donews.net/limodou
> >
>
--
what if there is an intentional \r\n in a string in the code?Anyway, in trunk 213
> what if there is an intentional \r\n in a string in the code?
web2py already does the same conversion when file is saved through
admin web interface:
def edit():
""" admin controller function """
...
try:
data=request.vars.data.replace('\r\n','\n').strip()
open(apath(filename),'w').write(data)
response.flash="file saved on "+time.ctime()
except: pass
Yes it can.
On May 8, 2008, at 12:44 AM, ygao wrote:too bad! the web2py sqldb can't support datetimeSQLField('comment_time', 'datetime', required=True, default=datetime.datetime.today()))
Anyway, limodou got it running on the appengine already:
http://web2try.appspot.com/Form/default/index
Massimo