I have a table with 4 records and a datetime field
At the database:
start_date
2018-02-24 00:00
None
2018-01-27 14:17
2018-01-24 00:00
the model is:
db.define_table("bookings"
, Field("start_date", "datetime", widget=date_widget)
, Field("end_date", "datetime", widget=text_widget)
,
On Saturday, January 27, 2018 at 10:31:13 AM UTC-5, Alfonso Serra wrote:
>
> Version 2.16.1-stable+timestamp.2017.11.14.05.54.25
>
> downloaded a few days ago. When i disable the routes on error all works
> well.
>
> Not related but i have also ran into errors on sqlhtml.py line 1504
> elif field
On Saturday, January 27, 2018 at 6:44:22 AM UTC-5, Alfonso Serra wrote:
>
> what do i need to return at an error handler controller to get the same as
> web2py does by default? Let me ellaborate:
>
> I have implemented "routes on error" at routes.py like:
>
> routes_onerror = [
> (r"*/*", r"/e
Version 2.16.1-stable+timestamp.2017.11.14.05.54.25
downloaded a few days ago. When i disable the routes on error all works
well.
Not related but i have also ran into errors on sqlhtml.py line 1504
elif field.widget:
inp = field.widget(field, default)
this trying to execute when default
I cannot replicate this. What version of web2py?
On Saturday, January 27, 2018 at 7:36:45 AM UTC-5, Alfonso Serra wrote:
>
> I may have ran into a web2py bug:
>
> this is the requested controller, i make an ajax call:
> def index():
> if request.ajax:
> raise HTTP(500, "cant do it")
>
On Friday, January 26, 2018 at 2:01:26 PM UTC-5, Andrea Fae' wrote:
>
> for me it's worst than before!
> what is other_table? Why you don't use row? I don't understand...I'm sorry
>
Python makes a distinction between positional and keyword arguments to
functions. When web2py calls the represent f
want to share the docker stack recipe, if anyone interest perhaps i can pr
to the web2py repo or share it on this group
[stack]
$ ls | grep web2py
web2py-gunicorn-nginx
web2py-rocket-nginx
web2py-rocket-ssl-nginx
web2py-rocket-ssl-nginx-db-adminer
web2py-rocket-ssl-nginx-memcached
web2py-rocket-s
I may have ran into a web2py bug:
this is the requested controller:
def index():
if request.ajax:
raise HTTP(500, "cant do it")
this is the error handler function errors.py:
def index():
# dd(response.toolbar())
return "cant do it from error.py"
and i get a 400 BAD REQUEST er
what do i need to return at an error handler controller to get the same as
web2py does by default? Let me ellaborate:
I have implemented "routes on error" at routes.py like:
routes_onerror = [
(r"*/*", r"/error")
]
so any error goes through "/myapp/controllers/error.py" (note i have
remove
9 matches
Mail list logo