ui_collaborations.py 1.42 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11
# -*- coding: utf-8 -*-
""" collaborations

"""
#-------------------------------------------------------------------------------
#
# FIELDS CONFIGURATiON
#
#-------------------------------------------------------------------------------
fieldsModifier = dbui.FieldsModifier('collaborations')
fieldsModifier.configure_field('collaboration', xtype='textarea')
12
fieldsModifier.configure_field('synonyms', minimumRows=5)
13 14 15 16 17 18 19 20 21 22 23 24

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

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

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