On Wednesday, February 18, 2015 at 7:56:04 AM UTC-8, dangne...@juno.com 
wrote:
>
> Day 1 newbie. I feel I have entered a new wonderland of capabilities, and 
> lucky to have found web2py, with all the noise being made about flask and 
> django. Flask is all "now to do this you have to install that" and django's 
> "awesome documentation" made me want to give up. Web2py on the other hand 
> seems to be teaching itself, and the tutorial I'm watching is great. But 
> one problem:
>
> I typed this html correctly (see closing tags) but this is what shows up 
> on the screen, and I can't save it because web2py knows it's wrong:
>
>     def hello():
>         return <html><body><h1>Hello World<h1><body><html>
>
> Neither the forward slash on the main keyboard or the number pad works in 
> the editor:
>

Not sure if this is what's zapping you, but the web2py "ide" editor likes 
to provide close tags as soon as you've entered the open tag.  You could 
have a close tag for BODY and HTML sitting there when you try to type your 
own close tag.

My vague memory of something I did last week says "it will let you", but 
maybe not.

You can, of course, edit the file outside of the "ide" editor; I often use 
emacs on a linux system.  Notepad on Windows isn't so good (doesn't 
understand linux line endings), but I think Wordpad works, and certainly 
NoteTab Light.

Good luck!

/dps

 

>
> http://127.0.0.1:8000/admin/default/edit/app1/controllers/test.py?id=controllers__test__py
>
> Tested the key, it works. The question mark works in general and on the 
> editor, it types a forward slash anywhere else including the url bar of the 
> same page. I have never encountered this anywhere before.
>
> I made a different test file in controllers and also a test file in view, 
> no forward slash is possible in either editor.
>
> Nothing wrong with this keyboard: 
> ////////////////////////////////////////////////////////////////////
>
> Thanks.
>
> Scott
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to