* ud-useradd: Avoid a TypeError exception when constructing the template
authorMark Hymers <mark@hymers.org.uk>
Wed, 26 Dec 2007 18:01:19 +0000 (18:01 +0000)
committerMark Hymers <mark@hymers.org.uk>
Wed, 26 Dec 2007 18:01:19 +0000 (18:01 +0000)
  filename

debian/changelog
ud-useradd

index 382e859..b53129e 100644 (file)
@@ -16,8 +16,10 @@ userdir-ldap (0.3.15+xxx) XXunstable; urgency=low
   * ud-userimport, ud-groupadd, ud-roleadd, ud-useradd, userdir_ldap.py:
     Update ud-userimport to use the same objectClasses as
     ud-{user,group,role}add and abstract them out into userdir_ldap.py
+  * ud-useradd: Avoid a TypeError exception when constructing the template
+    filename
 
- -- Mark Hymers <mhy@debian.org>  Wed, 26 Dec 2007 17:56:28 +0000
+ -- Mark Hymers <mhy@debian.org>  Wed, 26 Dec 2007 18:00:08 +0000
 
 userdir-ldap (0.3.15) unstable; urgency=low
 
index e0c30e9..8cc425b 100755 (executable)
@@ -306,7 +306,7 @@ if Update == 1 and ForceMail == 0:
 
 # Send the Welcome message
 print "Sending Welcome Email"
-Reply = TemplateSubst(Subst,open(TemplatesDir+"/welcome-message-"+gidNumber,"r").read());
+Reply = TemplateSubst(Subst,open(TemplatesDir + "/welcome-message-%d" % gidNumber, "r").read())
 Child = os.popen("/usr/sbin/sendmail -t","w");
 #Child = os.popen("cat","w");
 Child.write(Reply);