summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@agendaless.com>2010-09-07 16:38:58 +0000
committerChris McDonough <chrism@agendaless.com>2010-09-07 16:38:58 +0000
commite2a9d52972648109cb9e8b7bd4e8a66c1acd03f1 (patch)
treee8794c8b1ec15ca12b6885ed4d8893625431a473
parentbe906efca6dc0f8da7225102d9b25daba1daffa8 (diff)
downloadpyramid-e2a9d52972648109cb9e8b7bd4e8a66c1acd03f1.tar.gz
pyramid-e2a9d52972648109cb9e8b7bd4e8a66c1acd03f1.tar.bz2
pyramid-e2a9d52972648109cb9e8b7bd4e8a66c1acd03f1.zip
garden
-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