@@ -109,7 +109,7 @@ class Organization(models.Model):
109109
110110 @property
111111 def as2org (self ):
112- """ Returns an object of pyas2lib's Organization class"""
112+ """Returns an object of pyas2lib's Organization class"""
113113 params = {"as2_name" : self .as2_name , "mdn_url" : settings .MDN_URL }
114114 if self .signature_key :
115115 params ["sign_key" ] = bytes (self .signature_key .key )
@@ -262,7 +262,7 @@ class Partner(models.Model):
262262
263263 @property
264264 def as2partner (self ):
265- """ Returns an object of pyas2lib's Partner class"""
265+ """Returns an object of pyas2lib's Partner class"""
266266 params = {
267267 "as2_name" : self .as2_name ,
268268 "compress" : self .compress ,
@@ -414,7 +414,7 @@ class Meta:
414414
415415 @property
416416 def as2message (self ):
417- """ Returns an object of pyas2lib's Message class"""
417+ """Returns an object of pyas2lib's Message class"""
418418 if self .direction == "IN" :
419419 as2m = As2Message (
420420 sender = self .partner .as2partner , receiver = self .organization .as2org
@@ -431,7 +431,7 @@ def as2message(self):
431431
432432 @property
433433 def status_icon (self ):
434- """ Return the icon for message status """
434+ """Return the icon for message status"""
435435 if self .status == "S" :
436436 return "admin/img/icon-yes.svg"
437437 elif self .status == "E" :
@@ -442,7 +442,7 @@ def status_icon(self):
442442 return "admin/img/icon-unknown.svg"
443443
444444 def send_message (self , header , payload ):
445- """ Send the message to the partner"""
445+ """Send the message to the partner"""
446446 logger .info (
447447 f'Sending message { self .message_id } from organization "{ self .organization } " '
448448 f'to partner "{ self .partner } ".'
@@ -595,7 +595,7 @@ def __str__(self):
595595 return self .mdn_id
596596
597597 def send_async_mdn (self ):
598- """ Send the asynchronous MDN to the partner"""
598+ """Send the asynchronous MDN to the partner"""
599599
600600 # convert the mdn headers to dictionary
601601 headers = HeaderParser ().parsestr (self .headers .read ().decode ())
0 commit comments