[web2py] CSS URL Helper

2020-05-23 Thread F.C.
How do I use the URL helper in a CSS stylesheet that I reference in the landing page. The CSS example that I have to add a background is the following: /*header style*/.header{ background-image: url('../images/headerback.jpg'); background-attachment: fixed; background-size: cover;

[web2py] passing value from select/option to div and controller

2020-05-23 Thread Maurice Waka
I'm able to pass a value from the select/option to div but I can't seem to get a way of sending the same value to controller(then database). I have tried different AJAX methods but they seem not to pass the variables to controller. How do I get it to be done? So far this is my code: def

[web2py] email template framework

2020-05-23 Thread António Ramos
Nice https://mjml.io/ django is using it ... https://github.com/liminspace/django-mjml -- 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

[web2py] RestAPI: how to restrict query results to data belonging to logged in user?

2020-05-23 Thread Alexei Vinidiktov
Hello, How can I restrict access via RestAPI for the user such that they can only get their own records (those that have the field user_id matching their user id)? For example, I have a a table named 'collections' that has a 'user_id' field, and I want my users to get only the collections