コード例 #1
0
    def __init__(self, *arg, **kw):
        TypeDecorator.__init__(self, *arg, **kw)

        def load_dialect_impl(self, dialect):
            if dialect.name == 'mysql':
                return dialect.type_descriptor(
                    sqlalchemy.dialects.mysql.DATETIME())
コード例 #2
0
    def __init__(self):
        """
        Initialize.
        """

        # base
        TypeDecorator.__init__(self)
コード例 #3
0
    def __init__(self, mutable = True):
        """
        Initialize.
        """

        TypeDecorator.__init__(self)

        self._mutable = mutable
コード例 #4
0
ファイル: structure.py プロジェクト: token428/validol
 def __init__(self,
              schema=None,
              post_load=None,
              pre_dump=None,
              *args,
              **kwargs):
     TypeDecorator.__init__(self, *args, **kwargs)
     self.schema = schema
     self.post_load = post_load
     self.pre_dump = pre_dump
コード例 #5
0
    def __init__(self, item_type, mutable = True):
        """
        Initialize.
        """

        # base
        TypeDecorator.__init__(self)

        # members
        self.item_type = item_type
        self._mutable = mutable
コード例 #6
0
ファイル: types.py プロジェクト: magfest/ubersystem
 def __init__(self, choices, *, allow_unspecified=False, **kwargs):
     """
     Args:
         choices: an array of tuples, where the first element of each tuple
             is the integer being stored and the second element is a string
             description of the value.
         allow_unspecified: by default, an exception is raised if you try
             to save a row with a value which is not in the choices list
             passed to this class; set this to True if you want to allow
             non-default values.
     """
     self.choices = dict(choices)
     self.allow_unspecified = allow_unspecified
     TypeDecorator.__init__(self, **kwargs)
コード例 #7
0
ファイル: types.py プロジェクト: outlaw-josiah/ubersystem
 def __init__(self, choices, *, allow_unspecified=False, **kwargs):
     """
     Args:
         choices: an array of tuples, where the first element of each tuple
             is the integer being stored and the second element is a string
             description of the value.
         allow_unspecified: by default, an exception is raised if you try
             to save a row with a value which is not in the choices list
             passed to this class; set this to True if you want to allow
             non-default values.
     """
     self.choices = dict(choices)
     self.allow_unspecified = allow_unspecified
     TypeDecorator.__init__(self, **kwargs)
コード例 #8
0
ファイル: db_models.py プロジェクト: TLSInventory/backend
 def __init__(self):
     TypeDecorator.__init__(self)
コード例 #9
0
ファイル: __init__.py プロジェクト: sacrud/saexttype
 def __init__(self, path='', abspath='', *arg, **kw):
     TypeDecorator.__init__(self, *arg, **kw)
     self.path = path
     self.abspath = abspath
コード例 #10
0
ファイル: aware_models.py プロジェクト: nrlakin/impulse
 def __init__(self):
     TypeDecorator.__init__(self, asdecimal=False)
コード例 #11
0
ファイル: models.py プロジェクト: mmariani/abilian-core
 def __init__(self, *args, **kwargs):
   kwargs['length'] = 100
   TypeDecorator.__init__(self, *args, **kwargs)
コード例 #12
0
 def __init__(self, *arg, **kw):
     TypeDecorator.__init__(self, *arg, **kw)
コード例 #13
0
ファイル: guid.py プロジェクト: ned21/aquilon
 def __init__(self):
     TypeDecorator.__init__(self, length=32)
コード例 #14
0
ファイル: base.py プロジェクト: glucoseinc/CircleCore
 def __init__(self, *arg, **kwargs):
     TypeDecorator.__init__(self, *arg, **kwargs)
     self.delimiter = kwargs.get('delimiter', self.default_delimiter)
コード例 #15
0
ファイル: sqlalchemy.py プロジェクト: QLGu/flask-spoilerplate
 def __init__(self, enum):
     self.enum = enum
     TypeDecorator.__init__(self)
     SchemaType.__init__(self)
コード例 #16
0
 def __init__(self, scale=2):
     TypeDecorator.__init__(self)
     self.scale = scale
コード例 #17
0
ファイル: joblib.py プロジェクト: gunnarbeutner/zfsci
	def __init__(*args, **kwargs):
		kwargs['length'] = 10 * 1024 * 1024;
		TypeDecorator.__init__(*args, **kwargs)
コード例 #18
0
ファイル: mysql.py プロジェクト: pombredanne/invenio-ext
 def __init__(self, *arg, **kw):
     """Init iLargeBinary type."""
     self.__class__.impl = self.impl
     TypeDecorator.__init__(self, *arg, **kw)
コード例 #19
0
ファイル: db.py プロジェクト: atishn/Finance-Planner
 def __init__(self, enum, values):
     self.enum = enum
     self.values = values
     TypeDecorator.__init__(self)
コード例 #20
0
 def __init__(self, *args, **kwargs):
     self.enum_class = kwargs.pop('enum_class')
     TypeDecorator.__init__(self, *args, **kwargs)
コード例 #21
0
ファイル: jsonimpl.py プロジェクト: pombredanne/lunr
 def load_dialect_impl(self, dialect, **kwargs):
     if dialect.name.startswith('postgres'):
         return dialect.type_descriptor(TEXT)
     return TypeDecorator.load_dialect_impl(self, dialect, **kwargs)
コード例 #22
0
ファイル: types.py プロジェクト: anxolerd/Meowth
 def __init__(self, enum, *args, **kwargs):
     self._enum = enum
     TypeDecorator.__init__(self, *args, **kwargs)
コード例 #23
0
ファイル: dbtypes.py プロジェクト: pythonModule/commandment
 def __init__(self, *arg, **kw):
     TypeDecorator.__init__(self, *arg, **kw)
     self.values = arg[0]
コード例 #24
0
ファイル: types.py プロジェクト: greylock/batteries
    def __init__(self, *args, **kwargs):
        if 'charset' in kwargs:
            del kwargs['charset']

        TypeDecorator.__init__(self, *args, **kwargs)
コード例 #25
0
ファイル: mysql.py プロジェクト: mhellmic/b2share
 def __init__(self, *arg, **kw):
     self.__class__.impl = self.impl;
     TypeDecorator.__init__(self, *arg, **kw)
コード例 #26
0
 def __init__(self, *arg, **kw):
     self.__class__.impl = self.impl
     TypeDecorator.__init__(self, *arg, **kw)
コード例 #27
0
ファイル: database.py プロジェクト: Plurk/Solace
 def __init__(self):
     TypeDecorator.__init__(self, 30)
コード例 #28
0
ファイル: types.py プロジェクト: w3bcr4ft/autonomie
 def __init__(self, prefix, *args, **kw):
     TypeDecorator.__init__(self, *args, **kw)
     self.prefix = prefix
コード例 #29
0
 def __init__(self):
     TypeDecorator.__init__(self, as_decimal=False)
コード例 #30
0
ファイル: storable.py プロジェクト: greylock/batteries
    def __init__(self, pathspec, *args, **kwargs):
        self.resolver = AssetResolver()
        self.pathspec = pathspec

        TypeDecorator.__init__(self, *args, **kwargs)
コード例 #31
0
ファイル: models.py プロジェクト: RobertSudwarts/tg2-elfinder
 def __init__(self, wibble=None, optionset='default', *args, **kw):
     TypeDecorator.__init__(self, *args, **kw)
     #super(ElfinderField, self).__init__()
     self.optionset = optionset
     self.wibble = wibble
コード例 #32
0
ファイル: columns.py プロジェクト: Kareeeeem/AMC
 def __init__(self, rounds=None, *args, **kwargs):
     TypeDecorator.__init__(self, *args, **kwargs)
コード例 #33
0
ファイル: guid.py プロジェクト: jrha/aquilon
 def __init__(self):
     TypeDecorator.__init__(self, length=32)
コード例 #34
0
ファイル: enum.py プロジェクト: wguanicedew/iDDS
 def _set_parent_with_dispatch(self, parent):
     TypeDecorator._set_parent_with_dispatch(self, parent)
     SchemaType._set_parent_with_dispatch(self, parent)
コード例 #35
0
ファイル: types.py プロジェクト: outlaw-josiah/ubersystem
 def __init__(self, choices, **kwargs):
     self.choices = choices
     self.choices_dict = dict(choices)
     TypeDecorator.__init__(self, **kwargs)
コード例 #36
0
ファイル: types.py プロジェクト: w3bcr4ft/autonomie
 def __init__(self, prefix, *args, **kw):
     TypeDecorator.__init__(self, *args, **kw)
     self.prefix = prefix
コード例 #37
0
ファイル: models.py プロジェクト: uralbash/pyramid_elfinder
 def __init__(self, *arg, **kw):
     TypeDecorator.__init__(self, *arg, **kw)
コード例 #38
0
ファイル: mysql.py プロジェクト: dset0x/invenio
 def __init__(self, *arg, **kw):
     """Init iLargeBinary type."""
     self.__class__.impl = self.impl
     TypeDecorator.__init__(self, *arg, **kw)
コード例 #39
0
 def __init__(self, *args, **kwargs):
     self.enum_class = kwargs.pop('enum_class')
     TypeDecorator.__init__(self, *args, **kwargs)
コード例 #40
0
ファイル: singleton.py プロジェクト: debon/abilian-core
 def __init__(self, *args, **kwargs):
   assert self.Type is not None
   kwargs.setdefault('length', self.default_max_length)
   TypeDecorator.__init__(self, *args, **kwargs)
コード例 #41
0
ファイル: tables.py プロジェクト: CyrilleFranchet/ivre
 def __init__(self, item_type, *args, **kwargs):
     TypeDecorator.__init__(self, *args, **kwargs)
     self.item_type = item_type
コード例 #42
0
ファイル: singleton.py プロジェクト: debon/abilian-core
 def __init__(self, *args, **kwargs):
     assert self.Type is not None
     kwargs.setdefault('length', self.default_max_length)
     TypeDecorator.__init__(self, *args, **kwargs)
コード例 #43
0
 def __init__(self):
     self.impl.length = 30
     TypeDecorator.__init__(self, length=self.impl.length)
コード例 #44
0
ファイル: jsonimpl.py プロジェクト: audip/lunr
 def load_dialect_impl(self, dialect, **kwargs):
     if dialect.name.startswith('postgres'):
         return dialect.type_descriptor(TEXT)
     return TypeDecorator.load_dialect_impl(self, dialect, **kwargs)
コード例 #45
0
ファイル: tables.py プロジェクト: zorroroot/ivre
 def __init__(self, item_type, *args, **kwargs):
     TypeDecorator.__init__(self, *args, **kwargs)
     self.item_type = item_type
コード例 #46
0
ファイル: types.py プロジェクト: magfest/ubersystem
 def __init__(self, choices, **kwargs):
     self.choices = choices
     self.choices_dict = dict(choices)
     TypeDecorator.__init__(self, **kwargs)
 def __init__(self, enum, *args, **kw):
     self.enum = enum
     TypeDecorator.__init__(self, *args, **kw)
コード例 #48
0
 def __init__(self):
     self.impl.length = 30
     TypeDecorator.__init__(self, length=self.impl.length)
コード例 #49
0
ファイル: __init__.py プロジェクト: sacrud/saexttype
 def __init__(self, path='', abspath='', *arg, **kw):
     TypeDecorator.__init__(self, *arg, **kw)
     self.path = path
     self.abspath = abspath
コード例 #50
0
 def __init__(self, enum, values):
     self.enum = enum
     self.values = values
     TypeDecorator.__init__(self)