Example #1
0
 def testCase(self):
     cases = [
         glyph.node("doc", attributes=dict(aa=1, b="toot")),
         glyph.form("http://example.org", values=["a", "b"]),
         glyph.link("http://toot.org"),
     ]
     for c in cases:
         self.assertEqual(c, glyph.parse(glyph.dump(c)))
Example #2
0
 def index(self):
     return {"make": glyph.form(Test), "zero": glyph.form(self)}
Example #3
0
 def index(self):
     return dict(test=glyph.form(Test))
Example #4
0
 def GET(self):
     return {'make':glyph.form(Test), 'zero': glyph.form(self)}