Skip to main content

Questions tagged [web2py]

web2py is a open-source full-stack web framework written in Python.

0 votes
0 answers
22 views

Get actual with foreign key Web2py

I have a data table with three fields. All of these three (3) fields are foreign key of others table. But I want to display the actual data. How can I work it out? For now, I can only display their ID....
Lycan's user avatar
  • 31
0 votes
0 answers
20 views

Calling the mapped port in Docker

I have a container running and the service inside is running on port 8000. And I have port mapped the container when I use "docker run" command. And the service inside the container is ...
Lycan's user avatar
  • 31
0 votes
0 answers
49 views

Web2Py Face Recognition with OpenCV

How can we implement this OpenCV into Web2Py framework but use it as a button that opens up a video in html component that read your face and return true or false if its validated? The main problem is ...
Rikion's user avatar
  • 1
0 votes
0 answers
16 views

formatting values in SQLFORM

I have a field db.Schedule.Rate defined as type='double', I am trying to display it with SQLFORM so that a user can edit the values of a selected record. However, when the Rate value is too low (for ...
user23611955's user avatar
0 votes
1 answer
37 views

How to limit a query using combination of integer and datetime.date fields

I am trying to build a query that combines 3 tables set = db( (db.Investigation.WorkFlow == db.WorkFlowStatus.WorkFlow) &(db.WorkFlow.id == db.Investigation.WorkFlow) ) ...
user23611955's user avatar
0 votes
1 answer
226 views

Why am I getting Exception Error: 'Field' object has no attribute '__dir__' when uploading images

I recently 'upgraded' my web2py version to the latest version (2.27.1) but i've forgotten the previous version. I upgraded on the admin page by clicking on the button labeled Check for upgrades on a ...
Percy Godiraone Leburu's user avatar
0 votes
0 answers
24 views

web2py basic testing, view can't find different dict keys passed in controller

So in the controller of my app in default.py I've defined this: from database_handler import getQuestion def questionnaire(): questionDict = getQuestion(1, 'english') # placeholder attributes for ...
Joonas Joensuu's user avatar
0 votes
0 answers
20 views

Why does this error occur when searching in web2py

Possible bug when searching in SQLFORM.grid with order activated. To reproduce: SQLFORM.grid, advanced_search = True Click a column header on the grid to activate 'order' Click 'search' (with or ...
JeffP's user avatar
  • 555
0 votes
0 answers
44 views

Ways to render dot/graphviz in web2py?

What is the best/proper way to make a d3 graphviz graph in web2py? How can I use the d3-js files of the admin app? d3.select("#graph").graphviz().renderDot("digraph {a -> c}");
Rickard Hultgren's user avatar
0 votes
1 answer
23 views

web2py Select min value from join

How do I write the corresponding web2py statement for the following query: select auth_user.id, min(auth_group.ranks) as highest_gr from auth_user left join auth_membership on auth_user.id = ...
JeffP's user avatar
  • 555
2 votes
1 answer
247 views

"unable to import requests" in web2py even though requests is accessible directly through python

I'm attempting to integrate MSAL, which requires the requests module. I'm running Python 3.7 on Linux and using pipenv to manage the environment. I'm also using web2py 2.24.1 from source (as in I ...
user2070364's user avatar
0 votes
1 answer
41 views

web2py: How to target a div using the response.menu

The A() helper can take a cid or target attribute to target a DIV to load content. Using the response.menu tuples, how can this be achieved? response.menu = [ (T('Home'), False, URL('default', '...
JeffP's user avatar
  • 555
0 votes
1 answer
53 views

web2py: left-outer join not giving all records on left

Why is this code not returning groups with zero (0) count? (I am sure there are groups with zero count) count = db.auth_membership.id.count() groups = db().select(db.auth_membership.group_id, db....
JeffP's user avatar
  • 555
0 votes
1 answer
35 views

web2py: Prevent delete action on the A() helper depending on the result of the callback

Is it possible to prevent the delete action on 'tr' depending on the return value of service_record_del_request callback: {{=A('Delete', callback=URL('service_record_del_request', vars={'id':r.id}), ...
JeffP's user avatar
  • 555
0 votes
2 answers
59 views

Using temporary files and folders in Web2py app

I am relatively new to web development and very new to using Web2py. The application I am currently working on is intended to take in a CSV upload from a user, then generate a PDF file based on the ...
jdmo242's user avatar
  • 71

15 30 50 per page
1
2 3 4 5
143