MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / __init__

Method __init__

mongoengine/fields.py:634–641  ·  view source on GitHub ↗

:param separator: Allows to customize the separator used for storage (default ``,``) :param kwargs: Keyword arguments passed into the parent :class:`~mongoengine.StringField`

(self, separator=",", **kwargs)

Source from the content-addressed store, hash-verified

632 """
633
634 def __init__(self, separator=",", **kwargs):
635 """
636 :param separator: Allows to customize the separator used for storage (default ``,``)
637 :param kwargs: Keyword arguments passed into the parent :class:`~mongoengine.StringField`
638 """
639 self.separator = separator
640 self.format = separator.join(["%Y", "%m", "%d", "%H", "%M", "%S", "%f"])
641 super().__init__(**kwargs)
642
643 def _convert_from_datetime(self, val):
644 """

Callers

nothing calls this directly

Calls 2

joinMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected