Did I find the right examples for you? yes no

All Samples(13)  |  Call(0)  |  Derive(0)  |  Import(13)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/m/o/mongokit-0.9.1.1/mongokit/document.py   mongokit(Download)
                                        "Error in indexes: can't find %s in structure" % value[0])
                                if not value[1] in [pymongo.DESCENDING, pymongo.ASCENDING, pymongo.OFF, pymongo.ALL,
                                                    pymongo.GEO2D, pymongo.GEOHAYSTACK, pymongo.GEOSPHERE,
                                                    pymongo.HASHED, "text"]:
                                    raise BadIndexError(
                                                "Error in indexes: can't find %s in structure" % field)
                                        if not direction in [pymongo.DESCENDING, pymongo.ASCENDING, pymongo.OFF,
                                                             pymongo.ALL, pymongo.GEO2D, pymongo.GEOHAYSTACK,
                                                             pymongo.GEOSPHERE, "text"]:
                                            raise BadIndexError(

src/m/o/mongokit-HEAD/mongokit/document.py   mongokit(Download)
                                        "Error in indexes: can't find %s in structure" % value[0])
                                if not value[1] in [pymongo.DESCENDING, pymongo.ASCENDING, pymongo.OFF, pymongo.ALL,
                                                    pymongo.GEO2D, pymongo.GEOHAYSTACK, pymongo.GEOSPHERE,
                                                    pymongo.HASHED, "text"]:
                                    raise BadIndexError(
                                                "Error in indexes: can't find %s in structure" % field)
                                        if not direction in [pymongo.DESCENDING, pymongo.ASCENDING, pymongo.OFF,
                                                             pymongo.ALL, pymongo.GEO2D, pymongo.GEOHAYSTACK,
                                                             pymongo.GEOSPHERE, "text"]:
                                            raise BadIndexError(

src/m/o/mongokit-0.9.1.1/mongokit/__init__.py   mongokit(Download)
from connection import Connection, MongoClient, MongoReplicaSetClient, ReplicaSetConnection
from master_slave_connection import MasterSlaveConnection
from pymongo import (
    ASCENDING as INDEX_ASCENDING,
    DESCENDING as INDEX_DESCENDING,

src/m/o/mongokit-HEAD/mongokit/__init__.py   mongokit(Download)
from connection import Connection, MongoClient, MongoReplicaSetClient, ReplicaSetConnection
from master_slave_connection import MasterSlaveConnection
from pymongo import (
    ASCENDING as INDEX_ASCENDING,
    DESCENDING as INDEX_DESCENDING,

src/m/o/mongokit-py3-0.9.1.1/mongokit/__init__.py   mongokit-py3(Download)
from .connection import Connection, MongoClient, MongoReplicaSetClient, ReplicaSetConnection
from .master_slave_connection import MasterSlaveConnection
from pymongo import (
    ASCENDING as INDEX_ASCENDING,
    DESCENDING as INDEX_DESCENDING,

src/m/o/mongodb-d4-HEAD/libs/mongokit/document.py   mongodb-d4(Download)
                                    raise ValueError(
                                      "Error in indexes: can't find %s in structure" % value[0] )
                                if not value[1] in [pymongo.DESCENDING, pymongo.ASCENDING, pymongo.OFF, pymongo.ALL, pymongo.GEO2D]:
                                    raise BadIndexError(
                                      "index direction must be INDEX_DESCENDING, INDEX_ASCENDING, INDEX_OFF, INDEX_ALL or INDEX_GEO2D. Got %s" % value[1])
                                            raise ValueError(
                                              "Error in indexes: can't find %s in structure" % field )
                                        if not direction in [pymongo.DESCENDING, pymongo.ASCENDING, pymongo.OFF, pymongo.ALL, pymongo.GEO2D]:
                                            raise BadIndexError(
                                              "index direction must be INDEX_DESCENDING, INDEX_ASCENDING, INDEX_OFF, INDEX_ALL or INDEX_GEO2D. Got %s" % direction)

src/m/o/mongodb-d4-HEAD/libs/mongokit/__init__.py   mongodb-d4(Download)
from connection import Connection
from master_slave_connection import MasterSlaveConnection
from pymongo import ASCENDING as INDEX_ASCENDING,\
  DESCENDING as INDEX_DESCENDING,\
  ALL as INDEX_ALL,\

src/m/o/MongoLite-1.5/mongolite/__init__.py   MongoLite(Download)
 
from bson.dbref import DBRef
from pymongo import ASCENDING as INDEX_ASCENDING,\
    DESCENDING as INDEX_DESCENDING,\
    GEO2D as INDEX_GEO2D,\

src/m/o/MongoLite-1.5/mongolite/document.py   MongoLite(Download)
                                        raise ValueError(
                                          "Error in indexes: can't find %s in skeleton or optional" % field )
                                    if not direction in [pymongo.DESCENDING, pymongo.ASCENDING, pymongo.OFF, pymongo.ALL, pymongo.GEO2D]:
                                        raise BadIndexError(
                                          "index direction must be INDEX_DESCENDING, INDEX_ASCENDING, INDEX_OFF, INDEX_ALL or INDEX_GEO2D. Got %s" % direction)

src/m/o/mongosm-HEAD/insert_osm_data.py   mongosm(Download)
    def __init__(self, client):
        self.client = client
 
        self.client.osm.nodes.ensure_index([('loc', pymongo.GEO2D)])
        self.client.osm.nodes.ensure_index([('id', pymongo.ASCENDING),
                                            ('version', pymongo.DESCENDING)])
 
        self.client.osm.ways.ensure_index([('loc', pymongo.GEO2D)])

  1 | 2 | 3  Next