RE: Pyblosxom on windows

"Blake Winton" <blake-dlUKtbW3TlBcVw/[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Organization Phantom Fiber Inc.
Message-ID <[email protected]>
> This leads me to my question (finally!), is this approach a 
> valid one and if so should we also add an unquoted version of
> the absolute_path and file_path in __populateBasicMetadata()
> to allow them to be used in the visible parts of html, i.e.
> something like:
> 
> self['absolute_path_unquoted'] = urllib.unquote(self['absolute_path'])
> self['file_path_unquoted'] = urllib.unquote(self['file_path'])
> 
> and the flavor(s) can be modified to use the unquoted version
> where appropriate, e.g.
> 
> [<a href="$base_url/$absolute_path" 
>     title="Category">$absolute_path_unquoted</a>]

I like this idea.  Until we implement function calling in the templates,
and can replace it with:
[<a href="$urllib.urlquote($base_url + "/" + $absolute_path)"
    title="Category">$absolute_path</a>]

And I think my one further change would be to have the $absolute_path
be unquoted, and make $absolute_path_url be the url quoted version.

Later,
Blake.



-------------------------------------------------------
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.