Last 7 days
-
r130
(Back to development: 0.3.3) committed by wyatt.lee.baldwin
- Back to development: 0.3.3
Back to development: 0.3.3
-
-
-
r127
(When redirecting to member, allow original request params to...) committed by wyatt.lee.baldwin
- When redirecting to member, allow original request params to be relayed and allow abritrary params
to be passed to redirect.
* Added `relay_params` keyword arg to `_redirect_to_member`
* Added `params` keyword arg to `_redirect_to_member`
When redirecting to member, allow original request params to be relayed and allow abritrary params
to be passed to redirect.
* Added `relay_params` keyword arg to `_redirect_to_member`
* Added `params` keyword arg to `_redirect_to_member`
Last 30 days
-
r126
(Back to development: 0.3.2) committed by wyatt.lee.baldwin
- Back to development: 0.3.2
Back to development: 0.3.2
-
-
-
r123
(\
In _render_json(), pass self.wrap to _get_json_object() ca...) committed by wyatt.lee.baldwin
- \
In _render_json(), pass self.wrap to _get_json_object() call; In
_get_json_object(), use wrap arg instead of self.wrap. Otherwise, there is
no point to the wrap arg, as it is not used elsewhere in _get_json_object().
\
In _render_json(), pass self.wrap to _get_json_object() call; In
_get_json_object(), use wrap arg instead of self.wrap. Otherwise, there is
no point to the wrap arg, as it is not used elsewhere in _get_json_object().
-
r122
(Bumped SQLAlchemy to 0.5.6.) committed by wyatt.lee.baldwin
- Bumped SQLAlchemy to 0.5.6.
Bumped SQLAlchemy to 0.5.6.
-
r121
(Starting development of 0.3.1.) committed by wyatt.lee.baldwin
- Starting development of 0.3.1.
Starting development of 0.3.1.
Earlier this year
-
-
-
-
r117
(Added change log section for upcoming 0.3 release. Tried to ...) committed by wyatt.lee.baldwin
- Added change log section for upcoming 0.3 release. Tried to capture the most important changes but
can't remember them all.
Added change log section for upcoming 0.3 release. Tried to capture the most important changes but
can't remember them all.
-
r116
(Made changes required by zest.releaser; will be using zest.r...) committed by wyatt.lee.baldwin
- Made changes required by zest.releaser; will be using zest.releaser tools
henceforth to manage releases.
Made changes required by zest.releaser; will be using zest.releaser tools
henceforth to manage releases.
-
r115
(Allow the default value for filter params to be a callable,
...) committed by wyatt.lee.baldwin
- Allow the default value for filter params to be a callable,
which will be called if needed.
Moved `get_filter_param_values` function that was defined in
`set_collection` to a new method, `_set_filters_from_params`;
recreating this function per-request was kinda silly.
Allow the default value for filter params to be a callable,
which will be called if needed.
Moved `get_filter_param_values` function that was defined in
`set_collection` to a new method, `_set_filters_from_params`;
recreating this function per-request was kinda silly.
-
r114
(In `to_simple_object`, when a dotted name is present in the ...) committed by wyatt.lee.baldwin
- In `to_simple_object`, when a dotted name is present in the `fields`
list, insert the value into a corresponding sub-dict. E.g., if the
name is `a.b.c` and the value is `1`, value will accessible via
obj['a']['b']['c']. Previously, it would have been obj['a.b.c'].
The new way feels more natural and has the added benefit of working
with ExtJS (which this whole name/mapping scheme is based on anyway).
In `to_simple_object`, when a dotted name is present in the `fields`
list, insert the value into a corresponding sub-dict. E.g., if the
name is `a.b.c` and the value is `1`, value will accessible via
obj['a']['b']['c']. Previously, it would have been obj['a.b.c'].
The new way feels more natural and has the added benefit of working
with ExtJS (which this whole name/mapping scheme is based on anyway).
-
r113
(Allow ``name`` of object to passed to `simplify_object` to p...) committed by wyatt.lee.baldwin
- Allow ``name`` of object to passed to `simplify_object` to provide
more context for deciding how to simplify (AKA transform) the
object.
Allow ``name`` of object to passed to `simplify_object` to provide
more context for deciding how to simplify (AKA transform) the
object.
-
r112
(Don't add total count to JSON results by default.) committed by wyatt.lee.baldwin
- Don't add total count to JSON results by default.
Don't add total count to JSON results by default.
-
r111
(In `set_collection`, strip param values to see if they're bl...) committed by wyatt.lee.baldwin
- In `set_collection`, strip param values to see if they're blank, but
use the unstripped value in the query.
In `set_collection`, strip param values to see if they're blank, but
use the unstripped value in the query.
-
r110
(Added method to `Entity` to convert PK value to string (`id_...) committed by wyatt.lee.baldwin
- Added method to `Entity` to convert PK value to string (`id_str`).
Use JSON to encode the PK value as a string. Also use JSON instead
of eval to decode multi-part PKs that are in string form (in
`str_to_id`). That means multi-part PKs passed via URL to `show`
action should be JSON encoded lists.
Added method to `Entity` to convert PK value to string (`id_str`).
Use JSON to encode the PK value as a string. Also use JSON instead
of eval to decode multi-part PKs that are in string form (in
`str_to_id`). That means multi-part PKs passed via URL to `show`
action should be JSON encoded lists.
-
r109
(Fixed `get_column_default` so that it accesses the scalar va...) committed by wyatt.lee.baldwin
- Fixed `get_column_default` so that it accesses the scalar value
defined in the SQLA table and doesn't use the non-existent
`get_db_session` method.
Fixed `get_column_default` so that it accesses the scalar value
defined in the SQLA table and doesn't use the non-existent
`get_db_session` method.
-
r108
(Apply order_by before offset and limit.) committed by wyatt.lee.baldwin
- Apply order_by before offset and limit.
Apply order_by before offset and limit.
-
r107
(Added a couple of entity methods to aid converting string re...) committed by wyatt.lee.baldwin
- Added a couple of entity methods to aid converting string representations
of primary key values to "proper" values. This is mostly applicable where
there's a multi-part primary key but can also be useful if the PK is,
e.g., a date.
Added a couple of entity methods to aid converting string representations
of primary key values to "proper" values. This is mostly applicable where
there's a multi-part primary key but can also be useful if the PK is,
e.g., a date.
-
r106
(Renamed `filter_params` to `base_filter_params`, so that sub...) committed by wyatt.lee.baldwin
- Renamed `filter_params` to `base_filter_params`, so that subclasses
can more easily override. Added new `filter_params` as empty dict
so that subclasses don't need to worry about defining it if they
don't need to. Updated `set_collection` to handle this.
Renamed `filter_params` to `base_filter_params`, so that subclasses
can more easily override. Added new `filter_params` as empty dict
so that subclasses don't need to worry about defining it if they
don't need to. Updated `set_collection` to handle this.
-
r105
(Support `distinct` and `order_by` query parameters. Ensure `...) committed by wyatt.lee.baldwin
- Support `distinct` and `order_by` query parameters. Ensure `entity` has
bind set up for its mapper in the DB session (note: this might be a HACK;
should look into better way to set binds). Added optional `q` arg to
`set_collection` to allow for a pre-configured query to be passed in.
Support `distinct` and `order_by` query parameters. Ensure `entity` has
bind set up for its mapper in the DB session (note: this might be a HACK;
should look into better way to set binds). Added optional `q` arg to
`set_collection` to allow for a pre-configured query to be passed in.
-
r104
(In `to_simple_collection`, allow the collection to be a list...) committed by wyatt.lee.baldwin
- In `to_simple_collection`, allow the collection to be a list of
SQLA `RowTuple`s. This is useful for when a `query` lists a
subset of columns from a mapped class.
In `to_simple_collection`, allow the collection to be a list of
SQLA `RowTuple`s. This is useful for when a `query` lists a
subset of columns from a mapped class.
-
r103
(Fixed comment typo. Changed list comp loop var to better nam...) committed by wyatt.lee.baldwin
- Fixed comment typo. Changed list comp loop var to better name.
Fixed comment typo. Changed list comp loop var to better name.
-
r102
(Moved logic that maps field names (passed by user as URL par...) committed by wyatt.lee.baldwin
- Moved logic that maps field names (passed by user as URL param) from
`Controller` to `Entity`. Support dotted field names. When simplifying
objects, check for lists and tuples and call `simplify_object` on
items.
Moved logic that maps field names (passed by user as URL param) from
`Controller` to `Entity`. Support dotted field names. When simplifying
objects, check for lists and tuples and call `simplify_object` on
items.
-
r101
(Removed usage of `get_db_session` classmethod from `to_simpl...) committed by wyatt.lee.baldwin
- Removed usage of `get_db_session` classmethod from `to_simple_collection`.
Marked `get_column_default` as needing to remove usage too, but that
method needs other work too, so I left it as-is for now.
Removed usage of `get_db_session` classmethod from `to_simple_collection`.
Marked `get_column_default` as needing to remove usage too, but that
method needs other work too, so I left it as-is for now.
-
r100
(When calling a "filter method" on an entity in `set_collecti...) committed by wyatt.lee.baldwin
- When calling a "filter method" on an entity in `set_collection`, pass the
current query (AKA `q`) first, since the idea now is to always *require*
a `query` be passed to all filter methods. This will create a more consistent
call signature for filter methods and clarify that filter methods are
generative (i.e., they return new `query`s, which generally modify the one
passed in).
When calling a "filter method" on an entity in `set_collection`, pass the
current query (AKA `q`) first, since the idea now is to always *require*
a `query` be passed to all filter methods. This will create a more consistent
call signature for filter methods and clarify that filter methods are
generative (i.e., they return new `query`s, which generally modify the one
passed in).
-
r99
(Fixed subtle bug with `AttributeError` in `simplify_object`....) committed by wyatt.lee.baldwin
- Fixed subtle bug with `AttributeError` in `simplify_object`. If that error
occured in a `to_simple_object` call, it was hidden.
Fixed subtle bug with `AttributeError` in `simplify_object`. If that error
occured in a `to_simple_object` call, it was hidden.
-
r98
(Added `NoDefaultValue` class to use with `filter_params`. In...) committed by wyatt.lee.baldwin
- Added `NoDefaultValue` class to use with `filter_params`. In `set_collection`,
check for filter params that have this value and discard filters that do.
Added `NoDefaultValue` class to use with `filter_params`. In `set_collection`,
check for filter params that have this value and discard filters that do.
-
r97
(Support entity filter methods in set_collection. Renamed
_co...) committed by wyatt.lee.baldwin
- Support entity filter methods in set_collection. Renamed
_convert_param_for_update to convert_param, thereby making it
'public' and indicating that it is usable in contexts other than update.
Filter methods are classmethods defined on a controller's entity. They
must be named as filter_by_<param_name>, where <param_name> is listed in
the controller's filter_params class attribute.
Support entity filter methods in set_collection. Renamed
_convert_param_for_update to convert_param, thereby making it
'public' and indicating that it is usable in contexts other than update.
Filter methods are classmethods defined on a controller's entity. They
must be named as filter_by_<param_name>, where <param_name> is listed in
the controller's filter_params class attribute.
-
r96
(Updated Google Code front page doc to reflect trunk.
) committed by wyatt.lee.baldwin
- Updated Google Code front page doc to reflect trunk.
Updated Google Code front page doc to reflect trunk.
-
-
-
QuickStartZeroDotTwo
Wiki page added by wyatt.lee.baldwin
- Revision r95
Created copy of v0.2 QuickStart before updating to reflect current version.
Revision r95
Created copy of v0.2 QuickStart before updating to reflect current version.
-
r94
(Allow `extra_filters` to be passed to `set_collection`. Thes...) committed by wyatt.lee.baldwin
- Allow `extra_filters` to be passed to `set_collection`. These will be appended to any default
filters.
Allow `extra_filters` to be passed to `set_collection`. These will be appended to any default
filters.
-
r93
(Moved :meth:`entity.Entity.all` functionality to :meth:`cont...) committed by wyatt.lee.baldwin
- Moved :meth:`entity.Entity.all` functionality to :meth:`controller.Controller.set_collection` as it
seems more natural there (but don't ask me why ;). Also added default `limit` and `offset` filter
parameters (both are `None`, which allows these filter params to be overridden without needing to
add them to subclasses).
Moved :meth:`entity.Entity.all` functionality to :meth:`controller.Controller.set_collection` as it
seems more natural there (but don't ask me why ;). Also added default `limit` and `offset` filter
parameters (both are `None`, which allows these filter params to be overridden without needing to
add them to subclasses).
-
r92
(Don't require Pylons as a dependency.) committed by wyatt.lee.baldwin
- Don't require Pylons as a dependency.
Don't require Pylons as a dependency.
-
-
r90
(Added `Entity` class and `EntityMeta` metaclass from TriMet ...) committed by wyatt.lee.baldwin
- Added `Entity` class and `EntityMeta` metaclass from TriMet Core so that they can be more easily
reused in other projects (e.g., byCycle).
Added `Entity` class and `EntityMeta` metaclass from TriMet Core so that they can be more easily
reused in other projects (e.g., byCycle).
-
r89
(Use more robust method for redirecting to a member or the co...) committed by wyatt.lee.baldwin
- Use more robust method for redirecting to a member or the collection. Previous method would break
for namespaced controllers. Added `member` keyword arg to :meth:`_redirect_to_member` to allow
override of redirect to `self.member`.
Use more robust method for redirecting to a member or the collection. Previous method would break
for namespaced controllers. Added `member` keyword arg to :meth:`_redirect_to_member` to allow
override of redirect to `self.member`.
-
r88
(To find the DB Session, don't assume anything about `self.en...) committed by wyatt.lee.baldwin
- To find the DB Session, don't assume anything about `self.entity`. Instead, call into
:meth:`Controller.get_db_session`, which all subclasses must implement.
To find the DB Session, don't assume anything about `self.entity`. Instead, call into
:meth:`Controller.get_db_session`, which all subclasses must implement.
-
r87
(Updated doc string for :meth:`_render_object_as_json`) committed by wyatt.lee.baldwin
- Updated doc string for :meth:`_render_object_as_json`
Updated doc string for :meth:`_render_object_as_json`
-
-
r85
(Allow DB session property to be set directly (i.e., made `db...) committed by wyatt.lee.baldwin
- Allow DB session property to be set directly (i.e., made `db_session` property r/w instead of r/o).
This is needed so that controller instances can temporarily override which DB session is used.
Allow DB session property to be set directly (i.e., made `db_session` property r/w instead of r/o).
This is needed so that controller instances can temporarily override which DB session is used.
-
r84
(Don't try to set read-only properties.) committed by wyatt.lee.baldwin
- Don't try to set read-only properties.
Don't try to set read-only properties.
-
r83
(Bumped SQLAlchemy version.) committed by wyatt.lee.baldwin
- Bumped SQLAlchemy version.
Bumped SQLAlchemy version.
|