You can use AJAX.
When visitors loaded this page, the browser can automatic send an AJAX
get request, and fill the login/logout div. Also you can try to use their
cookies.

So your pages can be static html with JavaScript.

2009/5/29 狼外婆 <heavyzh...@gmail.com>

>
> The login/logout URL is dynamic, while your static files are, hm,
> static.
> So the short answer is that you cannot embed the dynamic URL in your
> static files.
> You can provide a template, which contains the login/logout URL and an
> iframe to wrap your static file.
>
> Regards.
>
> On May 28, 2:52 am, jonbutler88 <jonbutle...@googlemail.com> wrote:
> > Hi all,
> >
> > Just started using app engine yesterday, and so far very impressed. Im
> > used to PHP, so the different structure takes some getting used to,
> > but its coming along nicely. I've run into some problems with my
> > site's structure, and was wondering what the web app way of solving
> > this was.
> >
> > I have my home page which is a template, populated by my main python
> > script. I also have several other 95% static pages, which at the
> > moment are being served statically. My problem is that on my home page
> > I have a test to see if a user is logged in. If the user isn't logged
> > in they get a login url, else they get a logout url. On my static
> > pages however, there seems to be no way to implement this. This is the
> > only dynamic value I need on the whole page, do I need to make a new
> > python file or is there a way around this?
> >
> > Thanks in advance,
> > Jon
> >
>

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

Reply via email to