It's probably easier to read if it's indented...
Regards,
-Reenen
print environ results (indented)
{
'AUTH_TYPE': '',
'tiddlyweb.query': {},
'HTTP_REFERER': 'http://localhost:8080/bags',
'selector.methods': ['PUT', 'GET', 'DELETE'],
'SERVER_SOFTWARE': 'CherryPy/3.0.3 WSGI Server',
'SCRIPT_NAME': '',
'ACTUAL_SERVER_PROTOCOL': 'HTTP/1.1',
'REQUEST_METHOD': 'GET',
'PATH_INFO': '/bags/system',
'SERVER_PROTOCOL': 'HTTP/1.1',
'QUERY_STRING': '',
'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
'tiddlyweb.config': {
'extractors': ['http_basic', 'simple_cookie'],
'server_store': ['text', {'store_root': 'store'}],
'serializers': {
'text/x-tiddlywiki': ['wiki', 'text/html;
charset=UTF-8'],
'default': ['html', 'text/html;
charset=UTF-8'],
'application/json': ['json',
'application/json; charset=UTF-8'],
'text/plain': ['text', 'text/plain;
charset=UTF-8'],
'text/html': ['html', 'text/html;
charset=UTF-8']},
'urls_map': 'c:\\TiddlyWiki\\core\\tiddlyweb\\urls.map',
'system_plugins': [],
'base_tiddlywiki':
'c:\\TiddlyWiki\\core\\tiddlyweb\\empty.html',
'twanager_plugins': ['tiddlyweb.fromsvn',
'tiddlyweb.instancer'],
'server_request_filters': [
<class
'tiddlyweb.web.query.Query'>,
<class
'tiddlyweb.web.wsgi.StoreSet'>,
<class
'tiddlyweb.web.extractor.UserExtract'>,
<class
'tiddlyweb.web.negotiate.Negotiate'>],
'recipe_create_policy': '',
'selector': <selector.Selector object at 0x01165590>,
'server_host': {'host': 'localhost', 'scheme': 'http',
'port': 8080},
'secret': 'this should come from a file',
'bag_create_policy': '',
'server_prefix': '',
'extension_types': {
'wiki': 'text/x-tiddlywiki',
'json': 'application/json',
'txt': 'text/plain',
'html': 'text/html'},
'server_response_filters': [
<class
'tiddlyweb.web.wsgi.HTMLPresenter'>,
<class
'tiddlyweb.web.wsgi.PermissionsExceptor'>,
<class
'tiddlyweb.web.http.HTTPExceptor'>,
<class
'tiddlyweb.web.wsgi.EncodeUTF8'>,
<class
'tiddlyweb.web.wsgi.SimpleLog'>],
'auth_systems':
['cookie_form', 'openid']},
'HTTP_USER_AGENT':
'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.4)
Gecko/2008102920 Firefox/3.0.4',
'HTTP_CONNECTION':
'keep-alive',
'REMOTE_PORT': '1334',
'SERVER_NAME': 'pcs1854',
'REMOTE_ADDR': '127.0.0.1',
'wsgi.url_scheme': 'http',
'selector.vars': {'bag_name':
'system'},
'SERVER_PORT': '8080',
'tiddlyweb.store':
<tiddlyweb.store.Store object at 0x011C26F0>,
'tiddlyweb.usersign':
{'name': 'GUEST'},
'wsgi.input':
<socket._fileobject object at 0x011C1C70>,
'HTTP_HOST':
'localhost:8080',
'wsgi.multithread': True,
'HTTP_ACCEPT':
'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'wsgi.version': (1, 0),
'wsgi.run_once': False,
'wsgi.errors': <open file
'<stderr>', mode 'w' at 0x00B0F0B0>,
'wsgi.multiprocess': False,
'HTTP_ACCEPT_LANGUAGE':
'en-us,en;q=0.5',
'HTTP_ACCEPT_ENCODING':
'gzip,deflate',
'tiddlyweb.type':
['text/html', 'application/xhtml+xml', 'application/xml', '*/*', '*/*'],
'HTTP_KEEP_ALIVE': '300'
}
On Fri, Dec 5, 2008 at 9:54 AM, Reenen Laurie <[EMAIL PROTECTED]> wrote:
> print environ
> gives this result:
> {'AUTH_TYPE': '', 'tiddlyweb.query': {}, 'HTTP_REFERER': '
> http://localhost:8080/bags', 'selector.methods': ['PUT', 'GET', 'DELETE'],
> 'SERVER_SOFTWARE': 'CherryPy/3.0.3 WSGI Server', 'SCRIPT_NAME': '',
> 'ACTUAL_SERVER_PROTOCOL': 'HTTP/1.1', 'REQUEST_METHOD': 'GET', 'PATH_INFO':
> '/bags/system', 'SERVER_PROTOCOL': 'HTTP/1.1', 'QUERY_STRING': '',
> 'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'tiddlyweb.config':
> {'extractors': ['http_basic', 'simple_cookie'], 'server_store': ['text',
> {'store_root': 'store'}], 'serializers': {'text/x-tiddlywiki': ['wiki',
> 'text/html; charset=UTF-8'], 'default': ['html', 'text/html;
> charset=UTF-8'], 'application/json': ['json', 'application/json;
> charset=UTF-8'], 'text/plain': ['text', 'text/plain; charset=UTF-8'],
> 'text/html': ['html', 'text/html; charset=UTF-8']}, 'urls_map':
> 'c:\\TiddlyWiki\\core\\tiddlyweb\\urls.map', 'system_plugins': [],
> 'base_tiddlywiki': 'c:\\TiddlyWiki\\core\\tiddlyweb\\empty.html',
> 'twanager_plugins': ['tiddlyweb.fromsvn', 'tiddlyweb.instancer'],
> 'server_request_filters': [<class 'tiddlyweb.web.query.Query'>, <class
> 'tiddlyweb.web.wsgi.StoreSet'>, <class
> 'tiddlyweb.web.extractor.UserExtract'>, <class
> 'tiddlyweb.web.negotiate.Negotiate'>], 'recipe_create_policy': '',
> 'selector': <selector.Selector object at 0x01165590>, 'server_host':
> {'host': 'localhost', 'scheme': 'http', 'port': 8080}, 'secret': 'this
> should come from a file', 'bag_create_policy': '',
> 'server_prefix': '', 'extension_types': {'wiki': 'text/x-tiddlywiki',
> 'json': 'application/json', 'txt': 'text/plain', 'html': 'text/html'},
> 'server_response_filters': [<class 'tiddlyweb.web.wsgi.HTMLPresenter'>,
> <class 'tiddlyweb.web.wsgi.PermissionsExceptor'>, <class
> 'tiddlyweb.web.http.HTTPExceptor'>, <class 'tiddlyweb.web.wsgi.EncodeUTF8'>,
> <class 'tiddlyweb.web.wsgi.SimpleLog'>], 'auth_systems': ['cookie_form',
> 'openid']}, 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows; U; Windows NT 5.1;
> en-US; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4', 'HTTP_CONNECTION':
> 'keep-alive', 'REMOTE_PORT': '1334', 'SERVER_NAME': 'pcs1854',
> 'REMOTE_ADDR': '127.0.0.1', 'wsgi.url_scheme': 'http', 'selector.vars':
> {'bag_name': 'system'}, 'SERVER_PORT': '8080', 'tiddlyweb.store':
> <tiddlyweb.store.Store object at 0x011C26F0>, 'tiddlyweb.usersign': {'name':
> 'GUEST'}, 'wsgi.input': <socket._fileobject object at 0x011C1C70>,
> 'HTTP_HOST': 'localhost:8080', 'wsgi.multithread':
> True, 'HTTP_ACCEPT':
> 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
> 'wsgi.version': (1, 0), 'wsgi.run_once': False, 'wsgi.errors': <open file
> '<stderr>', mode 'w' at 0x00B0F0B0>, 'wsgi.multiprocess': False,
> 'HTTP_ACCEPT_LANGUAGE': 'en-us,en;q=0.5', 'HTTP_ACCEPT_ENCODING':
> 'gzip,deflate', 'tiddlyweb.type': ['text/html', 'application/xhtml+xml',
> 'application/xml', '*/*', '*/*'], 'HTTP_KEEP_ALIVE': '300'}
>
>
> On Wed, Dec 3, 2008 at 10:23 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]>wrote:
>
>>
>>
>>
>> On Dec 3, 8:53 am, "Reenen Laurie" <[EMAIL PROTECTED]> wrote:
>> > Thanks. I got the new version from SVN.
>> >
>> > The instance gets installed normally, but when I point my browser to
>> (after
>> > running the server)http://127.0.0.1:8080/bags/system
>> > I get this error message:
>>
>> > bag_name = environ['wsgiorg.routing_args'][1]['bag_name']
>> > KeyError: 'wsgiorg.routing_args'
>>
>> I reckon we are going to have to work this one out synchronously. Next
>> time you see me in #tiddlywiki, give me a shout and we'll try to
>> figure it out. Since you're using the version from SVN we can probably
>> scatter some print statements around and figure out what's going on.
>> Basically what needs to happen is that we do a
>>
>> print environ
>>
>> at the start of the one of the methods in the modules in tiddlyweb/web/
>> handler/*.py
>>
>>
>> >>
>>
>
>
> --
> o__
> ,_.>/ _
> (_)_\(_)_______
> ...speed is good
> _______________
> I believe five out of four people have a problem with fractions.
>
--
o__
,_.>/ _
(_)_\(_)_______
...speed is good
_______________
I believe five out of four people have a problem with fractions.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" 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/TiddlyWikiDev?hl=en
-~----------~----~----~----~------~----~------~--~---