Canonification
Torsten Grote
torsten at kolab.org
Tue Sep 1 11:27:31 CEST 2015
On Monday 31 August 2015 20:44:24 Paul Bronson wrote:
> primary_mail = '%(givenname)s'[0:1]%(surname)s@%(domain)s
Please check the python syntax of that statement. This is what I am getting:
>>> params = { "givenname":"Hans", "surname":"Wurst", "domain":"fleischer" }
>>> print "'%(givenname)s'[0:1]%(surname)s@%(domain)s" % params
'Hans'[0:1]Wurst at fleischer
And this is probably not how you want your email addresses to look like.
Kind Regards,
Torsten
--
pgp: 0x2175A534A4F2EFA3
More information about the users
mailing list