root/trunk/pyramid/core.py

Revision 163, 0.7 kB (checked in by tim, 3 years ago)

ran reindent and raised file exceptions in flatteners

Line 
1 from nevow import tags as T
2 from pyramid.path import path
3
4 DOCTYPE = T.xml('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n')
5 PYRAMIDSUFFIXES = ('.yml','.rst','.html','.ht')
6
7
8 class Context:
9     def __init__(self,node={}):
10         # set root level data as an empty dictionary
11         self.data = node.get('data',{})
12         self.path = path(node.get('path',''))
13         self.verbose = node.get('verbose',False)
14         self.root = path(node.get('root',''))
15
16     def __eq__(self,other):
17         return self.data == other.data
18
19     def __ne__(self,other):
20         return self.data != self.data
Note: See TracBrowser for help on using the browser.