Did I find the right examples for you? yes no

All Samples(6)  |  Call(3)  |  Derive(0)  |  Import(3)
validate dbname 

        def validate_dbname(name):
    """ validate dbname """
    if name in SPECIAL_DBS:
        return True
    elif not VALID_DB_NAME.match(urllib.unquote(name)):
        raise ValueError("Invalid db name: '%s'" % name)
    return True
        


src/j/s/jsonobject-couchdbkit-0.6.5.5/couchdbkit/client.py   jsonobject-couchdbkit(Download)
ResourceNotFound, ResourceConflict, BulkSaveError, MultipleResultsFound
from . import resource
from .utils import validate_dbname
 
from .schema.util import maybe_schema_wrapper
            self.server = server = Server(self.server_uri, **params)
 
        validate_dbname(self.dbname)
        if create:
            try:

src/c/o/couchdbkit-0.6.5/couchdbkit/client.py   couchdbkit(Download)
ResourceNotFound, ResourceConflict, BulkSaveError, MultipleResultsFound
from . import resource
from .utils import validate_dbname
 
from .schema.util import maybe_schema_wrapper
            self.server = server = Server(self.server_uri, **params)
 
        validate_dbname(self.dbname)
        if create:
            try:

src/c/o/couchdbkit-HEAD/couchdbkit/client.py   couchdbkit(Download)
ResourceNotFound, ResourceConflict, BulkSaveError, MultipleResultsFound
from . import resource
from .utils import validate_dbname
 
from .schema.util import maybe_schema_wrapper
            self.server = server = Server(self.server_uri, **params)
 
        validate_dbname(self.dbname)
        if create:
            try: