diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2011-09-27 17:34:50 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2011-09-27 17:34:50 +0200 |
commit | bc18f1c2419002208d1a9c19c45cb988e516348e (patch) | |
tree | adfe4746147e1fa406653d2d66c7020fdea4c11d | |
parent | 175da2e5c8762d8dc16e5f324e793686a9e46ed8 (diff) | |
download | sites-bc18f1c2419002208d1a9c19c45cb988e516348e.tar.gz sites-bc18f1c2419002208d1a9c19c45cb988e516348e.tar.bz2 sites-bc18f1c2419002208d1a9c19c45cb988e516348e.zip |
fix url regex
-rwxr-xr-x | index.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -4,11 +4,11 @@ from web import template, form, application, ctx from socket import gethostbyaddr urls = ( - '/', 'index', - '/neu.*', 'new', - '/new.*', 'new', - '/help/spam.*', 'spam', - '/help/unsubscribe\.([a-z]+).*', 'unsubscribe', + r'/', 'index', + r'/neu.*', 'new', + r'/new.*', 'new', + r'/help/spam.*', 'spam', + r'/help/unsubscribe\.([a-z]+).*', 'unsubscribe', ) render = template.render('templates/', base='layout'); |