[sysadmin-bin] Add two \n between each function definition



commit a114882967c4a9ab6cf7363e55ba9090c5473a64
Author: Andrea Veri <av gnome org>
Date:   Fri Nov 7 12:19:51 2014 +0100

    Add two \n between each function definition

 membership/foundation-operations.py |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/membership/foundation-operations.py b/membership/foundation-operations.py
index ef004f2..9662e7a 100755
--- a/membership/foundation-operations.py
+++ b/membership/foundation-operations.py
@@ -12,6 +12,7 @@ from email.mime.text import MIMEText
 from time import strftime, gmtime, strptime, localtime, time
 from optparse import OptionParser
 
+
 usage = "usage: %prog [options]"
 parser = OptionParser(usage)
 
@@ -52,6 +53,7 @@ except ldap.LDAPError, e:
         print >>sys.stderr, e
         sys.exit(1)
 
+
 def _parse_members_from_group(group):
 
     filter = ldap.filter.filter_format('(&(objectClass=posixgroup)(cn=%s))', (group, ))
@@ -70,11 +72,13 @@ def _parse_members_from_group(group):
 
     return members
 
+
 def  _get_foundation_members():
     foundationmembers = _parse_members_from_group('foundation')
 
     return foundationmembers
 
+
 def _get_attributes_from_ldap(uid, attr):
     filter = ldap.filter.filter_format('(uid=%s)', (uid, ))
     results = l.search_s(LDAP_USER_BASE, ldap.SCOPE_SUBTREE, filter, ('uid', attr, ))
@@ -84,6 +88,7 @@ def _get_attributes_from_ldap(uid, attr):
     else:
         return None
 
+
 def _get_foundation_fields_from_ldap():
     foundationmembers = _get_foundation_members()
 
@@ -100,14 +105,17 @@ def _get_foundation_fields_from_ldap():
         else:
            pass
 
+
 def sync_user_to_mailusers_member(member):
         add_members = [(ldap.MOD_ADD, 'member', 'uid=%s,cn=users,cn=accounts,dc=gnome,dc=org' % (member))]
         l.modify_s('cn=mailusers,cn=groups,cn=accounts,dc=gnome,dc=org', add_members)
 
+
 def remove_user_from_foundation_member(member):
         remove_members = [(ldap.MOD_DELETE, 'member', 'uid=%s,cn=users,cn=accounts,dc=gnome,dc=org' % 
(member))]
         l.modify_s('cn=foundation,cn=groups,cn=accounts,dc=gnome,dc=org', remove_members)
 
+
 def _sync_foundation_with_mailusers():
     foundationmembers = _get_foundation_members()
     mailusers = _parse_members_from_group('mailusers')
@@ -116,6 +124,7 @@ def _sync_foundation_with_mailusers():
         if member not in mailusers:
             sync_user_to_mailusers_member(member)
 
+
 def remove_expired_memberships_from_foundation():
     foundationmembers = _get_foundation_members()
     now = time()
@@ -204,6 +213,7 @@ def subscribe_new_members():
         subscribe.wait()
         os.remove('/tmp/new_subscribers')
 
+
 new_member_form_letter = string.Template("""
 Dear $cn,
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]