Example #1
0
class OmVisitXGully(Table):
    """ Class to serialize table 'om_visit_x_gully' """

    id = GenericDescriptor(-1)
    visit_id = GenericDescriptor(None)
    gully_id = GenericDescriptor(None)
    is_last = GenericDescriptor(None)

    def __init__(self, controller):
        """ Class constructor """
        Table.__init__(self, controller, 'om_visit_x_gully', 'id')
class OmVisitParameter(Table):
    """ Class to serialize table 'om_visit_parameter' """

    id = GenericDescriptor(None)
    code = GenericDescriptor(None)
    parameter_type = GenericDescriptor(None)
    feature_type = GenericDescriptor(None)
    data_type = GenericDescriptor(None)
    criticity = GenericDescriptor(None)
    descript = GenericDescriptor(None)
    form_type = GenericDescriptor(None)
    vdefault = GenericDescriptor(None)

    def __init__(self, controller):
        """ Class constructor """
        Table.__init__(self, controller, 'om_visit_parameter', 'id')
class OmVisitEvent(Table):
    """ Class to serialize table 'om_visit_event' """

    id = GenericDescriptor(-1)
    event_code = GenericDescriptor(None)
    visit_id = GenericDescriptor(None)
    position_id = GenericDescriptor(None)
    position_value = GenericDescriptor(None)
    parameter_id = GenericDescriptor(None)
    value = GenericDescriptor(None)
    value1 = GenericDescriptor(None)
    value2 = GenericDescriptor(None)
    geom1 = GenericDescriptor(None)
    geom2 = GenericDescriptor(None)
    geom3 = GenericDescriptor(None)
    xcoord = GenericDescriptor(None)
    ycoord = GenericDescriptor(None)
    compass = GenericDescriptor(None)
    tstamp = GenericDescriptor(None)
    text = GenericDescriptor(None)
    index_val = GenericDescriptor(None)
    is_last = GenericDescriptor(None)

    def __init__(self, controller):
        """ Class constructor """
        Table.__init__(self, controller, 'om_visit_event', 'id')
class OmVisit(Table):
    """ Class to serialize table 'om_visit' """

    id = GenericDescriptor(-1)
    visitcat_id = GenericDescriptor(None)
    ext_code = GenericDescriptor(None)
    startdate = GenericDescriptor(None)
    enddate = GenericDescriptor(None)
    user_name = GenericDescriptor(None)
    webclient_id = GenericDescriptor(None)
    expl_id = GenericDescriptor(None)
    the_geom = GenericDescriptor(None)
    descript = GenericDescriptor(None)
    is_done = GenericDescriptor(None)

    def __init__(self, controller):
        """ Class constructor """
        Table.__init__(self, controller, 'om_visit', 'id')