We were getting a traceback because we were attempting to invoke the
.strip() method on a NoneType.
This handles things properly for users who have the privacy flag set.
--
Stephen Gallagher
RHCE 804006346421761
Delivering value year after year.
Red Hat ranks #1 in value among software vendors.
http://www.redhat.com/promo/vendor/
# Bazaar merge directive format 2 (Bazaar 0.90)
# revision_id: sgallagh@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\
# f3t1eue4z55f3t25
# target_branch: bzr://bzr.fedorahosted.org/bzr/python-fedora/python-\
# fedora-devel/
# testament_sha1: 36ba99f8d0956ce3472ed5187554eae36a321529
# timestamp: 2010-04-20 10:20:29 -0400
# base_revision_id: sgallagh@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\
# 3dk1bybf81j8hho3
#
# Begin patch
=== modified file 'fedora/django/auth/models.py'
--- fedora/django/auth/models.py 2010-04-19 20:56:48 +0000
+++ fedora/django/auth/models.py 2010-04-20 14:19:07 +0000
@@ -122,4 +122,6 @@
objects = FasUserManager()
def get_full_name(self):
- return self.name.strip()
+ if self.name:
+ return self.name.strip()
+ return self.username.strip()
# Begin bundle
IyBCYXphYXIgcmV2aXNpb24gYnVuZGxlIHY0CiMKQlpoOTFBWSZTWb3cpesABkZ/gAVUQABZ4///
d8IOCr////BgCcfLYAAAAGgAFAAAABKaiRMniQfqnk1PSbU8poA0Bo0A9R6QA1T0o2k9Bqepo0Bk
A0NGgAaZAADmmJkyaMJgmJpgEwCGCMCMBzTEyZNGEwTE0wCYBDBGBGA5piZMmjCYJiaYBMAhgjAj
AFSSBDQCZATEaT0BMmmiMSY00G1S+MxIZEU7sE+d6x1BIg8/n3pNapZRx2iiaLCa73YOwdewqWw8
F6pnoevzV+3QBsQCBpATCm5NwnUqxmJJ7cXX0xeY8em2WS67Jn2oRoRP+T/P+9/rH9ziVFUVVKv/
1DpvMSqq5nx2XYGAbawtKjHVRvYkV9b25Qd0pn6oR5kSXgifRGGi7ipDMGCCEDwGTlOW5rGMGCU9
bU0DkZJE4AhQI7IS8kBgCi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KjHRE8FYX6nLKVlffI6PUD6E7DpMBzPUMi5Yt
xfKcTcNB1xaV+BwyF8NETMnV0Ll2+hjROJxnovHr/XP/Mr5YZJw3eSVMaJtqSV0S5O3qSsI3k0wN
KLi2FLRv/Umn6TAmWyLzyJYsUd3vR/dGBSdCNmuNR0z/8XckU4UJC93KXrA=
_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/infrastructure