Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(4)  |  Derive(0)  |  Import(2)
Mapping field for storing date/time values.

src/a/s/astm-0.5.0/astm/omnilab/server.py   astm(Download)
 
from astm.server import BaseRecordsDispatcher
from astm.mapping import (
    Component, ConstantField, ComponentField, DateTimeField, IntegerField,
    SetField, TextField, NotUsedField, DateField
    abnormality_nature = SetField(values=('N', 'L', 'H', 'LL', 'HH'))
    completed_at = ComponentField(CompletionDate)
    created_at = DateField()
    instrument = TextField(length=16)
    operator = ComponentField(Operator)
    references = TextField()
    sampled_at = DateField()

src/a/s/astm-0.5.0/astm/omnilab/common.py   astm(Download)
 
from astm import __version__
from astm.mapping import (
    Component, ConstantField, ComponentField, DateField, DateTimeField,
    IntegerField, SetField, TextField
    :type dosage_category: None
    """
    birthdate = DateField()
    laboratory_id = TextField(required=True, length=16)
    location = TextField(length=20)

src/a/s/astm-0.5.0/astm/tests/test_mapping.py   astm(Download)
        class Dummy(mapping.Mapping):
            field = mapping.DateField()
        self.Dummy = Dummy
        self.datetime = datetime.datetime(2009, 2, 13, 23, 31, 30)
        self.date = datetime.datetime(2009, 2, 13)