You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
here qs is a monk.modeling.MongoResultSet instance; now sort the documents:
qs2=qs.sort('foo')
...whoops, qs2 is a pymongo.cursor.Cursor, i.e. monk.modeling.Document wrapping is lost.
Currently MongoResultSet simply redirects __getattr__ to Cursor; it should wrap the results in some cases as it does in __iter__.
Note: This issue has been automatically migrated from Bitbucket
Created by @neithere on 2012-05-17 01:27:32+00:00, last updated: 2012-05-17 01:28:09+00:00
The text was updated successfully, but these errors were encountered:
Let's find something in the database:
here
qs
is amonk.modeling.MongoResultSet
instance; now sort the documents:...whoops,
qs2
is apymongo.cursor.Cursor
, i.e.monk.modeling.Document
wrapping is lost.Currently
MongoResultSet
simply redirects__getattr__
toCursor
; it should wrap the results in some cases as it does in__iter__
.Note: This issue has been automatically migrated from Bitbucket
Created by @neithere on 2012-05-17 01:27:32+00:00, last updated: 2012-05-17 01:28:09+00:00
The text was updated successfully, but these errors were encountered: