View Single Post
Posts: 20 | Thanked: 0 times | Joined on Oct 2009
#112
Originally Posted by Jaffa View Post
The names to try to get normalised from UTF-8 to homoglyphs, but I don't know how well it'd work for Chinese characters. Probably very badly.

If you're comfortable with X Terminal, I could send you some code so we can see what Facebook sends (in terms of bytes) and what Contacts reports (in terms of bytes).
No problem, please send to me.

But I add " print friend[attrs[1]]" in lib/hermes.py

# Get the list of friends...
attrs = ['uid', 'name', 'pic_big', 'birthday_date', 'profile_url', 'first_name', 'last_name', 'website']
for friend in self.fb.users.getInfo(self.fb.friends.get(), attrs):
print friend[attrs[1]] ## Legis
key = unicode(friend['name']).encode('trans')
self.friends[key] = friend
self.friends_by_url[friend['profile_url']] = friend
friend['pic'] = friend[attrs[2]]
friend['account'] = 'facebook'
if friend['website']:
friend['homepage'] = friend['website']
if not friend['pic']:
self.blocked_pictures.append(friend)

The name is correct. Still check...should be key issue.


Originally Posted by Jaffa View Post
To download it you don't even need a Garage account, just git pull from the master:

https://garage.maemo.org/scm/?group_id=1071

The current HEAD is in a bit of a broken state whilst Fredrik Wendt and I work on a large scale refactoring of the current services to better adapt to services which have had code hacked in like LinkedIn, Gravatar and Hyves; and future services like Plaxo, Orkut etc; however names.py is where identifier normalisation happens.
What is the difference between the code on git and the code on N900?

Last edited by Legis; 2010-01-19 at 03:52.