Remove file extension from breadcrumb

Joseph Reagle <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Organization MIT
Message-ID <[email protected]>
Hello Wari,

I'm not fond of the ".txt" extension in the breadcrumb, since that's not at 
all what is served -- even if it contained "html", I prefer not to have 
file extensions in my URIs.

The last line of the following code fragment removes the extension:

    def littleCrumbs(self):
        conf = self._request.getConfiguration()
        data = self._request.getData()

        path = string.replace(data['root_datadir'], conf['datadir'], '')
        path = os.path.splitext(path)[0]



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.