community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r951478 - /comdev/nearby_people/nearby/foaf.py
Date Fri, 04 Jun 2010 16:27:27 GMT
Author: nick
Date: Fri Jun  4 16:27:27 2010
New Revision: 951478

URL: http://svn.apache.org/viewvc?rev=951478&view=rev
Log:
Tweak the missing surname guesser

Modified:
    comdev/nearby_people/nearby/foaf.py

Modified: comdev/nearby_people/nearby/foaf.py
URL: http://svn.apache.org/viewvc/comdev/nearby_people/nearby/foaf.py?rev=951478&r1=951477&r2=951478&view=diff
==============================================================================
--- comdev/nearby_people/nearby/foaf.py (original)
+++ comdev/nearby_people/nearby/foaf.py Fri Jun  4 16:27:27 2010
@@ -113,10 +113,9 @@ class FOAF(object):
             surname = surnameN[0].firstChild.data
         if nameN:
             name = nameN[0].firstChild.data
-            # Some people store everything in this field
+            # Work out their surname from this if not given
             if not surnameN and name.find(" ") > 0:
                surname = " ".join( name.split(" ")[1:] )
-               name = name.split(" ")[0]
         if longN:
             long = longN[0].firstChild.data
         if latN:



Mime
View raw message