Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/vvmruder/pyramid_rest
Browse files Browse the repository at this point in the history
  • Loading branch information
vvmruder committed Oct 12, 2015
2 parents 05083e3 + bdcd6a8 commit 5d4b397
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Pyramid REST Changelog
======================

## 2.0.1

Fixed issues:

* [#1](https://github.com/vvmruder/pyramid_rest/pull/1): Fixed encoding issue in filter parameter.

## 2.0.0

First usable version of this package (propably not pip save).

This version ships with the basic parts of REST and some updates which mainly belong to the sqlalchemy
session handling and the filtering system.
2 changes: 2 additions & 0 deletions lib/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ def __decide_filter__(self, filter):
operator = filter.get('operator')
column_name = filter.get('column')
value = filter.get('value')
if isinstance(value, basestring):
value = value.encode('utf-8')
for col in self.mapped_class.__table__.columns:
if col.name == column_name:
if operator == '=':
Expand Down

0 comments on commit 5d4b397

Please sign in to comment.