Merge "Only force first letter of fullname to be upper"
This commit is contained in:
@@ -13,7 +13,7 @@ Ocata PTL Candidates
|
||||
|
||||
* Cinder
|
||||
|
||||
* `Sean Mcginnis (smcginnis) <https://git.openstack.org/cgit/openstack/election/plain/candidates/ocata/Cinder/smcginnis.txt>`_
|
||||
* `Sean McGinnis (smcginnis) <https://git.openstack.org/cgit/openstack/election/plain/candidates/ocata/Cinder/smcginnis.txt>`_
|
||||
|
||||
* Cloudkitty
|
||||
|
||||
@@ -83,7 +83,7 @@ Ocata PTL Candidates
|
||||
|
||||
* Keystone
|
||||
|
||||
* `Samuel De Medeiros Queiroz (samueldmq) <https://git.openstack.org/cgit/openstack/election/plain/candidates/ocata/Keystone/samueldmq.txt>`_
|
||||
* `Samuel de Medeiros Queiroz (samueldmq) <https://git.openstack.org/cgit/openstack/election/plain/candidates/ocata/Keystone/samueldmq.txt>`_
|
||||
* `Steve Martinelli (stevemar) <https://git.openstack.org/cgit/openstack/election/plain/candidates/ocata/Keystone/stevemar.txt>`_
|
||||
|
||||
* Kolla
|
||||
|
||||
@@ -15,7 +15,7 @@ Ocata PTL
|
||||
|
||||
* Cinder
|
||||
|
||||
* `Sean Mcginnis (smcginnis) <https://git.openstack.org/cgit/openstack/election/plain/candidates/ocata/Cinder/smcginnis.txt>`_
|
||||
* `Sean McGinnis (smcginnis) <https://git.openstack.org/cgit/openstack/election/plain/candidates/ocata/Cinder/smcginnis.txt>`_
|
||||
|
||||
* Cloudkitty
|
||||
|
||||
|
||||
@@ -102,8 +102,14 @@ def get_fullname(filepath):
|
||||
# Strip double space and trailing spaces
|
||||
fullname = re.sub(r" ", " ", fullname).strip()
|
||||
|
||||
# Return capitalized name
|
||||
return u" ".join(map(unicode.capitalize, fullname.split()))
|
||||
# Make sure first letter of first and last component are upper-case
|
||||
s = fullname.split()
|
||||
fullname = (
|
||||
[s[0][0].upper() + s[0][1:]] +
|
||||
s[1:-1] +
|
||||
[s[-1][0].upper() + s[-1][1:]]
|
||||
)
|
||||
return u" ".join(fullname)
|
||||
|
||||
|
||||
def get_reviews(query):
|
||||
|
||||
Reference in New Issue
Block a user