*** bassel has quit IRC | 00:10 | |
*** akozak has quit IRC | 00:11 | |
nkinkade | JED3: Is that API call actually pulling the real jurisdiction URL? | 00:15 |
---|---|---|
nkinkade | It doesn't appear to be. | 00:15 |
nkinkade | For example, this URL should be returning http://de.creativecommons.org somewhere: http://api.creativecommons.org/rest/staging/license/standard/jurisdiction/de | 00:16 |
JED3 | nkinkade: that's separate from the jurisdictions' url that we use as an identifier | 00:17 |
JED3 | however i can add the local url to the results | 00:17 |
*** MarkDude has joined #cc | 00:19 | |
nkinkade | JED3: One of the main reasons for adding this new call was to obtain the jurisdiction's own site URL. | 00:24 |
JED3 | nkinkade: okay | 00:25 |
nkinkade | Extracting it out of jurisdictions.rdf was going to be problematic. | 00:25 |
nkinkade | JED3: It's fine to return any URLs like /international/<code>, but those are not very useful because they are pretty much 100% deterministic. | 00:26 |
nkinkade | You just append <code> to /international/ and you are set. | 00:26 |
nkinkade | It's the jurisdictions own URL that's never clear. | 00:26 |
nkinkade | In the ticket, when NRY mentions "* jurisdiction website" he's talking about the jurisdiction's own site, though that may not have been clear enough. | 00:27 |
JED3 | sigh, there seems to be some issues with the version of Redland RDF installed on a8, the query i just had to write for extracting unported licenses doesn't seem to be producing any results | 00:30 |
*** mralex has quit IRC | 00:32 | |
JED3 | goddamn thats frustrating, i need to walk away from this for a bit, be back on later | 00:32 |
*** JED3 has quit IRC | 00:41 | |
*** akila87 has joined #cc | 00:50 | |
*** akila87 has quit IRC | 01:18 | |
*** nkinkade has quit IRC | 01:26 | |
*** MarkDude has quit IRC | 01:27 | |
*** JoiIto has quit IRC | 01:54 | |
*** JED3 has joined #cc | 01:58 | |
*** sudiptamondal has joined #cc | 02:07 | |
paroneayea | JED3: yo | 02:09 |
paroneayea | so what's up | 02:09 |
paroneayea | still need my help? | 02:09 |
*** JED3 has quit IRC | 02:10 | |
paroneayea | guess not | 02:10 |
*** igorlukanin has joined #cc | 02:18 | |
*** JED3 has joined #cc | 02:27 | |
*** DNS777 is now known as [777] | 02:29 | |
*** sudiptamondal has quit IRC | 02:42 | |
*** sudiptamondal has joined #cc | 02:52 | |
*** ivanf has joined #cc | 02:57 | |
*** ivanf has left #cc | 02:57 | |
*** akila87 has joined #cc | 03:24 | |
*** papyromancer is now known as papy|away | 03:43 | |
*** akila87 has left #cc | 04:01 | |
*** igorlukanin has quit IRC | 04:05 | |
*** sudiptamondal has quit IRC | 04:07 | |
*** igorlukanin has joined #cc | 04:07 | |
*** JED3 has quit IRC | 04:22 | |
*** wormsxulla has quit IRC | 04:25 | |
*** wormsxulla has joined #cc | 04:44 | |
*** igorlukanin has quit IRC | 04:51 | |
*** Danny_B has quit IRC | 06:00 | |
*** Danny_B has joined #cc | 06:01 | |
*** Danny_B has quit IRC | 06:04 | |
*** Danny_B has joined #cc | 06:04 | |
*** igorlukanin has joined #cc | 06:08 | |
*** Danny_B has quit IRC | 06:12 | |
*** _Danny_B_ has joined #cc | 06:12 | |
*** Danny_B has joined #cc | 06:14 | |
*** _Danny_B_ has quit IRC | 06:17 | |
*** JoiIto has joined #cc | 06:32 | |
*** JED3 has joined #cc | 07:01 | |
*** JoiIto has quit IRC | 07:14 | |
*** MarkDude has joined #cc | 07:16 | |
*** paroneayea has quit IRC | 07:23 | |
*** paroneayea has joined #cc | 07:23 | |
*** JoiIto has joined #cc | 07:25 | |
*** MarkDude has quit IRC | 07:31 | |
*** JED3 has quit IRC | 07:55 | |
*** thisisparker has joined #cc | 08:02 | |
*** bassel has joined #cc | 08:07 | |
*** Kaetemi has joined #cc | 08:32 | |
*** concernedcitizen has quit IRC | 08:34 | |
*** concernedcitizen has joined #cc | 08:34 | |
*** FHaag has joined #cc | 08:35 | |
*** [777] has quit IRC | 09:12 | |
*** pyrak has quit IRC | 09:12 | |
*** dithyramble has quit IRC | 09:12 | |
*** robmyers has quit IRC | 09:12 | |
*** 13WAAGRQG has quit IRC | 09:12 | |
*** Roderick has quit IRC | 09:12 | |
*** paulproteus has quit IRC | 09:12 | |
*** [777] has joined #cc | 09:14 | |
*** robmyers has joined #cc | 09:15 | |
*** Roderick has joined #cc | 09:18 | |
*** pyrak has joined #cc | 09:18 | |
*** dithyramble has joined #cc | 09:18 | |
*** paulproteus has joined #cc | 09:18 | |
*** 13WAAGRQG has joined #cc | 09:18 | |
*** [777] has quit IRC | 09:20 | |
*** JoiIto has quit IRC | 09:20 | |
*** [777] has joined #cc | 09:21 | |
*** bassel has quit IRC | 10:40 | |
*** akila87 has joined #cc | 10:52 | |
*** bassel has joined #cc | 11:12 | |
*** akila87 has left #cc | 11:16 | |
*** sudiptamondal has joined #cc | 11:26 | |
*** igorlukanin has quit IRC | 11:27 | |
*** sudiptamondal has quit IRC | 11:35 | |
*** sudiptamondal has joined #cc | 11:35 | |
*** igorlukanin has joined #cc | 11:42 | |
*** igorlukanin has quit IRC | 11:44 | |
*** akila871 has joined #cc | 11:50 | |
*** sudiptamondal has quit IRC | 12:06 | |
*** sudiptamondal has joined #cc | 12:09 | |
*** akila871 has quit IRC | 12:12 | |
*** sudiptamondal has quit IRC | 12:31 | |
*** igorlukanin has joined #cc | 12:41 | |
*** [777] is now known as DNS777 | 12:58 | |
*** DNS777 has joined #cc | 12:59 | |
*** FHaag has left #cc | 13:47 | |
*** igorlukanin has quit IRC | 14:04 | |
*** igorlukanin has joined #cc | 14:04 | |
*** MarkDude has joined #cc | 14:20 | |
*** erlehmann has joined #cc | 14:24 | |
*** nyergler has joined #cc | 14:40 | |
*** tvol has joined #cc | 14:42 | |
*** sudiptamondal has joined #cc | 14:58 | |
*** nkinkade has joined #cc | 15:41 | |
*** tvol has quit IRC | 16:02 | |
*** thisisparker has quit IRC | 16:06 | |
*** MarkDude has quit IRC | 16:25 | |
*** MarkDude has joined #cc | 16:42 | |
*** mralex has joined #cc | 16:50 | |
*** akila87 has joined #cc | 16:53 | |
akila87 | hello paroneayea, | 16:55 |
*** akozak has joined #cc | 17:01 | |
paroneayea | akila87: heya | 17:01 |
paroneayea | sup | 17:01 |
akila87 | I completed the available translations. | 17:02 |
akila87 | so what should we do next? | 17:02 |
*** JED3 has joined #cc | 17:07 | |
JED3 | paroneayea: ping | 17:07 |
paroneayea | JED3: pong | 17:07 |
paroneayea | akila87: I'm not sure. Mind if I take a look over things and get back to you later today? | 17:08 |
akila87 | paroneayea sure, if I'm not online please send me a mail. | 17:09 |
JED3 | paroneayea: will you pull the latest cc.license and try calling "cc.license.jurisdictions.get_licenses_by_code('')" | 17:09 |
paroneayea | JED3: sure | 17:10 |
*** akila87 has left #cc | 17:10 | |
paroneayea | Whoa. | 17:11 |
paroneayea | JED3: quite a list there :) | 17:11 |
*** akila87 has joined #cc | 17:12 | |
igorlukanin | JED3: Hi, John. May I ask you a few questions? | 17:14 |
JED3 | paroneayea: so you got a response? | 17:20 |
JED3 | are there jurisdictions in the list? | 17:20 |
igorlukanin | JED3: I wonder if it's correct that http://api.creativecommons.org/rest/1.5/details?license-uri=http://creativecommons.org/licenses/by-nc/2.5/ returns info for 3.0, not for 2.5. Is it correct to "upgrade" the version in this way? | 17:24 |
paroneayea | JED3: >>> cc.license.jurisdictions.get_licenses_by_code('') | 17:25 |
paroneayea | ('http://creativecommons.org/licenses/by-sa/3.0/', 'http://creativecommons.org/licenses/by-nd/2.0/', 'http://creativecommons.org/licenses/nd/1.0/', 'http://creativecommons.org/licenses/sa/1.0/', 'http://creativecommons.org/licenses/by-sa/2.0/', 'http://creativecommons.org/licenses/by-sa/1.0/', 'http://creativecommons.org/licenses/by-nc-nd/2.5/', 'http://creativecommons.org/licenses/by-nc/3.0/', | 17:25 |
paroneayea | 'http://creativecommons.org/licenses/nc-sampling+/1.0/', 'http://creativecommons.org/licenses/by/1.0/', 'http://creativecommons.org/licenses/by-nc-sa/1.0/', 'http://creativecommons.org/licenses/by-nc-nd/2.0/', 'http://creativecommons.org/licenses/by-nc-nd/3.0/', 'http://creativecommons.org/licenses/by-nd/2.5/', 'http://creativecommons.org/licenses/by/2.0/', 'http://creativecommons.org/licenses/by-nc-sa/2.5/', | 17:25 |
paroneayea | 'http://creativecommons.org/licenses/nd-nc/1.0/', 'http://creativecommons.org/licenses/by-nd/1.0/', 'http://creativecommons.org/licenses/sampling/1.0/', 'http://creativecommons.org/licenses/by-nd-nc/1.0/', 'http://creativecommons.org/licenses/by-nc/2.5/', 'http://creativecommons.org/licenses/by-nd/3.0/', 'http://creativecommons.org/licenses/by/2.5/', 'http://creativecommons.org/licenses/by-nc-sa/2.0/', | 17:25 |
paroneayea | 'http://creativecommons.org/licenses/by/3.0/', 'http://creativecommons.org/licenses/nc-sa/1.0/', 'http://creativecommons.org/licenses/by-sa/2.5/', 'http://creativecommons.org/licenses/by-nc/1.0/', 'http://creativecommons.org/licenses/by-nc/2.0/', 'http://creativecommons.org/licenses/sampling+/1.0/', 'http://creativecommons.org/licenses/by-nc-sa/3.0/', 'http://creativecommons.org/licenses/nc/1.0/', | 17:25 |
paroneayea | 'http://creativecommons.org/licenses/LGPL/2.1/', 'http://creativecommons.org/licenses/BSD/', 'http://creativecommons.org/licenses/MIT/', 'http://creativecommons.org/licenses/publicdomain/', 'http://creativecommons.org/licenses/devnations/2.0/', 'http://creativecommons.org/licenses/GPL/2.0/', 'http://creativecommons.org/publicdomain/zero/1.0/') | 17:25 |
paroneayea | oops..... | 17:25 |
paroneayea | shoulda pastebin'ed that, sorry | 17:25 |
JED3 | paroneayea: :) thanks that's the correct result | 17:25 |
JED3 | i wonder why on a8, it returns None | 17:26 |
*** wormsxulla has quit IRC | 17:28 | |
JED3 | igorlukanin: hey, thanks for pointing that out | 17:29 |
JED3 | there seems to be a few lingering bugs in the 1.5 version of the api, instead you should be using the "dev" version | 17:29 |
igorlukanin | JED3: switched to dev — looks to be correct now | 17:35 |
*** sudiptamondal has quit IRC | 17:35 | |
igorlukanin | JED3: I decided to rely on CC API for license info retrieval, that's why it's important for me ) | 17:35 |
JED3 | paroneayea: any idea why the same sparql query would return different results on 2 different machines? same versions of redland, license.rdf, cc.license... only difference between the 2 are the python versions | 17:36 |
JED3 | igorlukanin: ahh okay | 17:37 |
igorlukanin | JED3: A minor thing I've also noticed: when open in Firefox, http://mirrors.creativecommons.org/presskit/icons/nd.svg seems to be badly exported, appearing cropped, not like, for example, http://mirrors.creativecommons.org/presskit/icons/cc.svg | 17:37 |
igorlukanin | I don't think the icons have any importance, but anyway | 17:37 |
mralex | igorlukanin: that's odd. | 17:38 |
mralex | it should be fine if you open it up in inkscape or illustrator | 17:38 |
mralex | but i'll take a look... | 17:38 |
igorlukanin | mralex: I used the SVGs to create some custom-sized raster icons, used GIMP for it, and it cannot properly handle the "cropped" one | 17:41 |
igorlukanin | mralex: Also, it's _the only_ "cropped" one ) | 17:42 |
mralex | igorlukanin: you'll probably get better results using, and exporting from, inkscape. | 17:42 |
mralex | but i'll fix the cropping area. thanks for finding that. | 17:42 |
mralex | :) | 17:43 |
JED3 | igorlukanin: if you use the staging version of the api, you'll be able to get localized results... http://api.creativecommons.org/rest/staging/details?license-uri=http://creativecommons.org/licenses/by-nc/2.5/&locale=fr | 17:44 |
*** sudiptamondal has joined #cc | 17:44 | |
igorlukanin | JED3: I've thought of it, and it's nice, because of the care taken for l10n... Will implement that | 17:46 |
*** johndoigiii has joined #cc | 17:46 | |
*** wormsxulla has joined #cc | 17:46 | |
*** sudiptamondal has quit IRC | 18:14 | |
*** akila87 has left #cc | 18:18 | |
paroneayea | JED3: sorry, I went to lunch | 18:32 |
paroneayea | at any rate my answer is "no idea" :c | 18:32 |
*** S88 has joined #cc | 18:55 | |
S88 | Hi | 18:55 |
akozak | nyergler, nkinkade, who should I ask when I try to figure out the URL conventions of ported license retranslations | 18:56 |
*** S88 has left #cc | 18:57 | |
nkinkade | akozak: retranslations? | 18:57 |
nkinkade | What's that? | 18:57 |
akozak | nkinkade, retranslations of the ported licenses. do we not publish those ourselves? | 18:57 |
akozak | into english | 18:57 |
nkinkade | akozak: Those are just pushed up to mirrors on a8. | 18:57 |
nkinkade | Michelle does it. She may have some standard. | 18:58 |
akozak | nkinkade, ah ok. but maybe not I'm guessing. | 18:58 |
nkinkade | I imagine you could figure out her standard by just looking at what she's done. | 18:58 |
akozak | nkinkade, ok thanks. | 18:58 |
nkinkade | akozak: Does that make sense? | 18:58 |
akozak | nkinkade, yea it does. thanks. | 18:59 |
nkinkade | Just go to various /international/<code> pages and see what the URL look like for the English retranslations. | 18:59 |
nkinkade | If it makes no sense, then call it out to Michelle, because there probably should be some order to that. | 18:59 |
akozak | nyergler, I'd forgotten that diane et al. were interested in connecting the db with the english retranslations. | 18:59 |
akozak | nkinkade, wait I'm confused | 19:01 |
akozak | what is this then (as an example) http://creativecommons.org/licenses/by/2.0/cl/deed.en_GB | 19:01 |
nkinkade | akozak: That is just a deed. :-) | 19:01 |
akozak | oh right duh | 19:01 |
akozak | so there's nothing like that for the legal code | 19:01 |
nkinkade | akozak: Nope. | 19:01 |
nkinkade | Sometimes a jurisdiction may submit multiple translations of the legalcode, but that is dependent on the jurisdiction. | 19:02 |
nkinkade | Take Spain, for example. There are like 5 translations. | 19:02 |
akozak | nkinkade, yea | 19:03 |
nkinkade | http://creativecommons.org/licenses/by-sa/3.0/es/ | 19:03 |
nkinkade | But the re-translations you are talking about are just Word docs of PDF files that are solely for the benefit of Diane and other CC legal staff. | 19:03 |
akozak | ah ok | 19:04 |
akozak | yea it looks like there is no standard url or even format | 19:04 |
akozak | now that I think about it, they might have wanted me to create a structure for adding a retranslation onto a wiki page | 19:05 |
akozak | connected with the <jurisdiction>/3.0/<license> page | 19:05 |
akozak | probably another subpage | 19:05 |
nkinkade | And then, only the BY-NC-SA license is retranslated to English. | 19:05 |
akozak | nkinkade, yea I never understood that | 19:06 |
akozak | don't you miss the ND term? | 19:06 |
*** papy|away is now known as papyromancer | 19:06 | |
akozak | anyway, thanks nkinkade. I'm already somewhat bogged down in feature requests for this project so this is another thing to add to the list I guess. | 19:07 |
nkinkade | Apparently. Ask Diane. :-) | 19:07 |
nyergler | akozak, is there a question for me there? | 19:08 |
nyergler | not sure what you mean by the ping above since we talked about the retranslation extensively yesterday | 19:09 |
akozak | nyergler, yea sorry. I guess my question is if you remember whether they wanted whole-text retranslation to be sub-pages of the ported license pages. | 19:10 |
akozak | in addition to the retranslation text in the license section template | 19:10 |
nyergler | akozak, i don't know | 19:12 |
akozak | nyergler, ok I'll figure it out. | 19:13 |
*** tvol has joined #cc | 19:13 | |
*** lotia_away has quit IRC | 19:42 | |
*** electronic has joined #cc | 19:48 | |
*** lotia_away has joined #cc | 19:48 | |
*** electronic has quit IRC | 19:57 | |
nkinkade | nyergler: Are you in the office? | 19:58 |
*** electronic has joined #cc | 19:59 | |
nkinkade | I installed some updated on the new backup server and rebooted it, but it doesn't appear to have come back up. | 19:59 |
nkinkade | *updates | 19:59 |
nkinkade | Or else it's IP changed. | 19:59 |
nyergler | nkinkade, i am in the office, will look momentarily | 20:02 |
nyergler | nkinkade, it isn't booting | 20:08 |
nyergler | hangs with something like: | 20:08 |
nyergler | ureadahead-other main process (401) terminated with status 4 | 20:09 |
nkinkade | That sucks. | 20:09 |
nkinkade | And I've never seen an error like that before, either. | 20:09 |
*** Kaetemi has quit IRC | 20:10 | |
igorlukanin | JED3: ping | 20:10 |
igorlukanin | erlehmann: ping | 20:11 |
*** Kaetemi has joined #cc | 20:11 | |
JED3 | igorlukanin: hi | 20:11 |
igorlukanin | I've done a short overview of my extension working with CC WordPress Plugin: http://labs.creativecommons.org/2010/07/15/gsoc-cc-ffext-wpplugin/ | 20:11 |
igorlukanin | Hope this is interesting =) | 20:12 |
erlehmann | igorlukanin, PENG | 20:12 |
paroneayea | hey JED3... try updating i18n in svn and doing a buildout | 20:12 |
paroneayea | oh wait | 20:12 |
igorlukanin | erlehmann: look ahead | 20:12 |
paroneayea | nm :) | 20:12 |
JED3 | paroneayea: ? | 20:12 |
igorlukanin | erlehmann: sorry... backward ) | 20:13 |
igorlukanin | I've done a short overview of my extension working with CC WordPress Plugin: http://labs.creativecommons.org/2010/07/15/gsoc-cc-ffext-wpplugin/ | 20:13 |
erlehmann | i'll look at it | 20:13 |
*** akozak has quit IRC | 20:13 | |
paroneayea | JED3: I made a mistake so nm for the moment | 20:13 |
JED3 | okay | 20:13 |
nkinkade | nyergler: It could be related to an entry I added to /etc/fstab | 20:14 |
erlehmann | igorlukanin, it is pretty blurry | 20:14 |
*** papyromancer is now known as papy|siesta | 20:14 | |
erlehmann | but i can see what you did there | 20:14 |
erlehmann | nice | 20:14 |
nkinkade | It it won't boot I suppose the only option is to boot to the CD you installed from and edit the file manually. | 20:14 |
nkinkade | nyergler: ^^ | 20:14 |
igorlukanin | erlehmann: it's all up to youtube, only 720p available for now... try fullscreen | 20:15 |
erlehmann | flash, i do not have it | 20:16 |
erlehmann | flash is the cancer of the interwebs | 20:16 |
*** akozak has joined #cc | 20:16 | |
erlehmann | but i saw what you did there and it worked nicely. igorlukanin what is your final version supposed to do? | 20:16 |
igorlukanin | erlehmann: Quite the same... presenting licensing info parsed from RDFa, attribution info generation (smarter than now, not just putting something in clipboard) + l10n to a number of languages | 20:19 |
*** MarkDude has quit IRC | 20:20 | |
erlehmann | nkinkade, a video http://gsoc2010.dieweltistgarnichtso.net/?p=48 | 20:21 |
erlehmann | i forgot the controls='controls' | 20:21 |
nkinkade | Nice. | 20:22 |
erlehmann | but otherwise i cannot see why your version did not work. i suspect that a) it wasnt a video (MIME type must start with 'video/') | 20:22 |
erlehmann | or b) your server did not return the right MIME type on playback. | 20:22 |
erlehmann | or c) the server returned video content gzipped, which for example halts chrome's video playback | 20:23 |
erlehmann | you should check all three. | 20:23 |
erlehmann | look again, haha http://gsoc2010.dieweltistgarnichtso.net/?p=48 | 20:25 |
erlehmann | the spreeblick style does not work with video | 20:25 |
erlehmann | style changed | 20:26 |
JED3 | igorlukanin: great screencast | 20:29 |
igorlukanin | JED3: thanks ) | 20:30 |
mralex | igorlukanin: weird, your screencast sound is broken for me. | 20:33 |
igorlukanin | mralex: I should probably have mentioned that the screencast just have _no sound_ ) so it's okay | 20:33 |
mralex | igorlukanin: it clicks a short burst of static every couple seconds | 20:34 |
nkinkade | erlehmann: Can you outline that stuff about video in your reply. | 20:34 |
nkinkade | IRC is good, but it's not that great for documenting things. | 20:34 |
nkinkade | (reply to my email, that is) | 20:35 |
igorlukanin | mralex: sorry... I would consider grounding my laptop ) | 20:35 |
erlehmann | nkinkade, i can, and i will. | 20:35 |
JED3 | nyergler: ping | 20:49 |
nyergler | nkinkade, i'm re-downloading the ISO now, will try to boot it from CD | 20:52 |
nyergler | JED3, pong | 20:52 |
nkinkade | nyergler: I would be surprised if there wasn't some other boot disc laying around. | 20:53 |
JED3 | nyergler: http://dpaste.com/218575/ do you see anything wrong with this sparql query? | 20:53 |
nyergler | JED3, nothing obvious; do you need a trailing period on the final clause? | 20:53 |
JED3 | nyergler: that's true, is this the proper way to forming a negation in SPARQL? | 20:58 |
JED3 | paroneayea: ping | 21:02 |
paroneayea | JED3: pong | 21:03 |
paroneayea | sup | 21:03 |
nyergler | JED3, yes, AFAIK | 21:03 |
JED3 | when you tested that function earlier were you using py 2.6? | 21:03 |
*** MarkDude has joined #cc | 21:03 | |
paroneayea | JED3: uh, hm | 21:03 |
paroneayea | Python 2.5.4 | 21:04 |
JED3 | ok | 21:04 |
paroneayea | although for some reason I can't get cc.license to buildout anymore | 21:04 |
paroneayea | so I ran it from a virtualenv | 21:05 |
paroneayea | speaking of unable to get things to buildout I can't get i18n to buildout | 21:05 |
paroneayea | it refuses to respect the dependency 'Babel>0.99' | 21:06 |
*** igorlukanin has quit IRC | 21:08 | |
*** papy|siesta is now known as papy|away | 21:23 | |
JED3 | wow latest email to webmaster just uncovered two critical bugs in the metadata_scraper | 21:29 |
nyergler | JED3, I was guessing that was a bug | 21:34 |
nyergler | :) | 21:34 |
nyergler | you're going to fix and write tests, right? ;) | 21:34 |
*** michi__ has joined #cc | 21:35 | |
JED3 | nyergler: yeah if the referer doesn't match any of the subjects with a license rel, then it'll attempt to extract another uri from the graph that contains a license, then proceeds with determining the cc network assertion | 21:36 |
nyergler | JED3, right | 21:36 |
nyergler | JED3, IIRC the heuristic is that if the referrer isn't in the graph, and there exists a single subject in the graph that matches the license URI, we use that | 21:36 |
JED3 | problem is, is that it just grabs the 1st uri it finds with the same license, and in his case it was for his "Bob.pdf" which breaks the registration assertion | 21:37 |
nyergler | IIRC, if multiple, we bail out in the previous version | 21:37 |
JED3 | the previous version? as in the referer uri? | 21:37 |
JED3 | ohh nm | 21:38 |
JED3 | hmm okay so I shouldn't loop over the rest of the subjects looking for a good match? | 21:38 |
* paroneayea smacks forehead | 21:40 | |
*** michi__ has quit IRC | 21:41 | |
paroneayea | no wonder I've been having such trouble getting these packages to buildout | 21:41 |
paroneayea | python2.6 | 21:41 |
nyergler | JED3, we should look for a single possible match | 21:41 |
nyergler | if > 1 exists, we do nothing | 21:41 |
nyergler | (does that make sense to you?) | 21:41 |
JED3 | nyergler: yes, thats what its doing right now | 21:41 |
JED3 | def extract_licensed_subject(subject, license_uri, metadata): | 21:41 |
JED3 | 21:41 | |
JED3 | if get_license_uri(subject, metadata) == license_uri: | 21:41 |
JED3 | return subject | 21:41 |
JED3 | licensed = filter( lambda s: get_license_uri(s,metadata) == license_uri, | 21:41 |
JED3 | metadata['subjects'] ) | 21:41 |
JED3 | 21:41 | |
JED3 | if len(licensed) == 1: | 21:42 |
JED3 | return licensed[0] | 21:42 |
JED3 | else: | 21:42 |
JED3 | return None | 21:42 |
nyergler | JED3, is that code you just wrote, or code that's running on production? | 21:42 |
JED3 | thats production | 21:42 |
nyergler | because it seems like there's a bug here | 21:42 |
nyergler | or does that page include multiple license assertions? | 21:42 |
JED3 | so for his example there are multiple licenses in the graph | 21:43 |
JED3 | yes | 21:43 |
JED3 | http://creativecommons.org/apps/triples?url=http://web.me.com/chrisoverzero/lumberknight/ | 21:43 |
JED3 | both of the PDF's are extracted in the filter function above | 21:43 |
JED3 | and those subjects were inserted in the graph as a result of scraping his cc.net profile | 21:44 |
nyergler | JED3, ah | 21:44 |
nyergler | sorry, we miscommunicated | 21:44 |
nyergler | we bail out if there is only one matching license assertion *in the referring page* | 21:44 |
nyergler | ie, the graph generated by passing that page to http://www.w3.org/2007/08/pyRdfa/ | 21:45 |
JED3 | ahh crap, how are we supposed to do that if we've already traversed through the works? | 21:46 |
JED3 | ...to know which subjects were the found via the referrer | 21:47 |
nyergler | JED3, IIRC we previously looked at the graph from the referrer to establish a subject before completing the traversal | 21:48 |
nyergler | alternate version: i don't know, but it needs to | 21:48 |
nyergler | ;) | 21:48 |
JED3 | nyergler: lol ok, i think you're right about how we used to find the subject | 21:49 |
nyergler | JED3, I have to head home and check in on the dog, will be online a little later | 21:49 |
nyergler | feel free to email with questions, etc | 21:49 |
JED3 | nyergler: no prob, will do, i'll be offline in about an hour to go check out a rental | 21:49 |
nyergler | ok | 21:49 |
*** nyergler has quit IRC | 21:54 | |
* JED3 still scratching the ol knoggin regarding this cc.license bug | 21:58 | |
JED3 | paroneayea: help | 21:58 |
JED3 | :) | 21:58 |
JED3 | (add some desperation oomph to that "help") | 21:58 |
paroneayea | JED3: lol, I haven't been following, let me read the chat log and catch up | 21:59 |
paroneayea | 1sec | 21:59 |
JED3 | paroneayea: no no not that bug | 21:59 |
paroneayea | which one | 21:59 |
JED3 | that cc.license.jurisdictions.get_unported_license_uris bug | 21:59 |
paroneayea | okay, the one where it doesn't return things on a8? | 21:59 |
JED3 | remember that super awesome list of uri's you saw on your machine when you call than function? | 21:59 |
paroneayea | yes | 22:00 |
JED3 | do it a8, and you'll get squat in return | 22:00 |
JED3 | everything matches up in terms of versions, its a completely fresh buildout, I have no idea what it could be | 22:00 |
paroneayea | what dir | 22:01 |
JED3 | /var/www/api.creativecommons.org/cc.api.staging/ | 22:01 |
JED3 | bin/python -c "import cc.license; cc.license.jurisdictions.get_licenses_by_code('')" | 22:02 |
JED3 | whoops insert a print in there | 22:03 |
paroneayea | hm you're right | 22:03 |
JED3 | redland, licenserdf, cc.license all match with my local versions | 22:03 |
*** niekie has quit IRC | 22:03 | |
JED3 | i'm using py2.6 on my machine, thats the only difference | 22:04 |
*** niekie has joined #cc | 22:04 | |
paroneayea | weird | 22:09 |
paroneayea | let me try a fresh checkout in my home dir | 22:10 |
*** erlehmann has quit IRC | 22:11 | |
*** erlehmann has joined #cc | 22:12 | |
paroneayea | JED3: man is this ever puzzling | 22:27 |
JED3 | paroneayea: yeah srsly | 22:34 |
JED3 | fresh checkout worked? | 22:35 |
paroneayea | no | 22:36 |
*** JED3 is now known as JED3-away | 22:41 | |
paroneayea | JED3-away: only one difference between these packages that I can tell | 22:47 |
paroneayea | 32bit and 64bit | 22:47 |
paroneayea | on my machine here vs on the server | 22:47 |
paroneayea | rdflib does have an endian specific version it looks like? | 22:49 |
paroneayea | that's a total shot in the dark but | 22:49 |
*** JED3-away has quit IRC | 22:52 | |
*** JED3 has joined #cc | 22:53 | |
paroneayea | JED3: :O | 22:56 |
paroneayea | did you see any of my messages | 22:56 |
*** Kaetemi has quit IRC | 22:57 | |
*** MarkDude has quit IRC | 23:26 |
Generated by irclog2html.py 2.6 by Marius Gedminas - find it at mg.pov.lt!