0001-sql-only-the-last-Evolution-object-can-be-changed-65.patch
wcs/sql.py | ||
---|---|---|
2605 | 2605 |
self.clean_live_evolution_items() |
2606 | 2606 | |
2607 | 2607 |
if self._evolution: |
2608 |
for evo in self._evolution: |
|
2608 |
# skip all the evolution that already have an _sql_id |
|
2609 |
for idx, evo in enumerate(self._evolution): |
|
2610 |
if not hasattr(evo, '_sql_id'): |
|
2611 |
break |
|
2612 |
# now we can save all after this idx |
|
2613 |
for evo in self._evolution[idx:]: |
|
2609 | 2614 |
sql_dict = {} |
2610 | 2615 |
if hasattr(evo, '_sql_id'): |
2611 | 2616 |
sql_dict.update({'id': evo._sql_id}) |
2612 |
- |