web2py xml() in python 3

26 views
Skip to first unread message

Maurice Waka

unread,
Feb 20, 2019, 4:13:03 PM2/20/19
to web2py-users
Hi,
I know I asked this before. I know people are very busy but could someone help here.
I got this code but does not work with python 3.6. Any help out there???, pleaaaase
def month_input():
    return dict()

def month_selector(): if not request.vars.month: return '' pattern = request.vars.month.capitalize() + '%' selected = [row.name for row in db(db.month.name.like(pattern)).select()] return ''.join([DIV(k, _onclick="jQuery('#month').val('%s')" % k, _onmouseover="this.style.backgroundColor='yellow'", _onmouseout="this.style.backgroundColor='white'" ).xml() for k in selected]

)

Dave S

unread,
Feb 20, 2019, 6:10:34 PM2/20/19
to web2py-users


On Wednesday, February 20, 2019 at 1:13:03 PM UTC-8, Maurice Waka wrote:
Hi,
I know I asked this before. I know people are very busy but could someone help here.
I got this code but does not work with python 3.6. Any help out there???, pleaaaase

Have you tried this with the nightly build?  The other P3 fixes may have helped here.
 
def month_input():
    return dict()

def month_selector(): if not request.vars.month: return '' pattern = request.vars.month.capitalize() + '%' selected = [row.name for row in db(db.month.name.like(pattern)).select()] return ''.join([DIV(k, _onclick="jQuery('#month').val('%s')" % k, _onmouseover="this.style.backgroundColor='yellow'", _onmouseout="this.style.backgroundColor='white'" ).xml() for k in selected]

)


/dps
 

Maurice Waka

unread,
Feb 20, 2019, 10:40:42 PM2/20/19
to web...@googlegroups.com
I'm not so conversant with that.


--
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 a topic in the Google Groups "web2py-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/web2py/3huLbs5mmkY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages