Hi Nickolas, Different versions of your app get completely different runtimes. Changing a global variable as in your example does not change the file, only the value in the loaded module.
-Nick Johnson On Mon, Feb 8, 2010 at 7:34 AM, Nickolas Daskalou <[email protected]> wrote: > I know we're able to access different versions of our apps using a URL > like: > > http://VERSION.latest.APPID.appspot.com > > My question is: Is the code for each version "totally separate" from other > versions, or are only the files that have been changed between versions > "separated" (in which case files that have NOT changed between versions are > "served" from the same file/cached file for all versions of the app)? > > To make it more clear, suppose I have two files in my app (settings.py and > main.py), and two versions, "1" and "2": > > settings.py (which is identical for both versions): > ... > last_version = None > ... > > main.py (for app version "1"): > ... > import settings > if settings.last_version is None: > settings.last_version = "1" > assert settings.last_version == "1" > ... > > main.py (for app version "2"): > ... > import settings > if settings.last_version is None: > settings.last_version = "2" > assert settings.last_version == "2" > ... > > If I visit 1.latest.myappid.appspot.com first and then > 2.latest.myappid.appspot.com (while the app version "1" is still in the > App Engine cache), will the assert fail because version "1" and "2" are > accessing the same settings.py? > > Nick > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
