It would be nice if 'c', 'g', 'h', and 'request' had an
easier-to-remember way to inspect their contents than:
pprint.pprint(vars(request._current_obj()))
Al these other ways do this:
pprint.pprint(request); pprint.pprint(g)
<paste.wsgiwrappers.WSGIRequest object at 0xb763a30c>
<inews2.lib.app_globals.Globals object at 0xb760fbec>
pprint.pprint(vars(request); pprint.pprint(vars(g))
{'____local__': <thread._local object at 0xb795ac98>, '____name__': 'Request'}
{'____local__': <thread._local object at 0xb795acc8>, '____name__': 'G'}
pprint.pprint(request.items()); pprint.pprint(g.items())
exceptions.AttributeError: 'WSGIRequest' object has no attribute 'items'
pprint.pprint(g.items())
exceptions.AttributeError: 'Globals' object has no attribute 'items'
pprint.pprint(dir(request))
# Lists a bunch of underscored methods.
--
Mike Orr <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---