pymongo


SON Manipulator in mongo queries


I've written a SON manipulator to encode some custom objects into mongo following http://api.mongodb.org/python/current/examples/custom_type.html. This works brilliantly for encoding and decoding the objects on their way into and out of the collection, but as far as I can tell, there's no way to use it in a query. If I try to query using an object which can be encoded using the manipulator, I get the same cannot encode object error that you get if you try to insert the object directly without using the manipulator. However, I can obviously query perfectly if I manually encode the object into the query. Is there a neat way to use the SON manipulator in queries without resorting to manually encoding the object?

Related Links

python motor offers fetch_next exception on aggregation
python motor mongo cursor length or peek next
PyMongo check if update succeeded
insert and query an OrderedDict in MongoHQ
Return .str of ObjectID using pymongo
Selecting the lowest/highest with find_one in Pymongo
Safe use of Pymongo's find_one
Pymongo $in + $regex
How can I get pymongo to always return str and not unicode?
SON Manipulator in mongo queries
How to append a document to a 2nd level embedded model list document in Django and mongoengine
pymongo multiple update $in
How to get negetive of a complex where clause in mongo db
pymongo justOne & multi
How to make pymongo's find() return a list?
convert pymongo cursor to json

Categories

HOME
events
user-interface
memory
lambda
keyboard
yaml
shinyapps
couchdb
filesize
odata
consul
google-play-services
mirc
google-webmaster-tools
biztalk-2010
ontology
gprs
phpseclib
tup
migrate
nexus3
getopenfilename
multi-step
smartgwt
xbox360
sonicwall
bnf
pinterest
gmp
tfsbuild
bazaar
android-custom-view
amazon-mws
jitsi
sqlplus
fido-u2f
batch-rename
mime-types
environment
web-config-transform
introspection
hevc
math.js
ccavenue
pyspark-sql
sendmessage
amazon-cloudtrail
audit
nic
winsock
phpstorm-2016.1
windowsiot
riotjs
epplus
counting
directfb
xerces-c
text-decorations
cheat-engine
rdp
flowchart
python-jira
data-uri
minikube
realstudio
tinyioc
embedded-v8
android-webservice
mongodb-aggregation
patternlab.io
glimpse
polymaps
hmmlearn
instafeedjs
http4s
mifos
logical
seccomp
dpkg
declarative
deferred-rendering
wif4.5
ajax4jsf
helm
android-mapview
mousehover
canopy
search-form
ampersand
unidata
fat32
password-recovery
cakephp-2.2
quantify
.htpasswd
assetic
ggts
san
asp.net-mvc-3-areas
xcode4.5
zend-pdf
java.lang.class
exponent
glx
zend-server-ce
delphi-prism
office-automation
nosetests
mediacontroller
jquery-1.4
css-friendly
icicles
processors

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App