projects
/
Plinn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0a487ad
)
Nom de famille capitalisé plutôt que tout en majuscules.
author
Benoît Pin
<pin@cri.ensmp.fr>
Thu, 28 Nov 2013 10:16:09 +0000
(11:16 +0100)
committer
Benoît Pin
<pin@cri.ensmp.fr>
Thu, 28 Nov 2013 10:16:09 +0000
(11:16 +0100)
utils.py
patch
|
blob
|
history
diff --git
a/utils.py
b/utils.py
index
8f6bd3d
..
aa91c8d
100755
(executable)
--- a/
utils.py
+++ b/
utils.py
@@
-94,12
+94,12
@@
def formatFullName(memberName, memberGivenName, memberId, nameBefore=1) :
memberFullName = u''
if memberName and memberGivenName :
if nameBefore :
memberFullName = u''
if memberName and memberGivenName :
if nameBefore :
- memberFullName = memberName.
upper
() + ' ' + capitalizeCompoundGivenName(memberGivenName)
+ memberFullName = memberName.
capitalize
() + ' ' + capitalizeCompoundGivenName(memberGivenName)
else :
else :
- memberFullName = capitalizeCompoundGivenName(memberGivenName) + ' ' + memberName.
upper
()
+ memberFullName = capitalizeCompoundGivenName(memberGivenName) + ' ' + memberName.
capitalize
()
elif memberName and not memberGivenName :
elif memberName and not memberGivenName :
- memberFullName = memberName.
upper
()
+ memberFullName = memberName.
capitalize
()
elif not memberName and memberGivenName :
memberFullName = capitalizeCompoundGivenName(memberGivenName)
elif not memberName and memberGivenName :
memberFullName = capitalizeCompoundGivenName(memberGivenName)