diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-03-28 11:09:53 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-03-28 11:10:59 +0200 | 
| commit | 8beff03e0f1b32d4540df6c656446c95d2993dbb (patch) | |
| tree | 7c0359dc421698f20e544f469394a0fa2ea929b5 /ishtar_common/models_imports.py | |
| parent | 633da250abe1d2b243564a3c014e28b96e80aebe (diff) | |
| download | Ishtar-8beff03e0f1b32d4540df6c656446c95d2993dbb.tar.bz2 Ishtar-8beff03e0f1b32d4540df6c656446c95d2993dbb.zip | |
Make step by step import an experimental feature (refs #3975)
Diffstat (limited to 'ishtar_common/models_imports.py')
| -rw-r--r-- | ishtar_common/models_imports.py | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/ishtar_common/models_imports.py b/ishtar_common/models_imports.py index cd8865eca..9afd435da 100644 --- a/ishtar_common/models_imports.py +++ b/ishtar_common/models_imports.py @@ -896,17 +896,21 @@ class Import(models.Model):          """          Get available action relevant with the current status          """ +        from ishtar_common.models import IshtarSiteProfile +        profile = IshtarSiteProfile.get_current_profile()          actions = []          if self.state == 'C':              actions.append(('A', _(u"Analyse")))          if self.state == 'A':              actions.append(('A', _(u"Re-analyse")))              actions.append(('I', _(u"Launch import"))) -            actions.append(('IS', _(u"Step by step import"))) +            if profile.experimental_feature: +                actions.append(('IS', _(u"Step by step import")))          if self.state in ('F', 'FE'):              actions.append(('A', _(u"Re-analyse")))              actions.append(('I', _(u"Re-import"))) -            actions.append(('IS', _(u"Step by step import"))) +            if profile.experimental_feature: +                actions.append(('IS', _(u"Step by step import")))              actions.append(('AC', _(u"Archive")))          if self.state == 'AC':              actions.append(('A', _(u"Unarchive"))) | 
