Questions tagged [web2py-modules]

web2py-modules are modules that are available in web2py web framework out of the box

web2py-modules are modules that are available in web2py web framework out of the box.

89 questions
0
votes
1 answer

Access logged_in user in modules :: web2py

I am working in a web2py application, where I need to access current user in modules, so is there any possibility to access current user in web2py modules, and yes then How can I access this? Thanks
Mahendra Garg
  • 516
  • 1
  • 9
  • 27
0
votes
1 answer

Web2PY status of hypermedia for generating REST API for database tables

We are creating REST API for tables in my database. We are using Web2PY for the same. Found this old link which says we can use hypermedia. However, I see that last year the example was removed from the default.py(controller). Would like to…
rAm
  • 1,086
  • 2
  • 16
  • 23
0
votes
0 answers

After upgrading to web2py 2.14.6 page load time increased by 50 times

I upgraded my web2py from 2.3.2 to 2.14.6. Then made all required changes like updating/replacing web2py.js, jquery.js,web2py_ajax.html, appadmin.py, appadmin.html. Then made few css changes to match old UI. Did no changes in backend code. Now when…
Gaurav Vichare
  • 1,143
  • 2
  • 11
  • 26
0
votes
0 answers

Retrieving all songs in a playlist many-to-many database

I have a database structure for playlists and tracks. My database code looks like this: #table for tracks db.define_table('track', Field('artist'), Field('album'), Field('title'), Field('duration',…
user2030942
  • 215
  • 5
  • 25
0
votes
1 answer

storing elements in a database by using JavaScript in web2py

The first thing that I would like to point out is that I am like a nervous programmer or nervous learner. I feel like I want to learn things fast, so I start checking websites and books very quickly and If I feel like what I am reading doesn't…
TheMathNoob
  • 307
  • 3
  • 16
0
votes
1 answer

web2py form with list:reference not working with {{=form}}

Using web2py, I am having trouble submitting (?) a form based on a table using list:reference. I have a table db.game that references to db.game_events in one of its columns called game_event. The form for db.game is accepted, but when I try to…
0
votes
1 answer

Upload Multiple Images in WEB2PY

I am new to Web2py and i am get strucked at how to upload multiple images in web2py.Can anyone help me to get out of this?
0
votes
1 answer

Global name 'paramiko' not defined when using module in web2py

I am running the source version of web2py from an Ubuntu VM and Python 2.7. I'm trying to use the Paramiko library for SSH functionality, but the following code gives this error: Code from paramiko import client Error Traceback (most recent call…
B Welch
  • 15
  • 1
  • 7
0
votes
3 answers

invalid table/column name "size" is a "ALL" reserved SQL/NOSQL keyword

db.define_table('bookspace', Field('locaton','string'), Field('size','string'), Field('availablefrom', 'string'), Field('availableto', 'string'), Field('rooftype', 'string'), …
0
votes
1 answer

Query to calculate total billamount which is obtained by multiplying price,a foreign key field and quantity field in a table in web2py

I'm developing a db project using web2py framework where in I need to write a query to find the total bill amount that is obtained by multiplying the quantity and unit_price. Tables: db.define_table('item', Field('name', notnull =…
0
votes
1 answer

Importing NLTK to web2py

I am trying to use NLTK in web2py. I am able to run NLTK in Python command line and in python scripts but I get an import error: Cannot import module 'applications.DeepThought.modules.nltk' I have stripped the code…
Seven
  • 3
  • 2
0
votes
1 answer

how to include images,scripts that are in default folder of views in web2py

I have an image in the default folder of views as an example in the below link (http://127.0.0.1:8000/cooking_recipes/default/images/nav-logo.png) and even some scripts in the same folder.that is because I am using ready-made template for my…
radha
  • 47
  • 1
  • 6
0
votes
1 answer

querying the database from view web2py

I am trying to query a database table from the view in web2py as I need to take a field from another table for each row in the present table so I have written a code like this: {{for recipe in rows:}}
radha
  • 47
  • 1
  • 6
0
votes
1 answer

regular expression for password in web2py

I am using the auth module for the login process for my web2py application.I want to validate the password using regular expressions but couldn't find a way for it.How could we modify the access control to accept regex
radha
  • 47
  • 1
  • 6
0
votes
1 answer

web2py type 'exceptions.AttributeError'

view #show.html {{extend 'layout.html'}}

{{=page.title}}

[ {{=A('edit', _href=URL('edit', args=request.args))}} ]
{{=MARKMIN(page.body)}}

Comments

{{for post in comments:}}

{{=db.auth_user[post.created_by].first_name}}…

vanquishers
  • 358
  • 1
  • 3
  • 18