[google-appengine] Different behavior static_dir dev vs live

2009-09-22 Thread j...@q42.nl

I've found a difference in the behavior of static_dir directives in
app.yaml.

My app.yaml:
handlers:
- url: /js/y.js
  script: js_templ.py
- url: /js
  static_dir: js

All goes well in dev server, because the devserver uses the js
directory.

On the live server all statics are handled differently, so the live
server scans the app.yaml and it matches all the files against the
static_dir declarations. On the live server the file js_templ.py is
interpreted as a static file, because the static_dir: js matches it.

I think the development server should work exactly like the live
server on this point. The difference is only noticed on the live
server so it's hard to find it and the warnings aren't clear.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Slow response static javascript files on development server

2009-09-04 Thread j...@q42.nl

I have about 10 javascript/css files which are included in my html
pages, but it takes 1+ second to load each file on the development
server. This is highly anoying. Why isn't my static_dir handler using
Last-Modified/If-Modified-Since?
- url: /js
  static_dir: js
- url: /css
  static_dir: css

I've tried to set a expiration on the handlers as well as a
default_expiration.

These are the headers when I have expiration set:
Server  Development/1.0
DateFri, 04 Sep 2009 10:41:13 GMT
Content-Typeapplication/x-javascript
Expires Fri, 04 Sep 2009 11:41:13 GMT
Cache-Control   public, max-age=3600
Content-Length  100240

These are when expiration isn't set:
Server  Development/1.0
DateFri, 04 Sep 2009 10:41:18 GMT
Content-Typetext/css
Cache-Control   no-cache
Expires Fri, 01 Jan 1990 00:00:00 GMT
Content-Length  100240
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] static files not served with 304 but with 200 always

2009-09-03 Thread j...@q42.nl

I've got a bunch of static javascript files that are served with
status code 200 every time I refresh a page.

app.yaml:
handlers:
- url: /js
  static_dir: js

I've tried to set a global:
default_expiration: 1h
but that doesn't work

I couldn't find any discussion about expire or status code 304 in both
groups..

some tags that might help other to find this:
expire, 304, If-Modified-Since, Last-Modified
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Anyone using fiddler?

2009-09-03 Thread j...@q42.nl

I wanted to use fiddler on my local app engine development server. But
I get an error from fiddler:

[Fiddler] Connection to localhost failed.
Exception Text: No connection could be made because the target machine
actively refused it ::1:8080 (I'm working on vista, thats why the ipv6
address is show i guess)

I tried the usual fiddler workarounds (adding a dot, using machine
name), but that didn't work, still actively refusing

I need to somehow make the devserver listen to my machine name..
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] KeyError When Psyco is installed

2009-08-28 Thread j...@q42.nl

I was wondering whether the App Engine team is aware of this issue:
http://code.google.com/p/googleappengine/issues/detail?id=995

I'm not sure if this is a bug in psyco or app engine...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Have to verify AGAIN

2009-07-24 Thread j...@q42.nl

Hi,

I have to verify my google app account again, even though I all ready
registered. I also created some applications all ready!
Since I've used my mobile number allready in the first verification,
app engine complains about it being used all ready...
Can someone from google please activate my account?

Jaap
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---



[google-appengine] Consuming OAuth requests in app engine

2009-07-24 Thread j...@q42.nl

Hi all,

I'm creating an opensocial widget on hyves.nl (a dutch social
networking site). I'm calling a makeRequest with
RequestParamters.AUTHORIZATION set to SIGNED. The GET call is enriched
with several query string parameters like:
* opensocial_owner_id
* opensocial_viewer_id
* opensocial_app_id
* oauth_consumer_key
* oauth_token (empty)
* xoauth_signature_publickey
* oauth_signature_method
* oauth_nonce
* oauth_timestamp
* oauth_signature

How do I verify that this request is coming from the hyves.nl
opensocial container?
I've found that GData does some oauth stuff, but that Api needs to
fetch an oauth token, while I just want to verify that the SIGNED
request is indeed coming from the container...

Anyone any pointers to the right direction?

Jaap
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~--~~~~--~~--~--~---