Permalink
Browse files

Support `hidden` property on nodes.

  • Loading branch information...
1 parent ecf1b1c commit dc8068a6af92a00c674e7bfa018df1d3438d2eb9 @cpressey cpressey committed Mar 8, 2013
Showing with 5 additions and 0 deletions.
  1. +1 −0 README.markdown
  2. +2 −0 TODO.markdown
  3. +2 −0 src/chrysoberyl/renderer.py
View
@@ -42,6 +42,7 @@ Each node may have any of the following fields:
* `commentary` -- a subjective opinion, by Chris Pressey, of the node
* `subtitle` -- expanding on the name of the node
* `acronym-for` -- expanding the name of the node
+* `hidden` -- if true, does not show up in `related()` lists
* ...
Each node can have a `domain`, which influences how breadcrumbs are
View
@@ -141,3 +141,5 @@ Sort other collections (games, tools, language implementations) by date.
"Console: Virtual" is an implementation "contained in" the
Corona: Realm of Magic distribution. This is a little weird.
+
+Make commentary and links into blocks so they can be overridden.
@@ -120,6 +120,8 @@ def related(relationship, key=key):
"""
objects = []
for thing in self.data:
+ if self.data[thing].get('hidden', False):
+ continue
rel = self.data[thing].get(relationship, None)
if rel is None:
continue

0 comments on commit dc8068a

Please sign in to comment.