changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > werc / changeset: Fix display of individual blog posts.

changeset 341: 410b2c763e82
parent 340: 75cbd0fa2f2a
child 342: 04852252b6f3
child 347: 0e9e1fb05d01
author: uriel@soma
date: Tue, 20 Jan 2009 09:06:28 +0000
files: apps/blagh/app.rc
description: Fix display of individual blog posts.
     1.1--- a/apps/blagh/app.rc	Tue Jan 20 09:05:57 2009 +0000
     1.2+++ b/apps/blagh/app.rc	Tue Jan 20 09:06:28 2009 +0000
     1.3@@ -9,10 +9,9 @@
     1.4         blagh_url=$base_uri^$blagh_root_path
     1.5         blagh_root=$sitedir^$blagh_uri
     1.6 
     1.7-        if(~ $req_path */[0-9][0-9][0-9][0-9]/ */[0-9][0-9][0-9][0-9]/[0-9][0-9]/ */[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9]/)
     1.8-            status='Use default handler'
     1.9-
    1.10-        if not if(~ $req_path */index */) {
    1.11+        # XXX This is a hideous hack, blogs in dirs that match the number patern wont work, and dirs inside posts (eg., comments) wont work either.
    1.12+        # The problem is how to find out the 'root' of this blog, blaghDirs is useless for that.
    1.13+        if(~ $req_path */ && ! ~ $req_path */[0-9][0-9][0-9][0-9]/ */[0-9][0-9][0-9][0-9]/[0-9][0-9]/ */[0-9][0-9][0-9][0-9]/[0-9][0-9]/[0-9][0-9]/*) {
    1.14             handler_body_main=blagh_body
    1.15             u=$blagh_uri'index'
    1.16             extraHeaders=$"extraHeaders ^ \
    1.17@@ -29,7 +28,6 @@
    1.18 
    1.19 fn blagh_setup_feed_handlers {
    1.20     handler_body_main=NOT_USED_by_blagh_feeds
    1.21-    headers=() # Headers included in master tpl
    1.22     res_tail=()
    1.23     master_template=_apps/blagh/$1
    1.24 }