MCPcopy Create free account
hub / github.com/couchbase/couchbase-python-client / namespace

Method namespace

couchbase/logic/views.py:391–404  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

389
390 @property
391 def namespace(self) -> DesignDocumentNamespace:
392 value = self._params.get(
393 'ns', None
394 )
395 if value is None:
396 return DesignDocumentNamespace.DEVELOPMENT
397
398 if isinstance(value, str):
399 return DesignDocumentNamespace.from_str(value)
400 if isinstance(value, bool):
401 if not value:
402 return DesignDocumentNamespace.PRODUCTION
403
404 return DesignDocumentNamespace.DEVELOPMENT
405
406 @namespace.setter
407 def namespace(self, value # type: Union[DesignDocumentNamespace, str]

Callers

nothing calls this directly

Calls 6

set_optionMethod · 0.95
getMethod · 0.45
from_strMethod · 0.45
to_strMethod · 0.45

Tested by

no test coverage detected