Changeset 1312
- Timestamp:
- 09/02/06 02:58:39
- Files:
-
- trunk/cherrypy/lib/__init__.py (modified) (1 diff)
- trunk/cherrypy/test/test_config.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/cherrypy/lib/__init__.py
r1243 r1312 98 98 def build_NoneType(self, o): 99 99 return None 100 101 def build_UnarySub(self, o): 102 return -self.build_Const(o.getChildren()[0]) 103 104 def build_UnaryAdd(self, o): 105 return self.build_Const(o.getChildren()[0]) 100 106 101 107 trunk/cherrypy/test/test_config.py
r1299 r1312 19 19 return cherrypy.request.config.get(key, "None") 20 20 index = cherrypy.expose(index, alias=('global_', 'xyz')) 21 22 def repr(self, key): 23 return repr(cherrypy.request.config.get(key, None)) 24 repr.exposed = True 21 25 22 26 class Foo: … … 41 45 index.exposed = True 42 46 47 ioconf = StringIO.StringIO(""" 48 [/] 49 neg: -1234 50 """) 51 43 52 root = Root() 44 53 root.foo = Foo() 45 cherrypy.tree.mount(root )54 cherrypy.tree.mount(root, config=ioconf) 46 55 cherrypy.tree.mount(Another(), "/another") 47 56 cherrypy.config.update({'environment': 'test_suite'}) … … 62 71 ('/', 'foo', 'this'), 63 72 ('/', 'bar', 'that'), 73 ('/repr', 'neg', '-1234'), 64 74 ('/xyz', 'foo', 'this'), 65 75 ('/foo/', 'foo', 'this2'),

