[web2py] Displaying QR Code PIL Image object

2014-10-02 Thread Ben Sharif
I am generating a qr code using python module qrcode. I am not needing to store the qr code image in a database, just generate it each time. controller: def create_qr(): text = "hello world qr code" qr_code = qrcode.make(text) view: doing the above, the controller is returning a P

[web2py] Display PIL Image object

2014-10-02 Thread Ben Sharif
I am using qrcode library to generate a QR code. controller: def create_qr(): import qrcode text = "hello world test string" img = qrcode.make(text) return locals() view: using the above code, img is being returned as a PIL Image object but the view is not displaying an im

[web2py] Re: Any problem in list:reference in 2.10 ?

2015-05-04 Thread Ben Sharif
Hi, I was having this problem too (since 2.10.4), everything worked OK in 2.9.11. Has exactly the same error as Ariya above. Running on pythonanywhere I just tried your fix from github. In this file: web2py > gluon > packages > dal > pydal > helpers > methods.py I replaced: if isinstance(db._a