[web2py] Re: move database to mongodb

2017-09-23 Thread 黄祥
*Can't retrieve value of reference field (tested in views and in models using represent)* {{=DIV('%s - %s' % (row_person.id_card.id_card_type, row_person.id_card.id_card_number) ) }} *Error:* ... RuntimeError: Using a recursive select but encountered a broken reference: id_card 1 *Solution: * ch

[web2py] Re: Two forms

2017-09-23 Thread 黄祥
yes, you are right, my bad, my old code have a race condition because of assigned with max id *e.g.* *have a race condition (don't use it if transaction is high)* id_max = db.order.id.max() maxID = db(db.order).select(id_max).first()[id_max] order_id = int(maxID) + 1 if maxID else 1 db.item.order_

[web2py] Re: Kaspersky problem with web2pyslices.com

2017-09-23 Thread Leonel Câmara
Uninstalling kaspersky solves this problem. -- 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 Go

[web2py] Re: web2py-15, how to access table name from class ExporterXLS ?

2017-09-23 Thread Anthony
Please show the full traceback as well as the rest of the relevant code (i.e., table definition and grid code). Anthony On Saturday, September 23, 2017 at 3:17:24 PM UTC-4, Alex Beskopilny wrote: > > > Hi All, > Why It's code work from controller and does error from class Exporter ? > How to ac

[web2py] Re: Kaspersky problem with web2pyslices.com

2017-09-23 Thread Anthony
The site should be fine. Likely just a false positive by Kaspersky. Anthony On Saturday, September 23, 2017 at 3:17:18 PM UTC-4, fernandisc...@gmail.com wrote: > > Kaspersky is alerting of phising URL when accessing any web2pyslices URL, > and therefore it dennies the access. > > Anyone having

[web2py] Kaspersky problem with web2pyslices.com

2017-09-23 Thread fernandisco33
Kaspersky is alerting of phising URL when accessing any web2pyslices URL, and therefore it dennies the access. Anyone having the same problem? Is it safe to dismiss the alert and go ahead, or has the site been compromised in some way? This is the alert: KasperskyInternet Security ACCESS

[web2py] most simple way to change the "page=" parameter in grids

2017-09-23 Thread Thomas Wimmer
I use multiple sqlform.grids on my project. On some i'd like to rename the "page=" argument to something else like "some=". Probably the pattern-based routes.py could do this? "routes_in = ( ('/grid?some=2', '/examples/default/grid?page=2'), ) routes_out = ( ('/examples/default/grid?page=2'