Skip to content
Snippets Groups Projects
Commit 7d627793 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Remove obsolete code related to linkedcombobox with array store.

parent 8919126c
Branches
Tags
No related merge requests found
......@@ -8,19 +8,6 @@
#
dbui.configure_forms(db, plugins=['pFormToolTip'])
#-------------------------------------------------------------------------------
#
# foo1 selector
#
# formModifier = dbui.FormModifier('foo1')
# formModifier.link_comboboxes(masterName='my_axis',
# slaveNames='my_granularity',
# storeName='axesStore',
# displayFieldMaster='axis_local',
# valueFieldMaster='axis',
# displayFieldSlaves='granularity_local',
# valueFieldSlaves='granularity')
#-------------------------------------------------------------------------------
#
# harvester selector
......
......@@ -2,19 +2,10 @@
""" widgets stores
"""
#
# Create a static store with the axes definition
#
cfg = dbui.ArrayStore(fields=['axis', 'axis_local', 'granularity', 'granularity_local'],
data=[['projects', T('projects'), 'project', T('project')],
['projects', T('projects'), 'agency', T('agency')],
['teams', T('teams'), 'team', T('team')],
['teams', T('teams'), 'domain', T('domain')],
['time', T('time'), 'year', T('year')]])
dbui.AddStore('axes', **cfg)
#-------------------------------------------------------------------------------
#
# order store contents for technical tables
# teams
#
storeModifier = dbui.StoreModifier('teams')
storeModifier.orderby(~db.teams.team)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment