[google-appengine] Re: What's wrong with this??

2009-03-06 Thread Gipsy Gopinathan
Most likely you are missing a '/' in front of the css link   like
'/media/yourcss.css'  versus 'media/yourcss.css'

On Fri, Mar 6, 2009 at 8:05 AM, Gipsy Gopinathan wrote:

> How are you linking your css in you template? probably something messed up
> there.Did you checked the html source generated and verified the css link
> is working by directly accessing it?
>
> cheers
> gipsy
>
>
> On Fri, Mar 6, 2009 at 7:49 AM, arnie  wrote:
>
>>
>> I have moved the media folder [that contains all css, images etc] out
>> of the templates directory
>> still the same problem
>> now my app.yaml is like this
>> handlers:
>> - url: /media
>>  static_dir: media
>> >>
>>
>
>
> --
> cheers
> Gipsy
>



-- 
cheers
Gipsy

--~--~-~--~~~---~--~~
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: What's wrong with this??

2009-03-06 Thread Gipsy Gopinathan
How are you linking your css in you template? probably something messed up
there.Did you checked the html source generated and verified the css link is
working by directly accessing it?

cheers
gipsy

On Fri, Mar 6, 2009 at 7:49 AM, arnie  wrote:

>
> I have moved the media folder [that contains all css, images etc] out
> of the templates directory
> still the same problem
> now my app.yaml is like this
> handlers:
> - url: /media
>  static_dir: media
> >
>


-- 
cheers
Gipsy

--~--~-~--~~~---~--~~
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: Dev_appserver.py opening not helloworld

2009-02-13 Thread Gipsy Gopinathan
I guess on you machine the file association for *.py files are set to
notepad.exe. Either cahnge that or try running
python dev_appserver.py helloworld\

On Fri, Feb 13, 2009 at 11:35 AM, Bob  wrote:

>
> python 2.5
> google sdk
>
> First i have to say I have had this issue twice now. Tuesday when I
> downloaded the apps engine and Python I did the helloworld Tutorial
> built the helloworld.py file and the app.yalm file stored it in the
> helloworld directory under the google directory tree as instructed...
>
> then I ran
> dev_appserver.py helloworld\
>
> as instructed... the windows system window came up with the file
> structure pointing to the proper place and then the weird thing
>
> dev_appserver.py file opened in notebook ...O.O  well I don't think
> this was the result I was supposed to get.. so I tried the
> http://localhost:8080
> and sure enough page load error... I looked over the lines of code in
> the files .. nope they are correct.
>
> tried again.. same problem
>
> re-typed the lines of code to a new notebook file by hand no copy
> pasting in case any white space was in the lines of code and saved
> them to the helloworld dir and tried the loacalhost again and voila...
> the file ran correctly.
>
> Now the weirder part
>
> I have not changed the setting on my helloworld folders files since
> wednesday and today I came in and tried
>
> dev_appserver.py helloworld\
>
> the same problem occurred...Okay now that's really weird. I don't have
> gremlins nor yard monkeys that could mess with these files...So any
> idea what could be causig this issue.. i have yet to resolve it today
> after having re written the files...and re-saved them...
>
> >
>


-- 
cheers
Gipsy

--~--~-~--~~~---~--~~
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: Fetch callback

2009-01-18 Thread Gipsy Gopinathan
I think you have to use the absolute path  in your fetch call
ie  test = urlfetch.fetch('http://yourappid.appspot.com/check'+check)

On Sun, Jan 18, 2009 at 7:54 PM, ehmo  wrote:

>
> Hey guys,
> i'm trying to do something like this
>
> class check(webapp.RequestHandler):
>
>  def get(self):
>
>url = self.request.get('url')
>self.response.out.write(url)
>
> class MainHandler(webapp.RequestHandler):
>  def get(self):
>
>  url = "http://google.com";
>  query_args = {'url':url}
>
>  check = urllib.urlencode(query_args)
>  test = urlfetch.fetch('/check'+check)
>
> def main():
>  application = webapp.WSGIApplication([('/',
> MainHandler),('/check',check)],
>   debug=True)
>  wsgiref.handlers.CGIHandler().run(application)
>
>
> if __name__ == '__main__':
>  main()
>
>
>
> but result is always
>
>raise InvalidURLError(str(e))
> InvalidURLError: ApplicationError: 1
>
> i can't find anything in docu about how to do something like this,
> maybe someone can help me? i'm preparing that check function for
> javascript ajax call, that's the reason why i'm using fetch for this.
>
> thnx
>
> --
>  [who cares?]
> http://blog.synopsi.com
>
>
> >
>


-- 
cheers
Gipsy

--~--~-~--~~~---~--~~
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: typical scenario

2009-01-12 Thread Gipsy Gopinathan
I guess you can use the import statement in the other directories to access
anything from DB floder
lets say if you have  models.py in DB folder contains your data model
classes
then  in the other directories you can access it by

from DB import models




On Mon, Jan 12, 2009 at 9:09 AM, arnie  wrote:

>
> Hi all
> I have three folders
> BusinessList
> Conversion
> DB
>
> First two folders contains one WSGI app [no UI] each. The last folder
> contains a datta model [2 tables with 1- to Many relationship]
> Each WSGI app accesses the data model in DB folder. My problem is that
> If I place the data model file in DB folder then none of the wsgi app
> is able to locate it. If I copy the datamodel file in each of the wsgi
> folder, it works
> My urgent requirement is to access the data model file in DB folder?
> What should I do?
> All the three folders are in C:\APP\
>
> >
>


-- 
cheers
Gipsy

--~--~-~--~~~---~--~~
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: user login URLs in html/javascript

2009-01-11 Thread Gipsy Gopinathan
I am gald that you have resolved it. But still still wondering why you have
to hard code these links

On Sun, Jan 11, 2009 at 4:48 PM, thebrianschott wrote:

>
> Gipsy,
>
> Yes I finally got the signout link, also. It was tricky because it
> never appeared in the address bar, so I had to read it from the status
> bar and transcribe it manually into code. For reference sake this is
> the link I got. I think anyone could use it but with their own
> appspot.com link substituted.
>
>
> http://carpoolfinder.appspot.com/_ah/logout?continue=https://www.google.com/accounts/Logout%3Fcontinue%3Dhttp://carpoolfinder.appspot.com/%26service%3Dah
>
> Thank you, again for your help.
>
> On Jan 10, 11:05 pm, "Gipsy Gopinathan"  wrote:
> > go tohttp://dpaste.com/107358/
> >
> > You should be able create the logout link by just changing it to
> >
> > users.create_logout_url("/") instead of users.create_login_url("/")
> >
> > On Sat, Jan 10, 2009 at 9:43 PM, thebrianschott  >wrote:
> >
>
>
> Brian in Atlanta
>
> >
>


-- 
cheers
Gipsy

--~--~-~--~~~---~--~~
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: External database dump

2009-01-11 Thread Gipsy Gopinathan
I think one other wired way of achieving this will be to go for a javascript
Ajax solution.
Let the javascript in browser do the xml parsing and hit appengine for each
entities via an Ajax request.

in this case you have the control of including a wait period between your
calls.


cheeers
gipsy




On Sun, Jan 11, 2009 at 6:45 AM, gabon  wrote:

>
> I started optimizing everywhere. Now I have a textarea input where I
> paste a json string (I presume is faster to parse than xml). I still
> got problems.
>
> Is it really the solution to split the operation in more manual steps?
> Is it not possible to have an automatized and longer process, giving
> for instance breaks to the CPU with time.sleep() ?
>
> How could I split in an automatic way the update of thousands of
> entities? I am thinking on redirecting the page to a new url passing
> the data to update and every time processing some. It sounds pretty
> crazy, but if the limit is the time to generate a page I don't see
> other solutions.
>
> With bulkloader, you mean the actionscript 3 library?
>
>
> Thanks, chr
>
> On Jan 11, 12:18 pm, Greg Temchenko  wrote:
> > I guess you have to split your XML file and work with it by steps.
> > Did you see how bulkloader works?
> >
> > On Jan 11, 2:04 pm, gabon  wrote:
> >
> > > I would like to use GAE with the data created and maintained in a
> > > different application in a different server. My solution was to
> > > generate an xml file with all the data and parse it to create/update
> > > the GAE related entities.
> > > Clearly this is not a CPU friendly solution (especially considering
> > > that fetch operations are considered as CPU operations!) and I get a
> > > nice "Dude, this is whack!" message with errors and CPU quota warning
> > > in the logs. I will try to copy the xml MANUALLY in an input field to
> > > get rid of the errors (this procedure looks whack to me!), but since
> > > the entities to update are thousands, I have the feeling that won't be
> > > enough.
> >
> > > Is there any other recommended way to work with large data without
> > > creating CPU issues? I don't know using time.sleep() to give the CPU a
> > > break? It seems the CPU errors are pretty common, probably Google
> > > should give more info about how to avoid them.
> >
> > > Thanks, chr
> >
>


-- 
cheers
Gipsy

--~--~-~--~~~---~--~~
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: user login URLs in html/javascript

2009-01-10 Thread Gipsy Gopinathan
go to http://dpaste.com/107358/

You should be able create the logout link by just changing it to

users.create_logout_url("/") instead of users.create_login_url("/")


On Sat, Jan 10, 2009 at 9:43 PM, thebrianschott wrote:

>
> Believe it or not, I now need a link like the other one, but for
> logging out.
> It seems a little silly to ask Gipsy to run the sample program again,
> revised to
> get a logout, but I don't quite see how to add such a sample to my
> existing
> app. Could you tell me how to do so, please?
>
> On Jan 10, 12:58 am, thebrianschott  wrote:
> > Got it. And it takes me back just right.
> >
> > Thanks so much Gipsy. IOU, big time.
> >
> > Brian in Atlanta
> >
>


-- 
cheers
Gipsy

--~--~-~--~~~---~--~~
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: Interaction with other server

2009-01-10 Thread Gipsy Gopinathan
Do you have access to install appengine sdk on your hosting server? If yes
then you can do an appcfg update to your appengine app from the hosting
server for updating your static or any other files..



On Tue, Jan 6, 2009 at 4:50 AM, gabon  wrote:

>
> Tired of the performances of my cheap hosting, I would like to try to
> see if GAE is the answer for small projects that could be quite
> demanding and should be reliable.
> Let's imagine I have a database on my personal website and I would
> like to kind of mirror it every now and then to have almost the same
> data in my GAE app. I could for instance call a dynamically generated
> text file (ie xml) with all the needed data from my personal webserver
> and copy in the GAE app directory. Can I copy static files to the app
> directory from my app (in python)? I read network operations are
> limited but I presume not that much.
>
> Any suggestion?
>
> Thanks, chr
>
> >
>


-- 
cheers
Gipsy

--~--~-~--~~~---~--~~
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: user login URLs in html/javascript

2009-01-09 Thread Gipsy Gopinathan
You can find the sample code here http://dpaste.com/107358/

On Fri, Jan 9, 2009 at 11:43 PM, Gipsy Gopinathan wrote:

> no that is my appspot
>
> On Fri, Jan 9, 2009 at 11:41 PM, thebrianschott wrote:
>
>>
>> Yes, that's what I want. Your appspot is not  kangchenchunga, is it.
>> You just found it for me, right?
>>
>> That's great. Thanks a bunch.
>>
>> On Jan 10, 12:35 am, thebrianschott  wrote:
>> > Wait, I think I know how to do it. Give me a few seconds until I can
>> > use my honey's computer and I'll get back to you.
>> >
>> > Brian
>> >>
>>
>
>
> --
> cheers
> Gipsy
>



-- 
cheers
Gipsy

--~--~-~--~~~---~--~~
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: user login URLs in html/javascript

2009-01-09 Thread Gipsy Gopinathan
no that is my appspot

On Fri, Jan 9, 2009 at 11:41 PM, thebrianschott wrote:

>
> Yes, that's what I want. Your appspot is not  kangchenchunga, is it.
> You just found it for me, right?
>
> That's great. Thanks a bunch.
>
> On Jan 10, 12:35 am, thebrianschott  wrote:
> > Wait, I think I know how to do it. Give me a few seconds until I can
> > use my honey's computer and I'll get back to you.
> >
> > Brian
> >
>


-- 
cheers
Gipsy

--~--~-~--~~~---~--~~
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: user login URLs in html/javascript

2009-01-09 Thread Gipsy Gopinathan
check http://kangchenchunga.appspot.com/

is this what you want ?

On Fri, Jan 9, 2009 at 11:28 PM, thebrianschott wrote:

>
> Gipsy,
>
> Could you just run the sample on your webpage and tell me what you
> get?
>
> Thanks,
>
> Brian
>
> On Jan 10, 12:19 am, "Gipsy Gopinathan"  wrote:
> > I think now I understood what you want . You want to provide a link in
> your
> > home page for your users to login if they want to. And if the user is
> logged
> > in, the application may behave differently. Is my understanding is right?
> >
> > If yes. Then i don't understand why you are not able provide the login
> url
> > generated by the users.create_login_url in your home page handler as a
> link
> > in the home age ? Am I misssing something?
> >
> > I think I should be able to send you a sample app for this soon.
> >
> > On Fri, Jan 9, 2009 at 11:04 PM, thebrianschott  >wrote:
> >
> >
> >
> >
> >
> > > Gipsy,
> >
> > > Let me clarify. Right now a number of non-user people are using my app
> > > and I cannot afford to stick in such code while it its being used,
> > > even by beta-tester types. I don't want to risk losing them.
> >
> > > Brian
> >
> > > On Jan 10, 12:00 am, thebrianschott  wrote:
> > > > Gipsy,
> >
> > > > I think it may satisfy my requirement, but how do I learn what that
> > > > url is ("the_url" below)? It looks like I need to know that url so I
> > > > can put it in as hard-coded link [ Click here if
> you
> > > > wish to login] on my app's home page.
> >
> > --
> > cheers
> > Gipsy
> >
>


-- 
cheers
Gipsy

--~--~-~--~~~---~--~~
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: user login URLs in html/javascript

2009-01-09 Thread Gipsy Gopinathan
I think now I understood what you want . You want to provide a link in your
home page for your users to login if they want to. And if the user is logged
in, the application may behave differently. Is my understanding is right?

If yes. Then i don't understand why you are not able provide the login url
generated by the users.create_login_url in your home page handler as a link
in the home age ? Am I misssing something?

I think I should be able to send you a sample app for this soon.





On Fri, Jan 9, 2009 at 11:04 PM, thebrianschott wrote:

>
> Gipsy,
>
> Let me clarify. Right now a number of non-user people are using my app
> and I cannot afford to stick in such code while it its being used,
> even by beta-tester types. I don't want to risk losing them.
>
> Brian
>
> On Jan 10, 12:00 am, thebrianschott  wrote:
> > Gipsy,
> >
> > I think it may satisfy my requirement, but how do I learn what that
> > url is ("the_url" below)? It looks like I need to know that url so I
> > can put it in as hard-coded link [ Click here if you
> > wish to login] on my app's home page.
> >
>
> >
>


-- 
cheers
Gipsy

--~--~-~--~~~---~--~~
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: user login URLs in html/javascript

2009-01-09 Thread Gipsy Gopinathan
Brian,

If you let your users click the url generated by
users.create_login_url('/xyz')  it will take the users to the google'
account login page and after successfull completion of login , google
automatically redirect the user to the url you have provided ('xyz' in this
case). I think this satisfies your requirement. Is it?



On Fri, Jan 9, 2009 at 10:29 PM, thebrianschott wrote:

>
> Geoffrey,
>
> Yes, but that seems to assume that the user MUST login, and only users
> who need to login for the result they wish to achieve, need to login.
>
> If you can tell me a link to where I can send people who get to my
> application home page and wish to login, can go, I can enter that link
> for them to click and I can tell them to come back to my page (with
> the back button?) when they complete login. But I don't know where to
> send: what URL link would I give them?
>
> Thanks,
>
> Brian in Atlanta
> >
>


-- 
cheers
Gipsy

--~--~-~--~~~---~--~~
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: user login URLs in html/javascript

2009-01-09 Thread Gipsy Gopinathan
Okay.

Then from your handler for '/' check if users.get_current_user() is None if
true then redirect
(DO NOT write the response back), to the url generated by
users.create_login_url("/")

code will be something like
'

...

self.redirect(users.create_login_url("/"))



Or you can  write back the below html snippet

""""""



On Fri, Jan 9, 2009 at 6:04 PM, thebrianschott wrote:

>
> yes, Gipsy.
>
> On Jan 9, 6:35 pm, "Gipsy Gopinathan"  wrote:
> > Brian,
> >
> > So you want your home page to be the login page and redirect them back to
> > the form when login is complete?
> >
>
> >
>


-- 
cheers
Gipsy

--~--~-~--~~~---~--~~
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: user login URLs in html/javascript

2009-01-09 Thread Gipsy Gopinathan
Brian,

So you want your home page to be the login page and redirect them back to
the form when login is complete?

On Fri, Jan 9, 2009 at 5:27 PM, thebrianschott wrote:

>
> Gipsy,
>
> No, I want the people who do login to return to this home page. If the
> form entry is not empty it would be Ok for them to be sent on "/?
> place=" but that is more than I expect.
>
> Brian in Atlanta
>
> On Jan 9, 5:57 pm, "Gipsy Gopinathan"  wrote:
> > I assume that,your requirement is ,when the user submit the form:
> >
> > 
> >
> >
> >  
> >
> > You want them to be taken to the login page if they are not already
> logged
> > in ?
> >
> > If my assumption is correct, then as Geoffrey  said ,check if
> > users.get_current_user() is None and if true re-direct to the login url
> > generated by users.create_login_url("/") else do the stuff the handler
> > suppose to .
> >
> > On Fri, Jan 9, 2009 at 3:31 PM, thebrianschott  >wrote:
> >
> >
> >
> >
> >
> > > I don't quite get it. I hope if by seeing the existing form on the
> > > page and my attempt at following your suggestions, you can spell out
> > > more specifically what you mean Geoffrey and Gipsy.
> >
> > > This is the existing form.
> > >  
> > >
> > >
> > >  
> >
> > > Is this what your mean? If not, can you correct it, please?
> > >  Sign in or register.  > > a>     )
> >
> > > On Jan 9, 4:00 pm, Geoffrey Spear  wrote:
> > > > You just create an ordinary link using the value returned by
> > > > users.create_login_url("/") as the link location, and display the
> link
> > > > only if users.get_current_user() is None.
> >
> > > [snip]
> > > > > On Jan 9, 1:21 pm, "Gipsy Gopinathan" 
> wrote:
> >
> > > > > > I guess you can just do a redirect to the url  generated by
> > > > > > users.create_login_url("/") from your handler when user clinks on
> the
> > > link
> > > > > > in your home page.
> >
> > > Brian in Atlanta
> >
> > --
> > cheers
> > Gipsy
> >
>


-- 
cheers
Gipsy

--~--~-~--~~~---~--~~
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: user login URLs in html/javascript

2009-01-09 Thread Gipsy Gopinathan
I assume that,your requirement is ,when the user submit the form:


   
   
 

You want them to be taken to the login page if they are not already logged
in ?

If my assumption is correct, then as Geoffrey  said ,check if
users.get_current_user() is None and if true re-direct to the login url
generated by users.create_login_url("/") else do the stuff the handler
suppose to .


On Fri, Jan 9, 2009 at 3:31 PM, thebrianschott wrote:

>
> I don't quite get it. I hope if by seeing the existing form on the
> page and my attempt at following your suggestions, you can spell out
> more specifically what you mean Geoffrey and Gipsy.
>
> This is the existing form.
>  
>
>
>  
>
> Is this what your mean? If not, can you correct it, please?
>  Sign in or register.  a> )
>
> On Jan 9, 4:00 pm, Geoffrey Spear  wrote:
> > You just create an ordinary link using the value returned by
> > users.create_login_url("/") as the link location, and display the link
> > only if users.get_current_user() is None.
> >
> [snip]
> > > On Jan 9, 1:21 pm, "Gipsy Gopinathan"  wrote:
> >
> > > > I guess you can just do a redirect to the url  generated by
> > > > users.create_login_url("/") from your handler when user clinks on the
> link
> > > > in your home page.
>
> Brian in Atlanta
> >
>


-- 
cheers
Gipsy

--~--~-~--~~~---~--~~
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: user login URLs in html/javascript

2009-01-09 Thread Gipsy Gopinathan
I guess you can just do a redirect to the url  generated by
users.create_login_url("/") from your handler when user clinks on the link
in your home page.

On Fri, Jan 9, 2009 at 12:12 AM, thebrianschott wrote:

>
> http://code.google.com/appengine/docs/users/loginurls.html
>
> At the link above it explains how to send a user off to sign-in or
> register in a python script. The code below does what I want, but I
> don't know how to do the same thing as an html hyperlink on my
> applications "home" page. Not all users need to login to proceed
> further into my application, only those who want to create their own
> map.
>
>greeting = ("Sign in or register." %
>  users.create_login_url("/"))
>
>self.response.out.write("%s" % greeting)
>
> Thanks,
>
> Brian in Atlanta
>
> Btw if you want to play with my app, it is at
> http://carpoolfinder.appspot.com
> There is a sort of a sandbox that does not require a sign-in if you
> enter "Tester" (without quotes) in the inital text field.
>
>
>
> >
>


-- 
cheers
Gipsy

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