ui_preferences.py 1.71 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 24 25 26 27 28 29 30 31 32 33
# -*- coding: utf-8 -*-
""" preferences

"""
#-------------------------------------------------------------------------------
#
# FIELDS CONFIGURATiON
#
#-------------------------------------------------------------------------------

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

#-------------------------------------------------------------------------------
#
# GRID CONFIGURATiON
#
#-------------------------------------------------------------------------------

#-------------------------------------------------------------------------------
#
# PREFERENCES CONFIGURATiON
#
#-------------------------------------------------------------------------------
cfgPreferences = dict(dbtable='preferences',
                      height=200,
                      nameColumnWidth=150,
                      source={
                          'authorize_harvester_scan': False,
                          'authorize_user_login': False,
34
                          'harvester_start_year': year},
35 36 37
                      sourceConfig={
                          'authorize_harvester_scan': {'type': 'boolean'},
                          'authorize_user_login': {'type': 'boolean'},
38
                          'harvester_start_year': {'type': 'number'}},
39 40 41 42 43 44 45 46 47 48
                      width=250,
                      xtype='xpreferences')

#-------------------------------------------------------------------------------
#
# STORE CONFIGURATiON
#
#-------------------------------------------------------------------------------
storeModifier = dbui.StoreModifier('preferences')
storeModifier.orderby(db.preferences.property)