On Fri, Oct 30, 2009 at 7:16 AM, Nick Jennings <nkj...@gmail.com> wrote:

>
> I'm very new to python, and not sure how to use the python console.
>

Thanks for reporting this - it looks like the web-based shell is failing at
this (at least in the latest version on launchpad).

Try the command line shell for now:

$ python web2py.py -S my_app -M


The  "-M" part will ensure that your models (and so your database tables)
are defined for the console.
You might also like having ipython (interactive Python) installed, as if it
is, it will be used (and, among other
things, you will have code completion available to you - by using the TAB
key).


> when i bring it up, and try to do anything i get errors i don't
> understand. I tried to create a post var with:
> post = db(db.post.id==1).select()[0]
> which did not work.
>

> clearly im missing something fundamental here, and would appreciate
> any guidance with how to properly use the python console. thanks in
> advance!
> -nick
>
>
> On Oct 30, 3:36 am, mdipierro <mdipie...@cs.depaul.edu> wrote:
> > Can you print to console the post.body? perhpas it is stored escaped
> > for some reason.
> >
> > On Oct 29, 8:33 pm, Nick Jennings <nkj...@gmail.com> wrote:
> >
> > > Hello All,
> >
> > >  I'm writing a simple blog and using tinyMCE for text formatting.
> > > Saving it to the database works fine, but when I try to view it, the
> > > XHTML is escaped. In the book it says I can use the XML function to
> > > specify I do not want the content escaped. In my simple blog,
> >
> > > In the default/show.html I put:
> >
> > > {{=XML(post.body, sanitize=True)}}
> >
> > >  But it doesn't seem to make any difference, all the formatting
> > > characters come out escaped, and showing up in the output.
> >
> > > Any help would be great!
> > > Thanks,
> > > -Nick
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to