Hello,
reason for those kind of problems is that GAE separates application code
from static data.
so if you try from application do level redirects it will fail with that
cryptic message as it does not have direct access
to files , workaround is to use special function in application that will do
I was having the same problem with robots.txt on GAE. Thanks for the
tip Michael.
Does anyone know a better way to do it?
On Sep 17, 8:35 am, howesc wrote:
> i have no idea myself, and got it working and so that's what i use.
> if i ever try and run multiple web2py apps on the same app engine
>
i have no idea myself, and got it working and so that's what i use.
if i ever try and run multiple web2py apps on the same app engine
application i'll want to figure it out so that i can have different
favicons for each.
cfh
On Sep 15, 4:57 pm, Michael Ellis wrote:
> I'm guessing that GAE decide
I'm guessing that GAE decides at launch time which file types it will serve
from which directories and that routes.py is unable to override the block at
request time. I'm basing that on the "blocking access" msg when Launcher
started and the 403's since those are issued when access is forbidden as
On Sep 15, 2010, at 4:39 PM, Michael Ellis wrote:
> Problem resolved, thanks to suggestion from cfh. Added explicit favicon.ico
> handler
That's good, but do we understand why the original didn't work? (Just curious.)
>
>
> - url: /favicon.ico
> static_files: applications/init/static/favic
Problem resolved, thanks to suggestion from cfh. Added explicit favicon.ico
handler
- url: /favicon.ico
static_files: applications/init/static/favicon.ico
upload: applications/init/static/favicon.ico
There's a bonus. It works without routes.py. That's handy because I didn't
want to have t
On Sep 15, 2010, at 3:46 PM, Michael Ellis wrote:
> The error is reported by GAE Launcher, the test app you use before deploying
> to GAE. Hence the OS X path. Nothing else seems wrong; the app's pages
> render correctly etc.
I don't know. Does routes.py do the right thing for favicon.ico if yo
The error is reported by GAE Launcher, the test app you use before deploying
to GAE. Hence the OS X path. Nothing else seems wrong; the app's pages
render correctly etc.
On Wed, Sep 15, 2010 at 6:16 PM, Jonathan Lundell wrote:
> On Sep 15, 2010, at 2:53 PM, Michael Ellis wrote:
> >
> > Not sur
On Sep 15, 2010, at 2:53 PM, Michael Ellis wrote:
>
> Not sure if this is related; apologies if not.
> I have web2py/routes.py containing
>
> """
> routes_in = (
> ('/favicon.ico', '/init/static/favicon.ico'),
> ('/robots.txt', '/init/static/robots.txt'),
> )
> routes_out = ()
> """
>
> and ap
Not sure if this is related; apologies if not.
I have web2py/routes.py containing
"""
routes_in = (
('/favicon.ico', '/init/static/favicon.ico'),
('/robots.txt', '/init/static/robots.txt'),
)
routes_out = ()
"""
and app.yaml containing
"""
- url: /(?P.+?)/static/(?P.+)
static_files: applic
please check trunk in 5 minutes.
On Sep 14, 9:56 am, Jonathan Lundell wrote:
> Massimo, here's a patch. In rewrite.py, change this:
>
> exec routesfp.read() in symbols
>
> to this:
>
> exec routesfp.read().translate(None, '\r') in symbols
>
> (and test)
>
> I notice that there's s
Thanks Jonathan, I will fix this tonight.
massimo
On Sep 14, 9:56 am, Jonathan Lundell wrote:
> Massimo, here's a patch. In rewrite.py, change this:
>
> exec routesfp.read() in symbols
>
> to this:
>
> exec routesfp.read().translate(None, '\r') in symbols
>
> (and test)
>
> I not
Massimo, here's a patch. In rewrite.py, change this:
exec routesfp.read() in symbols
to this:
exec routesfp.read().translate(None, '\r') in symbols
(and test)
I notice that there's something like this elsewhere:
def compile2(code,layer):
"""
The +'\n' is necessary els
On Sep 13, 2010, at 11:44 PM, Miguel Goncalves wrote:
> Hi
>
> So I installed the debugging code and following the errors it was giving me I
> got rid of empty lines.
OK, this took longer than it should have, largely thanks to Python's terse
error messages.
The problem is that you're using DOS
Hi
So I installed the debugging code and following the errors it was
giving me I got rid of empty lines.
My current routes.py is (I also attached it compressed to this mail):
#!/usr/bin/python
# -*- coding: utf-8 -*-
default_application = 'reviewround' # ordinarily set in base routes.py
defau
On Sep 12, 2010, at 11:46 AM, Miguel Goncalves wrote:
> I attached the zipped routed file to this email.
Thank you. It looks OK.
Miguel, if I send you a small patch for rewrite.py, to add a little debugging,
could you run it for me?
What I have in mind (and feel free to do this for yourself if
On Sep 9, 2010, at 9:07 PM, Miguel Goncalves wrote:
> in my case I was using the following routes.py
What I'm looking for is the file itself (preferably zipped). I'm wondering if
there might be something in it that isn't surviving a paste into email, because
I don' t seen anything in line 3 that
in my case I was using the following routes.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
default_application = 'reviewround' # ordinarily set in base routes.py
default_controller = 'default' # ordinarily set in app-specific
routes.py
default_function = 'index'
routes_in = ( ('/', '
On Sep 9, 2010, at 9:17 AM, mdipierro wrote:
>
> try:
>import rocket
> except:
>logging.warn('unable to import Rocket')
>
> True. This is supposed to fail on GAE. I will change it. No need to
> try the import and issue a warning on GAE.
...which leaves the mystery of the routes syntax er
try:
import rocket
except:
logging.warn('unable to import Rocket')
True. This is supposed to fail on GAE. I will change it. No need to
try the import and issue a warning on GAE.
On Sep 9, 9:57 am, Jonathan Lundell wrote:
> On Sep 9, 2010, at 7:49 AM, mdipierro wrote:
>
>
>
> > gaehanld
On Sep 9, 2010, at 7:49 AM, mdipierro wrote:
>
> gaehanlder.py does not import Rocket.
main imports Rocket
> Is it possible gaehandler.py or
> app.yaml were modified?
>
> On Sep 9, 9:40 am, Jonathan Lundell wrote:
>> On Sep 9, 2010, at 6:27 AM, mdipierro wrote:
>>
>>
>>
>>> I do not underst
gaehanlder.py does not import Rocket. Is it possible gaehandler.py or
app.yaml were modified?
On Sep 9, 9:40 am, Jonathan Lundell wrote:
> On Sep 9, 2010, at 6:27 AM, mdipierro wrote:
>
>
>
> > I do not understand where "unable to import Rocket" comes from.
>
> That's a strange error. Also, the s
On Sep 9, 2010, at 6:27 AM, mdipierro wrote:
>
> I do not understand where "unable to import Rocket" comes from.
That's a strange error. Also, the syntax error on routes.py is on line 3, which
is empty; there's no code until line 4.
My advice is to resolve the first error (Rocket) before worryi
I do not understand where "unable to import Rocket" comes from.
On Sep 9, 8:03 am, Richard wrote:
> I am using the following simple routes.py and find it works fine on
> GAE with latest trunk:
>
> routes_in = (
> ('/', '/init/default/index'),
> ('/topics', '/init/topics/index'),
> )
> rou
I am using the following simple routes.py and find it works fine on
GAE with latest trunk:
routes_in = (
('/', '/init/default/index'),
('/topics', '/init/topics/index'),
)
routes_out = [(second, first) for (first, second) in routes_in]
On Sep 9, 9:49 pm, mdipierro wrote:
> i cannot re
i cannot reproduce this problem. Can you send me your routes?
On Sep 7, 1:28 am, Miguel Goncalves wrote:
> Hi
>
> I guess this bug has not been fixed yet?
>
> I am getting the following error:
>
> unable to import Rocket
> Your routes.py has a syntax error Please fix it before you restart web2py
Hi Massimo
Did you, by any chance, make any progress on this issue?
Thanks
Miguel
On Tue, Sep 7, 2010 at 4:43 AM, mdipierro wrote:
> Thanks for the reminder. I will look into this today.
>
> On Sep 7, 1:28 am, Miguel Goncalves wrote:
> > Hi
> >
> > I guess this bug has not been fixed yet?
>
Thanks for the reminder. I will look into this today.
On Sep 7, 1:28 am, Miguel Goncalves wrote:
> Hi
>
> I guess this bug has not been fixed yet?
>
> I am getting the following error:
>
> unable to import Rocket
> Your routes.py has a syntax error Please fix it before you restart web2py
> Traceb
Hi
I guess this bug has not been fixed yet?
I am getting the following error:
unable to import Rocket
Your routes.py has a syntax error Please fix it before you restart web2py
Traceback (most recent call last):
File "/base/data/home/apps/reviewround/1.344628390884008259/gluon/rewrite.py",
line
oh... you are going to be busy! Congratulations!!!
On May 25, 9:44 pm, Chris S wrote:
> I copied the above posted lines into a file named routes.py.
>
> Dont prioritize this on my behalf. I'm gonna be busy for a bit, my
> daughter was born today, so web2py project wont be seeing testing for
> a
I copied the above posted lines into a file named routes.py.
Dont prioritize this on my behalf. I'm gonna be busy for a bit, my
daughter was born today, so web2py project wont be seeing testing for
a few weeks :)
On May 25, 8:23 pm, Richard wrote:
> did you copy routes.example.py to routes.py?
did you copy routes.example.py to routes.py?
On May 16, 1:00 am, Chris S wrote:
> I've updated my code and run it again. Sorry for the delay last time
> I downloaded a web2py trunk it was in Subversion. While it didn't
> take me long to get it in Mercurial it did trigger a lot of Subversion/
>
I aplogize. Did not have time to test it. Will do so by the end of the
week.
On May 25, 10:12 am, Chris S wrote:
> Any news on this bug? I havent seen anything.
>
> Chris S wrote:
> > Apparently it doesn't copy/paste correctly. The second routes.py that
> > I used kept the entire routes_in in a
Any news on this bug? I havent seen anything.
Chris S wrote:
> Apparently it doesn't copy/paste correctly. The second routes.py that
> I used kept the entire routes_in in a single line.
>
> On May 15, 10:00 am, Chris S wrote:
> > I've updated my code and run it again. Sorry for the delay last
Apparently it doesn't copy/paste correctly. The second routes.py that
I used kept the entire routes_in in a single line.
On May 15, 10:00 am, Chris S wrote:
> I've updated my code and run it again. Sorry for the delay last time
> I downloaded a web2py trunk it was in Subversion. While it didn'
I've updated my code and run it again. Sorry for the delay last time
I downloaded a web2py trunk it was in Subversion. While it didn't
take me long to get it in Mercurial it did trigger a lot of Subversion/
Mercurial/Git research simply because I had not heard of them
before :P
New error log:
--
Looks like same problem I've been having.
On May 10, 5:23 pm, Chris S wrote:
> Does routes.py work on GAE? I've recently deployed an app which used
> the 5-line routes.py from the book for routing robots.txt and
> favicon.icon. I just wanted to get rid of that 100% error rate on
> those two fil
I have a GAE app that successfully uses routes.py, though it was with
an older version of web2py.
On May 11, 7:23 am, Chris S wrote:
> Does routes.py work on GAE? I've recently deployed an app which used
> the 5-line routes.py from the book for routing robots.txt and
> favicon.icon. I just wan
On May 12, 1:36 pm, Chris S wrote:
> This only errors on the live. I've been running on the development
> server with no problem.
>
> Do I simply copy trunk over my working copy and deploy?
yes
> Where do I find the extra error information? Does it just show up in
> the error log same as abo
This only errors on the live. I've been running on the development
server with no problem.
Do I simply copy trunk over my working copy and deploy?
Where do I find the extra error information? Does it just show up in
the error log same as above?
I'll try and get this updated in a the next couple
I just posted a new gluon.rewrite.py in trunk that should report more
details about your error.
Massimo
On May 11, 7:53 am, Chris S wrote:
> The routes.py file that I am attempting to use is:
> ---
> routes_in = (('/favicon.ico', '/init/static/favicon.ico'),
> ('/robots.txt
Do you get this error only after deplyment or also locally with
dev_appserver?
On May 11, 7:53 am, Chris S wrote:
> The routes.py file that I am attempting to use is:
> ---
> routes_in = (('/favicon.ico', '/init/static/favicon.ico'),
> ('/robots.txt', '/init/static/robots.txt
The routes.py file that I am attempting to use is:
---
routes_in = (('/favicon.ico', '/init/static/favicon.ico'),
('/robots.txt', '/init/static/robots.txt'),
)
routes_out = ()
---
I believe that is a direct copy and paste of the example from the
online book.
On May 10
As far as I know it works well on GAE. The errors you get:
"Your routes.py has a syntax error. Please fix it before you restart"
indicates that there is an error in your routes.py.
If you post it we can help you isolate the problem.
Massimo
On May 10, 4:23 pm, Chris S wrote:
> Does routes.py w
44 matches
Mail list logo