comparison python/tree.py @ 443:fbb5b143349a

notes to self
author Jeff Hammel <jhammel@mozilla.com>
date Fri, 09 Aug 2013 15:58:58 -0700
parents 9b7f5e31b465
children 93dc0507ab3b
comparison
equal deleted inserted replaced
442:3982b7ad596b 443:fbb5b143349a
74 74
75 def children(self): 75 def children(self):
76 return os.listdir(self.directory) # -> self._return_type 76 return os.listdir(self.directory) # -> self._return_type
77 77
78 ## Serializers 78 ## Serializers
79
80 def tree2html(tree):
81 """
82 .
83 ├── a8e.py
84 ├── abstract.py
85 ├── accentuate.py
86
87 ->
88
89 <ul>
90 <li>a8e.py</li>
91 ...
92 """
93
79 94
80 # How to serialize a tree -> JSON? 95 # How to serialize a tree -> JSON?
81 96
82 ### 97 ###
83 98