patch to extract license data
Nathan Kinkade
nkinkade at creativecommons.org
Thu Dec 20 12:25:24 EST 2007
2007/12/14, Nathan Kinkade <nkinkade at creativecommons.org>:
> 2007/12/13, Sam Ruby <rubys at intertwingly.net>:
> <snip>
> > $ bzr pull http://a5.creativecommons.org/~nkinkade/venus/
> > No revisions to pull.
> >
> > Did you do a bzr commit?
> >
> > - Sam Ruby
>
> Ah. Sorry about that. I'm still not very familiar with Bazaar, and
> even though I had read it at some point, I forgot that one can do
> --local commits to a checkout. I've made the commit to the checkout
> at http://a5.creativecommons.org/~nkinkade/venus/.
>
> I'm still getting the errors about " bzr: ERROR: Invalid http response
> <snip>: Missing the Content-Range header in a 206 range response". It
> seems to happen on the .knit files. This may affect your ability to
> pull the changes. Let me know if this works.
>
> So that you know what to expect, here is the output of bzr status
> before I commited:
>
> $ bzr status
> added:
> tests/data/config/config-cc_license.ini
> tests/test_cc_license.py
> themes/cc/
> themes/cc/config.ini
> themes/cc/index.html.tmpl
> themes/cc/oldstyle.css
> themes/cc/planet.css
> themes/cc/style-ie.css
> themes/cc/style.css
> themes/cc/support.css
> modified:
> docs/templates.html
> planet/shell/tmpl.py
>
> As you can see, I went ahead and added the CC theme. This may or may
> not be of use, but will at least show you how we are using the license
> data.
>
> Thanks,
>
> Nathan
I never heard anything back on my last email above. Was the Python
unit test for this plugin acceptable? Did a bzr pull give any
results this time?
In the meantime I have made some substantial changes to the plugin.
First, I renamed it, because it is no longer CC specific. Before, it
used api.creativecommons.org to get the proper license name, now it
find the license name embedded as RDFa in the document at the other
end of the license URL. The main advantage is that the plugin is no
longer CC specific. Any license URL that has a Dublin Core "title"
attribute embedded in the document with RDFa will get picked up. This
text can, of course, be anything and in any language.
I have committed these changes to the Bazaar checkout that I specified
above, and here again:
http://a5.creativecommons.org/~nkinkade/venus/
One way or the other, please let me know if this satisfactory, as we'd
love to see these changes and plugin made available to others via the
official Planet Venus code/site.
Thanks,
Nathan
More information about the devel
mailing list