jur9526 / couchdb-python

Automatically exported from code.google.com/p/couchdb-python
Other
0 stars 0 forks source link

ListField.Proxy doesn't slice by __getitem__ #171

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Python documentation says that `__getslice__` and other `__*slice__` methods 
are deprecated and classes should use `__*item__` instead.

`ListField.Proxy` doesn't respect `slice` objects as argument. In some cases it 
can produce wуird results (for example when slice object passed explicitly. 
Django's `|slice` template filter use such capability).

Patch with tests is attached.

Original issue reported on code.google.com by daevaorn on 13 Mar 2011 at 8:00

Attachments:

GoogleCodeExporter commented 9 years ago
Up!

Original comment by daevaorn on 28 May 2011 at 9:40

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub. Please continue discussion here:

https://github.com/djc/couchdb-python/issues/171

Original comment by djc.ochtman on 15 Jul 2014 at 7:20