there is a problem with headers- and fields - definition in a new installed
2.9.12 from sourcecode. The result is in undefined order and changed after
every reload.
the definition:
def address():
#
# Definition - Grid
headers = {'t_address.id':'ID',
't_address.f_lastname':'1:Nachname',
't_address.f_firstname':'2:Vorname',
't_address.f_email':'3:E-Mail',
't_address.f_phone':'4:Telefon',
't_address.f_street':'5:Straße',
't_address.f_location':'6:Ort'}
fields = {db.t_address.id,
db.t_address.f_lastname,
db.t_address.f_firstname,
db.t_address.f_email,
db.t_address.f_phone,
db.t_address.f_street,
db.t_address.f_location}
address = SQLFORM.grid(db.t_address, headers=headers, fields=fields)
return dict(addess=address)
the results:
first result:
- 2:Vorname
<http://127.0.0.1:8000/allinone/crm/address?keywords=&order=t_address.f_firstname&_signature=554d5602063b98cd35aaaa16c4db71ee3cd91c43>
6:Ort
<http://127.0.0.1:8000/allinone/crm/address?keywords=&order=t_address.f_location&_signature=554d5602063b98cd35aaaa16c4db71ee3cd91c43>
ID
<http://127.0.0.1:8000/allinone/crm/address?keywords=&order=t_address.id&_signature=554d5602063b98cd35aaaa16c4db71ee3cd91c43>
3:E-Mail
<http://127.0.0.1:8000/allinone/crm/address?keywords=&order=t_address.f_email&_signature=554d5602063b98cd35aaaa16c4db71ee3cd91c43>
4:Telefon
<http://127.0.0.1:8000/allinone/crm/address?keywords=&order=t_address.f_phone&_signature=554d5602063b98cd35aaaa16c4db71ee3cd91c43>
1:Nachname
<http://127.0.0.1:8000/allinone/crm/address?keywords=&order=t_address.f_lastname&_signature=554d5602063b98cd35aaaa16c4db71ee3cd91c43>
5:Straße
<http://127.0.0.1:8000/allinone/crm/address?keywords=&order=t_address.f_street&_signature=554d5602063b98cd35aaaa16c4db71ee3cd91c43>
then reload
second result: - 5:Straße
<http://127.0.0.1:8000/allinone/crm/address?keywords=&order=t_address.f_street&_signature=554d5602063b98cd35aaaa16c4db71ee3cd91c43>
2:Vorname
<http://127.0.0.1:8000/allinone/crm/address?keywords=&order=t_address.f_firstname&_signature=554d5602063b98cd35aaaa16c4db71ee3cd91c43>
6:Ort
<http://127.0.0.1:8000/allinone/crm/address?keywords=&order=t_address.f_location&_signature=554d5602063b98cd35aaaa16c4db71ee3cd91c43>
3:E-Mail
<http://127.0.0.1:8000/allinone/crm/address?keywords=&order=t_address.f_email&_signature=554d5602063b98cd35aaaa16c4db71ee3cd91c43>
ID
<http://127.0.0.1:8000/allinone/crm/address?keywords=&order=t_address.id&_signature=554d5602063b98cd35aaaa16c4db71ee3cd91c43>
4:Telefon
<http://127.0.0.1:8000/allinone/crm/address?keywords=&order=t_address.f_phone&_signature=554d5602063b98cd35aaaa16c4db71ee3cd91c43>
1:Nachname
<http://127.0.0.1:8000/allinone/crm/address?keywords=&order=t_address.f_lastname&_signature=554d5602063b98cd35aaaa16c4db71ee3cd91c43>
is this a bug?
Am Samstag, 17. Januar 2015 07:20:14 UTC+1 schrieb Massimo Di Pierro:
>
> Changelog:
>
> - Modular DAL, thanks Giovanni
> - Added coverage support, thanks Niphlod
> - More tests, thanks Niphlod and Paolo Valleri
> - Added support for show_if in readonly sqlform, thanks Paolo
> - Tornado HTTPS support, thanks Diego
> - Improved scheduler, thanks Niphlod
> - Email timeout support
> - Made web2py's custom_import work with circular imports, thanks Jack Kuan
> - Added Portuguese, Catalan, and Burmese translations
> - Allow map_hyphen to work for application names, thanks Tim Nyborg
> - New module appconfig.py, thanks Niphlod
> - Added geospatial support to Teradata adaptor, thanks Andrew Willimott
> - Many bug fixes
>
> I am sure I am forgetting something. Thanks to all those who contributed.
> The major change is the new modular DAL. I am sure this will break
> something. So please report problems and will address them.
>
>
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.