[google-appengine] Re: request: versions accessed by URL param rather than prefix?

2009-01-06 Thread David Symonds

On Tue, Jan 6, 2009 at 10:15 AM, Ben Nevile ben.nev...@gmail.com wrote:

 Sadly I cannot redirect before returning to Facebook.  I can ask
 Facebook to redirect, but if I redirect to a non-canvas page it won't
 render within the Facebook environment.  Does that make sense?

 For example, if I wanted to redirect to 2.latest.myapp.appspot.com I
 can send Facebook this directive:

 fb:redirect url='http://2.latest.myapp.appspot.com' /

Why can't you do a normal HTTP 304 redirect?


Dave.

--~--~-~--~~~---~--~~
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] Re: request: versions accessed by URL param rather than prefix?

2009-01-06 Thread Ben Nevile

Dave,

When dealing with Facebook and FBML you can't do a 304 redirect.
Facebook is making the request to your server on behalf of the user.

Ben



On Jan 6, 1:35 am, David Symonds dsymo...@gmail.com wrote:
 On Tue, Jan 6, 2009 at 10:15 AM, Ben Nevile ben.nev...@gmail.com wrote:
  Sadly I cannot redirect before returning to Facebook.  I can ask
  Facebook to redirect, but if I redirect to a non-canvas page it won't
  render within the Facebook environment.  Does that make sense?

  For example, if I wanted to redirect to 2.latest.myapp.appspot.com I
  can send Facebook this directive:

  fb:redirect url='http://2.latest.myapp.appspot.com'/

 Why can't you do a normal HTTP 304 redirect?

 Dave.
--~--~-~--~~~---~--~~
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] Re: request: versions accessed by URL param rather than prefix?

2009-01-06 Thread boson

Ben,

I also am developing FB apps with GAE.  I set up a Google Group for
this:
http://groups.google.com/group/facebook-and-google-app-engine
and we've touched on the topic of how to best do app versioning there
too.  Your proposal is interesting!

That group isn't a substitute for this one, but it's a good
supplemental place to get all the FB+GAE people together under one
virtual roof.  Stop by and say hello :)


On Jan 5, 12:13 pm, Ben Nevile ben.nev...@gmail.com wrote:
 Hi,

 Much of my work with App Engine is on Facebook applications.  Facebook
 acts as a proxy through which all requests flow. Every application
 registers a callback URL that Facebook directs traffic at.  So for
 instance

 http://apps.facebook.com/my_application/foo

 becomes

 http://my_application.appspot.com/foo

 One of my favorite GAE features is that I can access and test
 different versions of my App Engine code.  Under most circumstances
 the URL subdomain-based access (eg,
 1.latest.my_application.appspot.com,
 2.latest.my_application.appspot.com, etc) is very convenient, but this
 convention doesn't fit well with Facebook's idea of the fixed callback
 URL.  I can set up a dummy application to access the version of code
 that I want, but this is A. kludgy and B. inconvenient because all of
 the social context is absent in the dummy application (other friends
 using the app, etc.)

 I would very much like to be able to access different versions of my
 code using a query parameter.  Then I could test my Facebook apps with
 URLs like

 http://apps.facebook.com/my_application/foo?APP_VERSION=2

 which would be translated into

 http://my_application.appspot.com/foo?APP_VERSION=2

 I'm hoping something like this already possible.  If not, consider
 this a feature request!  :)

 Ben
--~--~-~--~~~---~--~~
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] Re: request: versions accessed by URL param rather than prefix?

2009-01-06 Thread David Symonds

On Wed, Jan 7, 2009 at 6:30 AM, Ben Nevile ben.nev...@gmail.com wrote:

 When dealing with Facebook and FBML you can't do a 304 redirect.
 Facebook is making the request to your server on behalf of the user.

So it's Facebook that doesn't follow 304 redirects? That sounds broken.


Dave.

--~--~-~--~~~---~--~~
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] Re: request: versions accessed by URL param rather than prefix?

2009-01-06 Thread David Symonds

On Wed, Jan 7, 2009 at 8:44 AM, David Symonds dsymo...@gmail.com wrote:
 On Wed, Jan 7, 2009 at 6:30 AM, Ben Nevile ben.nev...@gmail.com wrote:

 When dealing with Facebook and FBML you can't do a 304 redirect.
 Facebook is making the request to your server on behalf of the user.

 So it's Facebook that doesn't follow 304 redirects? That sounds broken.

An alternative workaround would be to do a urlfetch to your own
application from your main handler, which can then contain the version
switching logic.


Dave.

--~--~-~--~~~---~--~~
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] Re: request: versions accessed by URL param rather than prefix?

2009-01-05 Thread Marzia Niccolai
Hi,

There is nothing currently built-in that would allow you to do what you
described.

However, it would be _very_ easy to check for that parameter yourself in a
request and redirect the request to the appropriate version number if it the
version listed is not the default.

-Marzia

On Mon, Jan 5, 2009 at 12:13 PM, Ben Nevile ben.nev...@gmail.com wrote:


 Hi,

 Much of my work with App Engine is on Facebook applications.  Facebook
 acts as a proxy through which all requests flow. Every application
 registers a callback URL that Facebook directs traffic at.  So for
 instance

 http://apps.facebook.com/my_application/foo

 becomes

 http://my_application.appspot.com/foo



 One of my favorite GAE features is that I can access and test
 different versions of my App Engine code.  Under most circumstances
 the URL subdomain-based access (eg,
 1.latest.my_application.appspot.com,
 2.latest.my_application.appspot.com, etc) is very convenient, but this
 convention doesn't fit well with Facebook's idea of the fixed callback
 URL.  I can set up a dummy application to access the version of code
 that I want, but this is A. kludgy and B. inconvenient because all of
 the social context is absent in the dummy application (other friends
 using the app, etc.)

 I would very much like to be able to access different versions of my
 code using a query parameter.  Then I could test my Facebook apps with
 URLs like

 http://apps.facebook.com/my_application/foo?APP_VERSION=2

 which would be translated into

 http://my_application.appspot.com/foo?APP_VERSION=2


 I'm hoping something like this already possible.  If not, consider
 this a feature request!  :)

 Ben

 


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---