I also did't find how to do that with CRUD, neither understood if there's a
way to customize the submit button label.
On Friday, July 1, 2011 3:16:04 AM UTC+2, mr.freeze wrote:
Hello! I've been away for a while but am diving back into web2py for a
new project. I want to host my Crud forms
I have been using web2py for 3 years know, and I was really impressed by
it, I defended it in every discussion, even implemented all my projects
using it and even convinced my Graduation Project Team to use it in our GP.
However, as my skill increased and I began looking more into customizing
how to limit the list which come by clicking on the sqlgrid default search.
I have 10 fields in table. i do not want to show all the fields on list of
default search. Can it possible to customize the list of default search
widget.
this i can in html drop down, but that is very complex and
bump
On Wednesday, July 16, 2014 11:03:58 AM UTC+2, chuan137 wrote:
Hi All,
I have to install web2py as part existing VirtualHost. It is serving a few
directories, and web2py folder is one of them.
this is my settings under VirtualHost superhostname:80
WSGIScriptAlias /newstatus
Yes it works. Thanks for your help.
On Wednesday, July 9, 2014 2:08:04 PM UTC+2, Massimo Di Pierro wrote:
Can you check if the fix in trunk works for you? Thanks for reporting this
problem.
On Tuesday, 8 July 2014 07:26:13 UTC-5, genadij razdorov wrote:
It seems that
if is_gae:
in
I am trying to migrate to bootstrap3, when I try to change the form style
to bs3 , all the elements of registration form convert correctly except for
Verify Password field, In fact the html for this particular field is
different from the other form fields, is there a solution for that ? what
I'm trying to get two selected form.vars as args, but fail on it.
There is a list of text's names, have to return two selected text.
In controller:
def index():
options = [OPTION(texts.title, _value=texts.id) for texts in
test().select(test.slovar.ALL)]
form=FORM(TABLE(TR(Select first
My very first besides the Hello World.
It's pulling data from a RESTful Server and the output is JSON.
We have 52 entries in our Config Templates and it just prints out one under
web2py.
When I run this in web2py it only return one result:
def index():
import requests
import json
since the default black color font is not seen on my page clearly(because
of the background color of the page which overlaps) i would want to change
the color of the font.Please suggest on how I modify the color and bgcolor
of the form defined in auth()
--
Resources:
- http://web2py.com
-
Hi Richard,
Thanks for the reply! I decided to go with an easier solution due to time
constraints but I'm still very interested in how my issue would've been
solved. You mention to pass the _onclick variable as a kwarg but the A()
helper would not accept it. Also, I do not understand how I
it is possible compiling web2py application as a native android app ?
if it possible how we do ?
thanks
--
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)
---
Hello everyone,
I am having troubles building a query that can be used in SQLFORM.grid.
#models
db.define_table('boats', Field('category_of_boat'), Field('value_of_boat'))
I want to get the the record with the smallest value for each category, but
I don't know how to properly use aggregate
I'm sorry, I had not understood the hint between parenthesis. Thank you for
your answer and explanation.
Em quinta-feira, 17 de julho de 2014 08h05min17s UTC-3, Leonel Câmara
escreveu:
Thiago by removing http it uses whatever protocol you're using. So my
solution would also have worked.
Greetings all first attempt to write an app besides Hello world.
I can run the script below as a python script and it returns 52 entries.
When I run it in web2py it only show me one result.
It's an API call that get results in JSON format.
def index():
import requests
import json
You can install web2py as an android app.This is old but should still work.
http://www.web2pyslices.com/slice/show/1490/how-to-install-web2py-on-android-for-fun-without-rooting-the-device
Than you have web2py start your app locally.
On Friday, 18 July 2014 11:33:20 UTC-5, eric cuver wrote:
it
I agree. this is a priority. Mind that since git revision
ae0749d6b8b9d0bf111c395674f629f3a1e48cfc
we had boostrap 3 support. We reverted it because people were not happy
with the implementation.
The issue here is should support only bs2 and bs3 in grid or should we
support arbitrary css via
SELECT(*options, name=first) ...and... SELECT(*options, name=second)
should be
SELECT(*options, _name=first) ...and... SELECT(*options, _name=second)
Anyway, args are validated and this may create problems. How about this?
def index():
options = [OPTION(texts.title, _value=texts.id) for
I am not sure what you mean by:
for entry in decoded['config_templates']:
return entry['name']
why do you have a return in a loop? It will only return the first time. The
cli may do something unusual.
On Friday, 18 July 2014 16:15:11 UTC-5, Sif Baksh wrote:
My very first besides
Can you give examples of things that work only with Bootstrap 2?
On Friday, July 18, 2014 3:17:34 PM UTC-4, Moustafa Mahmoud wrote:
I have been using web2py for 3 years know, and I was really impressed by
it, I defended it in every discussion, even implemented all my projects
using it and
Look into git commit 666a389718bf19ed114db9485767c684630177e9
Diff sqlhtml.py, html.py and welcome/*
Almost all you need it there.
On Friday, 18 July 2014 19:59:14 UTC-5, Moustafa Mahmoud wrote:
I am trying to migrate to bootstrap3, when I try to change the form style
to bs3 , all the
Please do not use crud. That code has not been touched in 3 years. There is
really nothing in crud that cannot be done better with SQLFORM(..).process()
On Saturday, 19 July 2014 03:30:31 UTC-5, Giacomo Dorigo wrote:
I also did't find how to do that with CRUD, neither understood if there's
a
Good point. There are various ways
1) add a virtual fields fetches them for each row
2) add a virtual field that fetches and cached per each request
3) denormalize the database and add a Field('categories','list:string
categories') and you keep in sync with the link table.
On Saturday, 19 July
I went for the virtual field approach.
My field in my model:
#Virtual field for showing categories in view
def categories(row):
links = db(db.post_to_cat.post_id == row.blog_post.id).select()
ids = [{'name':l.cat_id.name, 'slug':l.cat_id.slug} for l in links]
return ids
#Appending
Massimo, you saved me. Thanks a lot!
--
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
Sorry I don't mean to be ignorant here but when i check this commit i find
no change in the given files , can you please point me to the right
direction here ?
On Sunday, July 20, 2014 5:33:06 PM UTC+2, Massimo Di Pierro wrote:
Look into git commit 666a389718bf19ed114db9485767c684630177e9
Thank you Massimo, I was sensing something like that :)
On Sun, Jul 20, 2014 at 5:41 PM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
Please do not use crud. That code has not been touched in 3 years. There
is really nothing in crud that cannot be done better with
Haven't used rname before but the way I read it it should work with
reserved names. Have changed a given example to read:
db.define_table('easy_name',
Field http://127.0.0.1:8000/examples/global/vars/Field('position',
rname='this_is_the_field_name'),
I read mySQL stats When it error rise again:
connections = 60
I restart Apache
and connections falls to 5 and error 10053 disappeared.
In my db.py -
pool_size=25,
#migrate=True,
migrate=False,
migrate_enabled=False,
check_reserved=['all'],
Why mySQL connection not closed?
The error message suggests that it is the field name (ie, position) that
is reserved.
On Monday, July 21, 2014 4:19:39 PM UTC+12, Simon Ashley wrote:
Haven't used rname before but the way I read it it should work with
reserved names. Have changed a given example to read:
error appeared again. mySQL connections 27. I stopped the Apachi server but
the connection still remained =27. I restart the mySQL database server and
connections dropped to 4
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source
Yep, agree with that but to quote Niphlod
*For the ones in need of:*
*- accessing legacy tables with some funny names *
*- use reserved keywords for table and field names *
https://groups.google.com/forum/#!msg/web2py/_q5qcARON4E/6JLCHM3eQHAJ
--
Resources:
- http://web2py.com
-
I think you just need to turn the warning off.
db = DAL(..., check_reserved=None)
On Monday, July 21, 2014 5:05:06 PM UTC+12, Simon Ashley wrote:
Yep, agree with that but to quote Niphlod
*For the ones in need of:*
*- accessing legacy tables with some funny names *
*- use reserved
32 matches
Mail list logo