| @@ 565-575 (lines=11) @@ | ||
| 562 | ||
| 563 | self.chart = EvolutionChart() |
|
| 564 | ||
| 565 | def add_column(self, id, **kwargs): |
|
| 566 | """Add the given column to all review states |
|
| 567 | """ |
|
| 568 | after = kwargs.pop("after", "") |
|
| 569 | self.columns[id] = kwargs |
|
| 570 | for rv in self.review_states: |
|
| 571 | cols = rv["columns"] |
|
| 572 | index = len(cols) |
|
| 573 | if after and after in cols: |
|
| 574 | index = cols.index(after) + 1 |
|
| 575 | cols.insert(index, id) |
|
| 576 | ||
| 577 | def isItemAllowed(self, obj): |
|
| 578 | allowed = super(InstrumentReferenceAnalysesView, |
|
| @@ 147-157 (lines=11) @@ | ||
| 144 | ||
| 145 | self.chart = EvolutionChart() |
|
| 146 | ||
| 147 | def add_column(self, id, **kwargs): |
|
| 148 | """Add the given column to all review states |
|
| 149 | """ |
|
| 150 | after = kwargs.pop("after", "") |
|
| 151 | self.columns[id] = kwargs |
|
| 152 | for rv in self.review_states: |
|
| 153 | cols = rv["columns"] |
|
| 154 | index = len(cols) |
|
| 155 | if after and after in cols: |
|
| 156 | index = cols.index(after) + 1 |
|
| 157 | cols.insert(index, id) |
|
| 158 | ||
| 159 | def folderitem(self, obj, item, index): |
|
| 160 | """Service triggered each time an item is iterated in folderitems. |
|