Initials as uid (python)

Henning henne.gwath at gmx.de
Wed Apr 23 09:51:54 CEST 2014


Does no one know?

Am 08.04.2014 20:39, schrieb Henning:
> Hi,
> 
> I want to set uids for new users as the initials of the user. How do I
> do that with the pythonic syntax of kolab.conf?
> 
> policy_uid = '%(givenname)s'[0:1]'%(surname)s'[0:1].lower()
> 
> is not valid and
> 
> policy_uid = '{1}{2}'.format('%(givenname)s'[0:1]',
> '%(surname)s'[0:1]).lower()
> 
> either. Please help me out with this.
> 
> Henning
> 


More information about the users mailing list