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

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)
<comment-ja>
Machine2Jobgroup(Model)??????????????
@param metadata: ???????MetaData
@type metadata: sqlalchemy.schema.MetaData
@param now: now
@type now: Datatime
</comment-ja>
<comment-en>
TODO: English Comment
</comment-en>

        def reload_mapper(metadata, now):
    """
    Machine2Jobgroup(Model)??????????????
    @param metadata: ???????MetaData
    @type metadata: sqlalchemy.schema.MetaData
    @param now: now
    @type now: Datatime
    
    
    TODO: English Comment
    
    """
    t_machine2jobgroup = get_machine2jobgroup_table(metadata, now)
    t_machine = metadata.tables["machine"]
    t_user = metadata.tables["user"]
    mapper(Machine2Jobgroup, t_machine2jobgroup, properties={
        'created_user' : relation(karesansui.db.model.user.User,
                                  primaryjoin=t_machine2jobgroup.c.created_user_id==t_user.c.id),
        
        'modified_user' : relation(karesansui.db.model.user.User,
                                   primaryjoin=t_machine2jobgroup.c.modified_user_id==t_user.c.id),
        
        'machine' : relation(karesansui.db.model.machine.Machine,
                             primaryjoin=t_machine2jobgroup.c.machine_id==t_machine.c.id,
                             ),
        })
        


src/k/a/karesansui-HEAD/karesansui/db/model/__init__.py   karesansui(Download)
 
    import karesansui.db.model.machine2jobgroup
    karesansui.db.model.machine2jobgroup.reload_mapper(metadata, _now)
 
    import karesansui.db.model.watch