Commit c75d1bc9 authored by Rafael Monnerat's avatar Rafael Monnerat

Defined an better API for delimiter. This break the current implementation, 
Planning_generateAxis in erp5_core has to be updated to solve it.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14939 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bd13dd5c
...@@ -2195,16 +2195,16 @@ class PlanningStructure: ...@@ -2195,16 +2195,16 @@ class PlanningStructure:
# group position and size informations are saved in position_secondary # group position and size informations are saved in position_secondary
# using relative coordinates # using relative coordinates
for delimiter in delimiter_list: for delimiter in delimiter_list:
# XXX What is delimiter ? API needed
axis_group = AxisGroup(name='Group_sec_' + str(axis_group_number), axis_group = AxisGroup(name='Group_sec_' + str(axis_group_number),
title=delimiter[1], delimiter_type=delimiter[3]) title=delimiter['title'],
axis_group.tooltip = delimiter[2] delimiter_type=delimiter['delimiter_type'])
axis_group.tooltip = delimiter['tooltip']
axis_group.position_secondary.relative_begin = \ axis_group.position_secondary.relative_begin = \
int(delimiter[0]) - int(axis_start) int(delimiter['relative_position']) - int(axis_start)
# set defaut stop bound and size # set defaut stop bound and size
axis_group.position_secondary.relative_end = int(axis_stop) axis_group.position_secondary.relative_end = int(axis_stop)
axis_group.position_secondary.relative_range = \ axis_group.position_secondary.relative_range = \
int(axis_stop) - int(delimiter[0]) int(axis_stop) - int(delimiter['relative_position'])
# do not need to update previous delimiter informations for first # do not need to update previous delimiter informations for first
# delimiter # delimiter
if delimiter != delimiter_list[0]: if delimiter != delimiter_list[0]:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment