planitec: change some labels from planitech to planitec (#32189)

This commit is contained in:
Emmanuel Cazenave 2019-04-19 11:09:12 +02:00
parent 72489a1707
commit f4c7c2f685
1 changed files with 4 additions and 4 deletions

View File

@ -246,8 +246,8 @@ def time_to_minutes(timeobj):
class PlanitechConnector(BaseResource):
url = models.URLField(
max_length=400, verbose_name=_('Planitech API endpoint'),
help_text=_('URL of the Planitech API endpoint'))
max_length=400, verbose_name=_('Planitec API endpoint'),
help_text=_('URL of the Planitec API endpoint'))
username = models.CharField(max_length=128, verbose_name=_('Service username'))
password = models.CharField(
max_length=128, verbose_name=_('Service password'), null=True, blank=True)
@ -259,7 +259,7 @@ class PlanitechConnector(BaseResource):
category = _('Business Process Connectors')
class Meta:
verbose_name = _('Planitech')
verbose_name = _('Planitec')
def _call_planitech(self, session_meth, endpoint, params=None):
if not getattr(self, '_planitech_session', False):
@ -381,7 +381,7 @@ class PlanitechConnector(BaseResource):
response.raise_for_status()
# the last response should have set a cookie which will be used for authentication
except RequestException as e:
raise APIError("Authentication to Planitech failed: %s" % str(e))
raise APIError("Authentication to Planitec failed: %s" % str(e))
def get_or_create_pairing(self, post_data):
with transaction.atomic():