hi,

i realize that in the new version of web2py 2.7.x the field show in grid is 
not sequential without explicit it in the fields.

e.g.
models/db.py
db.define_table('model',
    Field('model'),
    Field('brand', 'reference brand'),
    Field('product_number'),
    format='%(model)s')

controller/default.py
def model():
    grid = SQLFORM.grid(db.model)
    return locals()

Result testing with 2.7.x version (both from source and windows binary)
Product Number  Id Brand Model

Result testing with 2.5.1 version (both from source and windows binary)
Id Model Brand Product Number

if i want to get the same result like on 2.5.1 version in 2.7.x version i 
must explicit define the field i want to show in sequent
controller/default.py
def model():
    fields = [db.model.id, db.model.model, db.model.brand, 
db.model.product_number]
    grid = SQLFORM.grid(db.model, fields = fields)
    return locals()

Result testing with 2.7.x version (both from source and windows binary)
Id Model Brand Product Number

how can i get the field show in grid same sequent like i describe on models 
without explicit it using fields in 2.7.x version?

p.s.
i want to testing for higher version to report as comparation but i can't 
download the version > 2.5.1
e.g. 
http://web2py.com/examples/static/2.5.2/web2py_src.zip

it return :
invalid request

thanks and best regards,
stifan


-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to