8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 15:33:45 +00:00

Fix some translations in topologie/

This commit is contained in:
Laouen Fernet 2020-05-30 11:38:02 +02:00 committed by chirac
parent 9b39529fd2
commit 9a3b395e6c
2 changed files with 3 additions and 8 deletions

View file

@ -84,7 +84,7 @@ class Stack(AclMixin, RevMixin, models.Model):
super(Stack, self).save(*args, **kwargs) super(Stack, self).save(*args, **kwargs)
def clean(self): def clean(self):
""" Verification que l'id_max < id_min""" """Check if id_max < id_min."""
if self.member_id_max < self.member_id_min: if self.member_id_max < self.member_id_min:
raise ValidationError( raise ValidationError(
{"member_id_max": _("The maximum ID is less than the minimum ID.")} {"member_id_max": _("The maximum ID is less than the minimum ID.")}
@ -310,8 +310,6 @@ class Switch(Machine):
) )
def create_ports(self, begin, end): def create_ports(self, begin, end):
""" Crée les ports de begin à end si les valeurs données
sont cohérentes. """
"""Create ports for the switch if the values are consistent. """Create ports for the switch if the values are consistent.
Args: Args:

View file

@ -19,11 +19,8 @@
# You should have received a copy of the GNU General Public License along # You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc., # with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
""" """topologie.urls
Definition des urls de l'application topologie. The defined URLs for topologie app. Included in re2o.urls.
Inclu dans urls de re2o.
Fait référence aux fonctions du views
""" """
from __future__ import unicode_literals from __future__ import unicode_literals