member.py links are relative
authorJacob Parker <j3parker@csclub.uwaterloo.ca>
Sat, 25 Feb 2012 00:58:57 +0000 (19:58 -0500)
committerJacob Parker <j3parker@csclub.uwaterloo.ca>
Sat, 25 Feb 2012 00:58:57 +0000 (19:58 -0500)
.htaccess
bin/members.py

index 2e4461c..7b23492 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -1,4 +1,4 @@
 RewriteEngine on
-RewriteBase /~j3parker/pub/csc/
+RewriteBase /~j3parker/
 RewriteRule ^pub/(.*) - [L]
 RewriteRule ^(.*) bin/web [L]
index 5b949a3..26a13a5 100755 (executable)
@@ -34,7 +34,7 @@ for (_, member) in members:
     if not 'program' in member:
         member['program'] = ['']
     print "    <tr>"
-    print "        <td><a href=\"http://csclub.uwaterloo.ca/~j3parker/pub/csc/About/Members/" + member['uid'][0] + "\">" + member['cn'][0] + "</a></td>"
+    print "        <td><a href=\"" + member['uid'][0] + "\">" + member['cn'][0] + "</a></td>"
     print "        <td>" + member['program'][0] + "</td>"
     print "        <td>" + member['uid'][0] + "</td>"
     print "    </tr>"