ui_collaborations.py 1.28 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
# -*- coding: utf-8 -*-
""" collaborations

"""
#-------------------------------------------------------------------------------
#
# FIELDS CONFIGURATiON
#
#-------------------------------------------------------------------------------
fieldsModifier = dbui.FieldsModifier('collaborations')
fieldsModifier.configure_field('collaboration', xtype='textarea')

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

#-------------------------------------------------------------------------------
#
# GRID CONFIGURATiON
#
#-------------------------------------------------------------------------------
LE GAC Renaud's avatar
LE GAC Renaud committed
24 25 26 27
gridModifier = dbui.GridModifier('collaborations')
gridModifier.append_filter(('collaboration', 'contains', T('contains')), xtype='textfield')
gridModifier.configure_filters(plugins=['pFormToolTip'], width=300)
gridModifier.configure_gridWithFilter(selectorTitle= T('Filter'))
28 29 30 31 32 33 34 35

#-------------------------------------------------------------------------------
#
# STORE CONFIGURATiON
#
#-------------------------------------------------------------------------------
storeModifier = dbui.StoreModifier('collaborations')
storeModifier.orderby(db.collaborations.collaboration)