[prev in list] [next in list] [prev in thread] [next in thread]
List: kolab-users
Subject: Re: Initials as uid (python)
From: Henning <henne.gwath () gmx ! de>
Date: 2014-04-23 7:51:54
Message-ID: 5357711A.9060002 () gmx ! de
[Download RAW message or body]
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
>
_______________________________________________
users mailing list
users@lists.kolab.org
https://lists.kolab.org/mailman/listinfo/users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic