changes to template variable syntax

"Will Guaraldi" <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.devel
Message-ID <[email protected]>
I just checked into trunk (i.e. this is for PyBlosxom 2.0) code
re-write to Replacer.replace and VAR_REGEXP in the tools module.

I also checked in unit tests for what we had before as well as the new
functionality.

Previously we could handle variables like this:

   $foo
   $foo::bar
   $foo::bar()
   $foo::bar(1, 2, 3)
   $foo-bar
   $foo_bar
   ...

Now we handle all that as well as:

   $(foo)
   $(foo::bar)
   ...

The code is pretty fresh.  It passes the few unit tests I added, but I
didn't spend a lot of time working up a more comprehensive unit test
squite and I didn't spend time tuning the regular expression.

It's all in r1112:

http://pyblosxom.svn.sourceforge.net/viewvc/pyblosxom?view=rev&revision=1112

Anyone see any obvious issues with this?

/will

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
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.