This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'></script> | |
<script type="text/javascript"> | |
$(function(){ | |
var data = { | |
doc_type: "resource_data", | |
resource_data: "<metadata xmlns=\"http://www.openarchives.org/OAI/2.0/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n\n<commParadata xmlns=\"http://ns.nsdl.org/ncs/comm_para\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://ns.nsdl.org/ncs/comm_para http://ns.nsdl.org/ncs/comm_para/1.00/schemas/comm_para.xsd\">\n\t<recordId catalog=\"work-cmr-id\">30085/0/0</recordId>\n\t<usageDataResourceURL>http://develix.iml.umu.se/projects/external/cfl/safir.kurser.yrkesspar/Byggarbetsplatsen2/</usageDataResourceURL>\n<usageDataProvidedForName>\n\t<string language=\"sv\">Byggarbetsplatsen 2 - Situationsövningar</string>\n</usageDataProvidedForName>\n\t<usageDataSummary>\n\t\t<integer type=\"favorited\" dateTimeStart=\"2011-02-16T13:0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'></script> | |
<script type="text/javascript"> | |
$(function(){ | |
var data = { | |
doc_type: "resource_data", | |
resource_data: "<metadata xmlns=\"http://www.openarchives.org/OAI/2.0/\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">\n\n<commParadata xmlns=\"http://ns.nsdl.org/ncs/comm_para\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://ns.nsdl.org/ncs/comm_para http://ns.nsdl.org/ncs/comm_para/1.00/schemas/comm_para.xsd\">\n\t<recordId catalog=\"work-cmr-id\">30085/0/0</recordId>\n\t<usageDataResourceURL>http://develix.iml.umu.se/projects/external/cfl/safir.kurser.yrkesspar/Byggarbetsplatsen2/</usageDataResourceURL>\n<usageDataProvidedForName>\n\t<string language=\"sv\">Byggarbetsplatsen 2 - Situationsövningar</string>\n</usageDataProvidedForName>\n\t<usageDataSummary>\n\t\t<integer type=\"favorited\" dateTimeStart=\"2011-02-16T13:0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import json | |
import pycassa | |
import urllib2 | |
import urllib | |
import urlparse | |
import os | |
from datetime import datetime | |
def harvestData(lrUrl,baseDir): | |
fileNameFormat = "data-{0}.json" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ForceCouchDBIndexing() | |
def test_get_with_discriminator_starts_with(self): | |
discriminator = "http://purl.org/ASN/" | |
response = self.app.get(url('/extract/standards-alignment-dct-conformsTo/discriminator-by-ts/format/to-json',{"discriminator-starts-with":discriminator})) | |
data = json.loads(response.body) | |
self._validateJsonStructure(data) | |
self._validateDiscriminator(data,discriminator) | |
@ForceCouchDBIndexing() | |
def test_get_with_resource_starts_with(self): | |
import urlparse |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def _handle(self, change, database): | |
should_delete = True | |
try: | |
log.debug('got here') | |
newDoc = change[_DOC] | |
newDoc['node_timestamp'] = h.nowToISO8601Zformat() | |
rd = ResourceDataModel(newDoc) | |
rd.save() | |
except SpecValidationException: | |
log.error(str(newDoc) + " Fails Validation" ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import msgpack | |
import requests | |
import base64 | |
p = msgpack.Packer() | |
up = msgpack.Unpacker() | |
resp = requests.get('https://node01.public.learningregistry.net/obtain?by_doc_ID=T&request_ID=41d8bd71505b4f99ac3d08e099f91432',verify=False) | |
envelope = resp.json['documents'][0]['document'][0] | |
print envelope | |
result = base64.b64encode(p.pack(envelope)) | |
print result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var x=5; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Tue, 12 Jun 2012 17:46:18 GMT] [debug] [<0.190.0>] 'GET' /_browserid/main.js {1,1} from "127.0.0.1" | |
Headers: [{'Accept',"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}, | |
{'Accept-Encoding',"gzip, deflate"}, | |
{'Accept-Language',"en-us,en;q=0.5"}, | |
{'Connection',"keep-alive"}, | |
{'Cookie',"splashShown1.6=1; AuthSession=YWRtaW46NEZENzgwNUY6S3UQJq6YZdQ4u102prvPB2kQP2E"}, | |
{'Host',"localhost:5984"}, | |
{'User-Agent',"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0"}] | |
[Tue, 12 Jun 2012 17:46:18 GMT] [debug] [<0.190.0>] OAuth Params: [] | |
[Tue, 12 Jun 2012 17:46:18 GMT] [debug] [<0.190.0>] timeout 600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var x=5; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<target name="cleanCTS"> | |
<delete includeEmptyDirs="true" quiet="true"> | |
<fileset dir="${ccHome}\software_development\build" /> | |
<fileset dir="${ccHome}\software_development\build\classes\org\adl\samplerte\util" > | |
<exclude name="LMSDBHandler.class" /> | |
</fileset> | |
<fileset dir="${lib}"> | |
<exclude name="bsf.jar" /> | |
<exclude name="java40.jar" /> | |
<exclude name="joda-time-1.1.jar" /> |
OlderNewer