From 08f03d2621d69d66f18a7f5616ddd4b9dbf91e88 Mon Sep 17 00:00:00 2001 From: Marek Marecki Date: Wed, 3 Jul 2013 20:48:59 +0200 Subject: [PATCH] Sometginh broke Aspect().getUsers() --- diaspy/models.py | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/diaspy/models.py b/diaspy/models.py index cc4b0a4..6bc3115 100644 --- a/diaspy/models.py +++ b/diaspy/models.py @@ -33,16 +33,24 @@ class Aspect(): """Returns list of GUIDs of users who are listed in this aspect. """ start_regexp = re.compile('') ajax = ajax[begin:end] + #print(ajax) + usernames = [(line[17:33], line[35:-4]) for line in userline_regexp.findall(ajax)] + for guid, name in usernames: + print(name, guid) personids = [re.compile(personid_regexp.format(name)).search(ajax).group(0) for guid, name in usernames] for n, line in enumerate(personids): i, id = -2, '' -- 2.25.1