How to use the choochoo.uweird.database.SingleTableStatic function in choochoo

To help you get started, we’ve selected a few choochoo examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github andrewcooke / choochoo / choochoo / reminders.py View on Github external
def make_bound_reminder(db, log, tabs, bar, insert_callback=None):
    binder = SingleTableStatic(db, log, 'reminder',
                               transforms={'start': DATE_ORDINAL, 'finish': DATE_ORDINAL},
                               insert_callback=insert_callback)
    injury = Reminder(log, tabs, bar, binder)
    return injury, binder
github andrewcooke / choochoo / choochoo / aims.py View on Github external
def make_bound_aim(db, log, tabs, bar, insert_callback=None):
    binder = SingleTableStatic(db, log, 'aim',
                               transforms={'start': DATE_ORDINAL, 'finish': DATE_ORDINAL},
                               insert_callback=insert_callback)
    injury = Definition(log, tabs, bar, binder)
    return injury, binder