ui_events.py 1.24 KB
Newer Older
1 2 3 4 5 6 7 8 9
# -*- coding: utf-8 -*-
""" events 

"""
#-------------------------------------------------------------------------------
#
# FIELDS CONFIGURATiON
#
#-------------------------------------------------------------------------------
10 11 12 13 14
fieldsModifier = dbui.FieldsModifier('events')
fieldsModifier.configure_field('data',
                               headers=[T('Property'), T('Type')], 
                               modifyKeys=True, 
                               height=150)
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37

#-------------------------------------------------------------------------------
#
# FORM CONFIGURATiON
#
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
#
# GRID CONFIGURATiON
#
#-------------------------------------------------------------------------------
gridModifier = dbui.GridModifier('events')
gridModifier.configure_column('category', width=20)
gridModifier.configure_column('event', width=20)

#-------------------------------------------------------------------------------
#
# STORE CONFIGURATiON
#
#-------------------------------------------------------------------------------
storeModifier = dbui.StoreModifier('events')
storeModifier.orderby(db.events.event)