Mercurial > p > roundup > code
diff roundup/template_parser.py @ 934:fdcf16b444a9
Use a real parser for templates.
Rewrite htmltemplate to use the parser (hack, hack).
Move the "do_XXX" methods to template_funcs.py.
Redo the funcion tests (but not Template tests - they're hopeless).
Simplified query form in cgi_client.
Ability to delete msgs, files, queries.
Ability to edit the metadata on files.
| author | Gordon B. McMillan <gmcm@users.sourceforge.net> |
|---|---|
| date | Tue, 13 Aug 2002 20:16:10 +0000 |
| parents | a43fa69c1b70 |
| children | 540fc5fb20d4 |
line wrap: on
line diff
--- a/roundup/template_parser.py Tue Aug 13 07:09:47 2002 +0000 +++ b/roundup/template_parser.py Tue Aug 13 20:16:10 2002 +0000 @@ -34,7 +34,7 @@ ''' def __init__(self, attributes): self.attributes = attributes - self.current = self.structure = [] + self.current = self.ok = [] def __len__(self): return len(self.current) def __getitem__(self, n): @@ -134,7 +134,7 @@ l.append('%sDISPLAY: %r'%(indent, entry.attributes)) elif isinstance(entry, Property): l.append('%sPROPERTY: %r'%(indent, entry.attributes)) - l.append(display(entry.structure, indent+' ')) + l.append(display(entry.ok, indent+' ')) return ''.join(l) if __name__ == '__main__':
