[tarent-useful-scripts SCM] git branch master updated. 4808733ec8a8941cfe2fcde51b05e7e4301690c5

mirabilos at evolvis.org mirabilos at evolvis.org
Wed May 21 15:28:17 CEST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Main git repository for Evolvis project useful-scripts".

The branch, master has been updated
       via  4808733ec8a8941cfe2fcde51b05e7e4301690c5 (commit)
      from  a37eba5ba73747f5aafeebe4600ba000cfb3a71e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4808733ec8a8941cfe2fcde51b05e7e4301690c5
Author: Thorsten Glaser <t.glaser at tarent.de>
Date:   Wed May 21 15:28:14 2014 +0200

    ^T^K]

-----------------------------------------------------------------------

Summary of changes:
 otrs/otrs-mailcustomers.py |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/otrs/otrs-mailcustomers.py b/otrs/otrs-mailcustomers.py
index 101f913..f0b69ce 100644
--- a/otrs/otrs-mailcustomers.py
+++ b/otrs/otrs-mailcustomers.py
@@ -33,11 +33,11 @@ class SOAPProxy(SOAPpy.SOAPProxy):
     def __call(self, name, args, kw, ns = None, sa = None, hd = None, ma = None):
         ns = ns or self.namespace
         sa = sa or self.soapaction
-    
+
         # Only prepend namespace if no soapaction was given.
-        if ns and not sa:           
+        if ns and not sa:
             sa = '%s#%s' % (ns, name)
-        
+
         return SOAPpy.SOAPProxy.__call(self, name, args, kw, ns, sa, hd, ma)
 
 # Configure SOAP access to OTRS
@@ -80,8 +80,8 @@ def otrs_dispatch(otrs_object, otrs_function, *args):
     return soap_proxy.Dispatch(soap_user, soap_password, otrs_object, otrs_function, *args)
 
 def naturalsort(l):
-    convert = lambda text: int(text) if text.isdigit() else text.lower() 
-    alphanum_key = lambda key: [ convert(c) for c in re.split('([0-9]+)', key) ] 
+    convert = lambda text: int(text) if text.isdigit() else text.lower()
+    alphanum_key = lambda key: [ convert(c) for c in re.split('([0-9]+)', key) ]
     return sorted(l, key = alphanum_key)
 
 def zipstruct(s):
@@ -146,7 +146,7 @@ for user in users:
 
     print("%s\t%s\t%s" % (users[user]["UserLogin"], users[user]["UserEmail"], users[user]["UserCustomerID"]))
 
-# Let suer decide if they want to bug all those users
+# Let user decide if they want to bug all those users
 print("")
 ret = raw_input("The users above will receive a mailing. Type OK if you so desire: ")
 if not ret == "OK":


hooks/post-receive
-- 
Main git repository for Evolvis project useful-scripts
(Evolvis project useful-scripts repository useful-scripts)


More information about the useful-scripts-commits mailing list