Re: [web2py] Re: ADDING MODULE TO CONTROL

2018-09-23 Thread Nico de Groot
You can just use the import statement. Web2py code is just Python code running in a web environment. Just know that at every web request all model files are executed, and after that the controller file that corresponds with the URL of the request. The view file with the same name is used to pro

Re: [web2py] Re: ADDING MODULE TO CONTROL

2018-09-23 Thread elisha bere
Can you maybe show me a simple example of how i can import the http.client module in my cotrols On Sat, 22 Sep 2018 at 09:43, Dave S wrote: > > > On Thursday, September 20, 2018 at 6:49:23 AM UTC-7, Leonel Câmara wrote: >> >> The module I'm referring to is obviously the one you mentioned >> (htt

Re: [web2py] Re: Customising my views

2018-09-23 Thread elisha bere
what if the css is embeded in my html folder like wrote: > An url in css is relative to the place where you have the stylesheet. > Assuming you have it in static/css then the correct url would be > url(../images/byo.jpg) > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Docume

[web2py] How do i get the details of a user in db.auth_user displayed by referencing it in my db?

2018-09-23 Thread mostwanted
I have a table called *Customers* that has a field *Booked_By* which references *auth_user,* when i attempt to display the details of Booked_By in one view* (viewBookings) *with *db(...).select()* all i get are their IDs but when i display them in another view* (Client_Updates)* with *SQLFO

[web2py] Imagesize with MARKMIN and width in 100% and height auto possible?

2018-09-23 Thread Oli
is it possible to place an image with MARKMIN and not with absolute size in pixel? For example: [[alt-string for the image [the image title] http://www.web2py.com/examples/static/web2py_logo.png right *width=100% height=auto*]] -- Resources: - http://web2py.com - http://web2py.com/book (Doc

[web2py] Re: How can i select an item from the database only once?

2018-09-23 Thread mostwanted
I am trying to use the first method but i am failing to get the desired results, how do i check the availability of the selected and wanted room?? This is my controller code but i figured it not gonna give me results even when i started writing it: *CONTROLLER:* *def index():form=