author | Tero Marttila <terom@fixme.fi> |
Fri, 05 Jun 2009 19:29:04 +0300 | |
changeset 56 | 80658a2eebf6 |
parent 39 | 5591342ec2c9 |
permissions | -rw-r--r-- |
18
46536daf9e04
fix bug with shorturls in gallery.html, and some horrible, horrible crap for the CGI stuff - I need to drop everything now and take a fresh look tomorrow before it gets even worse
terom
parents:
diff
changeset
|
1 |
# prefix for degal's URLs, no trailing slash |
46536daf9e04
fix bug with shorturls in gallery.html, and some horrible, horrible crap for the CGI stuff - I need to drop everything now and take a fresh look tomorrow before it gets even worse
terom
parents:
diff
changeset
|
2 |
var.degal-url = "/photos" |
46536daf9e04
fix bug with shorturls in gallery.html, and some horrible, horrible crap for the CGI stuff - I need to drop everything now and take a fresh look tomorrow before it gets even worse
terom
parents:
diff
changeset
|
3 |
|
46536daf9e04
fix bug with shorturls in gallery.html, and some horrible, horrible crap for the CGI stuff - I need to drop everything now and take a fresh look tomorrow before it gets even worse
terom
parents:
diff
changeset
|
4 |
# filesystem path to degal, no trailing slash |
46536daf9e04
fix bug with shorturls in gallery.html, and some horrible, horrible crap for the CGI stuff - I need to drop everything now and take a fresh look tomorrow before it gets even worse
terom
parents:
diff
changeset
|
5 |
var.degal-path = "C:/Dokumente und Einstellungen/me/Eigene Dateien/python/degal" |
46536daf9e04
fix bug with shorturls in gallery.html, and some horrible, horrible crap for the CGI stuff - I need to drop everything now and take a fresh look tomorrow before it gets even worse
terom
parents:
diff
changeset
|
6 |
|
46536daf9e04
fix bug with shorturls in gallery.html, and some horrible, horrible crap for the CGI stuff - I need to drop everything now and take a fresh look tomorrow before it gets even worse
terom
parents:
diff
changeset
|
7 |
url.rewrite-once = ( |
46536daf9e04
fix bug with shorturls in gallery.html, and some horrible, horrible crap for the CGI stuff - I need to drop everything now and take a fresh look tomorrow before it gets even worse
terom
parents:
diff
changeset
|
8 |
# "^" + var.degal-url + "/s/([^/]+)(/.*)?$" => var.degal-path + "/shorturl.py?key=$1&index=$2", |
46536daf9e04
fix bug with shorturls in gallery.html, and some horrible, horrible crap for the CGI stuff - I need to drop everything now and take a fresh look tomorrow before it gets even worse
terom
parents:
diff
changeset
|
9 |
"/this" => "/photos/index.html" |
46536daf9e04
fix bug with shorturls in gallery.html, and some horrible, horrible crap for the CGI stuff - I need to drop everything now and take a fresh look tomorrow before it gets even worse
terom
parents:
diff
changeset
|
10 |
# "^/photos/s/([^/]+)(/.*)?$" => "/photos/index.html", # "/shorturl.py?key=$1&index=$2", |
46536daf9e04
fix bug with shorturls in gallery.html, and some horrible, horrible crap for the CGI stuff - I need to drop everything now and take a fresh look tomorrow before it gets even worse
terom
parents:
diff
changeset
|
11 |
# "^" + var.degal-url + "/series/([^/]+)/(.*)$" => var.degal-path + "/series.py?keys=$1&index=$2" |
46536daf9e04
fix bug with shorturls in gallery.html, and some horrible, horrible crap for the CGI stuff - I need to drop everything now and take a fresh look tomorrow before it gets even worse
terom
parents:
diff
changeset
|
12 |
) |
46536daf9e04
fix bug with shorturls in gallery.html, and some horrible, horrible crap for the CGI stuff - I need to drop everything now and take a fresh look tomorrow before it gets even worse
terom
parents:
diff
changeset
|
13 |
|
46536daf9e04
fix bug with shorturls in gallery.html, and some horrible, horrible crap for the CGI stuff - I need to drop everything now and take a fresh look tomorrow before it gets even worse
terom
parents:
diff
changeset
|
14 |
cgi.assign = ( |
46536daf9e04
fix bug with shorturls in gallery.html, and some horrible, horrible crap for the CGI stuff - I need to drop everything now and take a fresh look tomorrow before it gets even worse
terom
parents:
diff
changeset
|
15 |
".py" => "python" |
46536daf9e04
fix bug with shorturls in gallery.html, and some horrible, horrible crap for the CGI stuff - I need to drop everything now and take a fresh look tomorrow before it gets even worse
terom
parents:
diff
changeset
|
16 |
) |