Merge lp:~allenap/storm/value-columns-by-name into lp:storm
Status: | Work in progress |
---|---|
Proposed branch: | lp:~allenap/storm/value-columns-by-name |
Merge into: | lp:storm |
Diff against target: |
182 lines (+107/-9) 2 files modified
storm/store.py (+40/-8) tests/store/base.py (+67/-1) |
To merge this branch: | bzr merge lp:~allenap/storm/value-columns-by-name |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gustavo Niemeyer | Disapprove | ||
Jamu Kakar (community) | Needs Fixing | ||
James Henstridge | Needs Fixing | ||
Review via email: mp+23480@code.launchpad.net |
Commit message
ResultSet.values() can now accept column names as well as columns themselves.
Description of the change
In an environment like Launchpad where a lot of the code only uses Storm via a Zope prophylactic, and there is also an importfascist that complains bitterly when model code is imported by non-model modules, it would be extremely handy to be able to pass names into ResultSet.values() rather than columns.
I might have done this all the wrong way, but it's a start and I'm happy to learn the right way to get this branch landed.
Unmerged revisions
- 362. By Gavin Panella
-
Make ResultSet.values() work with expressions.
- 361. By Gavin Panella
-
Add docstrings to new private methods.
- 360. By Gavin Panella
-
Fix some lint.
- 359. By Gavin Panella
-
Make the implementation of _get_column_
name_map( ) more readable and obvious. - 358. By Gavin Panella
-
Update the docstring for ResultSet.values().
- 357. By Gavin Panella
-
Raise an error when the column choice is ambiguous, copy the select before mutating it, and break up tests.
- 356. By Gavin Panella
-
ResultSet.values() can now accept column names as well as columns themselves.
Can you please file a bug and link this branch to it? All Storm
branches should have an associated bug.