From e2a9d52972648109cb9e8b7bd4e8a66c1acd03f1 Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Tue, 7 Sep 2010 16:38:58 +0000 Subject: garden --- TODO.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/TODO.txt b/TODO.txt index 469eae26e..f3d5a35e4 100644 --- a/TODO.txt +++ b/TODO.txt @@ -72,6 +72,25 @@ view_permission="something_random" inside every , so that those alc's kick in? or am I doing it completely wrong? +- Need to allow view configs that contain custom predicates a shot at + comparing the same + View configs compare equal if their "phash" is the same + + We'll have to extend bfg to let it compute a phash from a custom + predicate right now, it just uses the id of the predicate. Right + now it does: + + for num, predicate in enumerate(custom): + predicates.append(predicate) + h.update('custom%s:%r' % (num, id(predicate))) + + I'll have to make it do: + + for num, predicate in enumerate(custom): + predicates.append(predicate) + h.update('custom%s:%r' % (num, get_phash(predicate))) + + where get_phash does something sensible but falls back to id -- cgit v1.2.3