Why didn't we think before ? References are lazy, but when asked
for representation why should we fetch the same referenced record
over and over ?
NB: the code caches only represent() fetching records from tables, that
are the only idempotent represent() calls out there. We could cache
every representation only asking for every represent() call to be
idempotent. As I feel there will be someone returning random values,
I left it out.
I'll make a PR soon for pyDAL to fix the same behaviour.
since there is no more a proper place to put the new regex, it's on top
of the module for speedup. The patch leaves open a few corner-cases,
but since we have "headers" to alter the headers in SQLTABLE, any
corner case can be fixed passing properly filled "headers" parameter.
This just makes the simple case described on the issue work fine, that
should accomodate the 99% of the usecases for with_alias() needs
at the field level.
pyflaked the module, at least a bit. Sometimes I feel developers are in a contest
where less characters and lines win. Concise implementation wins over verbose one,
but less SLOC DON'T mean somewhat better code. Just reading through
this module makes my brain hurt a bit
* master: (58 commits)
changed version number
better types by default, given that we're on 2005 at least
fix for StorageList and tests added
improved coverage, fix bug with IS_LIST_OF and items not being strings
fix cache.increment, added tests
R-2.9.11
reverted simplejson
R-2.9.10
upgraded memcache and markdown2
upgraded pypyodbc.py
upgraded simplejson
no more split in contains, thanks Niphlod
fixed wording and bug on contains(), made smart_query use ilike instead of like
ilike, thanks Niphlod
CROSS JOIN, thanks jotbe
added custom represent to GoogleDatastoreAdapter, thanks Alan
postgresql: identifies what adapter auto-loads json values
added more tests for json Field
fixed typo in driver_auto_json
Improve the graphing to show the name of the application.
...
Conflicts:
gluon/dal.py
gluon/globals.py
gluon/tests/test_dal.py
Added a new option to smartgrid: "max_linked_inline".
When set to a value greater than zero, it will limit the inline display of linked tables (in grid, edit and details).
In case there are a number of linked tables greater than the setting, the links will be displayed in a select list menu.