summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--TODO.txt19
1 files changed, 19 insertions, 0 deletions
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 <route>, 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