[web2py] Limiting database entries

2020-10-13 Thread mostwanted
Is there a way to limit the number of entries to a database?
Like limiting the number of entries to only 100 and nothing more.

Regards;

Mostwanted 

-- 
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 this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/23c3a45f-bc13-4374-8c00-3c3689422f1dn%40googlegroups.com.


[web2py] Limiting Database Entries in Table

2012-07-28 Thread Douglas McCormick Jr.
Hi Everyone,

Before I begin: I love this framework-- I can't believe I haven't been 
using this forever.

Could someone help me limit the entries/rows within a web2py database 
table?  Presumably, I'd like to have a form page (to initially insert the 
data) in order to allow for the first entry into the table.  Then 
subsequent form submissions (aka in the future when I re-submit or change 
values again) I would only update the 1st row; it would never allow to add 
new rows into the database. 

What I'm intending to create is a "settings" table that can only have 1 
row/entry.  Each column in the "settings" table will be used/called 
elsewhere with other ".py" scripts

Thanks for your help,
-Doug Jr.

--