Thanks!  I was hoping that Web2py had this function already based on the 
documentation for MARKMIN Links:

http://web2py.com/books/default/chapter/29/05/the-views#MARKMIN
----------

Adding a link with the qr: prefix such as
qr:http://web2py.com 

results in the corresponding QR code being embedded and linking the said 
URL.
----------
I can write custom code to do it, but didn't want to reinvent the wheel if 
Web2py already had it! 

Thanks!
--Peter

On Wednesday, March 3, 2021 at 2:38:31 AM UTC-5 kell...@gmail.com wrote:

> Hey Peter!
>
> I don't see any code in the markmin python script that could generate qr 
> codes. 
>
> I think the ones that are there are static. 
>
> You can use a qr code generator lib with python and combine with markmin 
> qr Syntax though. 
>
> I think. 
>
>
>
> On Mon, Mar 1, 2021, 15:59 Peter Woolf <pwo...@gmail.com> wrote:
>
>> Hello,
>> I see that web2py has documentation for generating QR codes from links 
>> using markmin, but it isn't working in my hands.  Am I doing it incorrectly 
>> or is there a bug?
>>
>> Here is a minimal example of code in a view:
>> ---------------
>> {{from gluon.contrib.markmin.markmin2html import markmin2html}}
>> {{=XML(markmin2html("Hello **world** [[link qr:http://web2py.com]]";))}}
>> {{=markmin2html("Hello **world** [[link qr:http://web2py.com]]";)}}
>> ------------
>> This just creates a normal link:
>>
>> -----------
>>
>> Hello *world* link
>> <p>Hello <strong>world</strong> <a href="qr:http://web2py.com
>> ">link</a></p>
>>
>> ----------
>>
>> Thoughts?  Seems a useful feature if it really exists in there! :)
>>
>> Thanks,
>>
>> --Peter
>>
>> -- 
>> 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+un...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/web2py/57f0ea98-db5a-4211-9e24-e8ce3d7271fbn%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/web2py/57f0ea98-db5a-4211-9e24-e8ce3d7271fbn%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/39e3873c-243d-4032-b68d-e47e1fed3ae2n%40googlegroups.com.

Reply via email to