patch to extract license data

Nathan Kinkade nkinkade at creativecommons.org
Fri Dec 14 12:37:16 EST 2007


2007/12/9, Sam Ruby <rubys at intertwingly.net>:
> Documentation and a test case would be helpful.
>
> http://www.intertwingly.net/code/venus/docs/templates.html
> http://intertwingly.net/code/venus/tests/data/filter/tmpl/
>
> The first URI above contains a simple table of all of the supported
> variables.  Anything added should be listed.
>
> The second URI contains a set of files, one per test.  A test contains a
> simple feed and an assertion of what template data should be produced
> from that feed.
>
> - Sam Ruby

I have created a unittest for the cc_license.plugin and also altered
docs/templates.html to reflect the 2 new fields that the patch to
tmpl.py exposes to htmltmpl templates.

The unit test is tests/test_cc_license.py.
The config for that is tests/data/config/config-cc_license.ini

This time I did a 'bzr get http://intertwingly.net/code/venus' and
then copied in all of my changes and then uploaded that to:
http://a5.creativecommons.org/~nkinkade/venus/

However, I can't seem to get a checkout of that directory using 'bzr
get'.  I get the following error:

$ bzr get http://a5.creativecommons.org/~nkinkade/venus/
bzr: ERROR: Invalid http response for
http://a5.creativecommons.org/~nkinkade/venus/.bzr/repository/knits/8c/planet.intertwingly.net2006testfeed23-20060818190211-1f4faac06927d96a.knit:
Missing the Content-Range header in a 206 range response

I did some poking around, but couldn't come up with much.  I tried it
on a similar server and got the same error.  I then tried it yet
another server (running a RHEL instead of Debian) and it worked,
except that we've got some crazy rewrite rules that were redirecting a
couple of bzr's requests and I don't have time to go debugging
mod_rewrite just now, but if any has any suggestions of where to look,
then I'm investigate further.

The files can all still be got manually there, and, of course, they
can always be found in our cctools Subversion repository:
http://cctools.svn.sourceforge.net/viewvc/cctools/planet/trunk/software/

Thanks,

Nathan


More information about the devel mailing list