Re: [web2py] Re: Making slides with web2py and markmin

2011-10-12 Thread jot.be
markmin2html attached. Sample code/CLI-snippet (same as below): https://gist.github.com/90231ab4713fb2e6588b On Wed, Oct 12, 2011 at 5:14 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Yes, the markimin and the sample code. > > On Oct 12, 10:03 am, jotbe wrote: > > I am not using

Re: [web2py] Re: Issues with TAG() encoding and XML().flatten()

2011-09-13 Thread jot.be
uffer.decode(encoding).encode('utf8') File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeEncodeError: 'ascii' codec can't encode characte

Re: [web2py] How to flash a message after a callback

2011-09-12 Thread jot.be
Hi, On Mon, Sep 12, 2011 at 4:57 AM, Noel Villamor wrote: > I have a button which does the following callback: > > ajax('{{=URL('callback')}}',['btn1'],':eval');" > > Then I have the following callback function in my controller: > > def callback(): >db(db.tbl.id==100).update(data='sampledata

Re: [web2py] Re: Issues with TAG() encoding and XML().flatten()

2011-09-12 Thread jot.be
Hi Massimo, thanks for your answer! On Mon, Sep 12, 2011 at 2:19 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > Are you sure your input is UTF8? The web2py markmin_serializer is in > gluon/html.py and it is relatively straightforward. Nothing can really > go bad there. I suspect yo