-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #142 from unt-libraries/py3
Py3
- Loading branch information
Showing
25 changed files
with
416 additions
and
212 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
dist: trusty | ||
dist: xenial | ||
language: python | ||
sudo: false | ||
python: 2.7 | ||
python: 3.7 | ||
services: | ||
- mysql | ||
env: | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ def __init__(self, identifyDict={}, resultSize=10, domain="", debug=False): | |
'baseURL': 'http://not.a.good.base.url.com/fixit/kurt/', | ||
'protocolVersion': "2.0", | ||
'adminEmails': ['[email protected]'], | ||
'earliestDatestamp': datetime(2004, 05, 19), | ||
'earliestDatestamp': datetime(2004, 5, 19), | ||
'deletedRecord': 'transient', | ||
'granularity': 'YYYY-MM-DDThh:mm:ssZ', | ||
# 'granularity':'YYYY-MM-DD', | ||
|
@@ -42,7 +42,7 @@ def getRecord(self, metadataPrefix, identifier): | |
try: | ||
bagObject = Bag.objects.get(name=id) | ||
except Bag.DoesNotExist: | ||
raise error.IdDoesNotExistError, "Id doesnt exist: %s" % identifier | ||
raise error.IdDoesNotExistError("Id doesn't exist: %s" % identifier) | ||
record = makeDataRecord( | ||
bagObject, domain=self.domain, | ||
metadataPrefix=metadataPrefix | ||
|
@@ -186,18 +186,19 @@ def makeDataRecord( | |
raise Exception("dcDict is empty") | ||
setList = [] | ||
header = common.Header( | ||
None, | ||
id, | ||
date, | ||
setList, | ||
False, | ||
) | ||
dublinStruct = dcDict | ||
if metadataPrefix == "oai_dc": | ||
metadata = common.Metadata(dublinStruct) | ||
metadata = common.Metadata(None, dublinStruct) | ||
elif metadataPrefix == "coda_bag": | ||
bagMap = {} | ||
bagMap["bag"] = bagObject | ||
metadata = common.Metadata(bagMap) | ||
metadata = common.Metadata(None, bagMap) | ||
return (header, metadata, None) | ||
|
||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
# -*- coding: utf-8 -*- | ||
# Generated by Django 1.11.24 on 2019-10-22 09:35 | ||
from __future__ import unicode_literals | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('coda_mdstore', '0002_add_fulltext_index'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='bag', | ||
name='bagging_date', | ||
field=models.DateField(help_text='Date of Bag Creation'), | ||
), | ||
migrations.AlterField( | ||
model_name='bag', | ||
name='bagit_version', | ||
field=models.CharField(help_text='BagIt version number', max_length=10), | ||
), | ||
migrations.AlterField( | ||
model_name='bag', | ||
name='files', | ||
field=models.IntegerField(help_text='Number of files in Bag'), | ||
), | ||
migrations.AlterField( | ||
model_name='bag', | ||
name='last_verified_date', | ||
field=models.DateField(help_text='Date of last Bag Verification'), | ||
), | ||
migrations.AlterField( | ||
model_name='bag', | ||
name='last_verified_status', | ||
field=models.CharField(help_text='Status of last bag Verification', max_length=25), | ||
), | ||
migrations.AlterField( | ||
model_name='bag', | ||
name='name', | ||
field=models.CharField(help_text='Name of Bag', max_length=255, primary_key=True, | ||
serialize=False), | ||
), | ||
migrations.AlterField( | ||
model_name='bag', | ||
name='size', | ||
field=models.BigIntegerField(help_text="Size of Bag's Payload (in bytes)"), | ||
), | ||
migrations.AlterField( | ||
model_name='bag_info', | ||
name='field_body', | ||
field=models.TextField(help_text='Field Body'), | ||
), | ||
migrations.AlterField( | ||
model_name='bag_info', | ||
name='field_name', | ||
field=models.CharField(db_index=True, help_text='Field Name', max_length=255), | ||
), | ||
migrations.AlterField( | ||
model_name='node', | ||
name='last_checked', | ||
field=models.DateTimeField(blank=True, help_text='Date node size last checked'), | ||
), | ||
migrations.AlterField( | ||
model_name='node', | ||
name='node_capacity', | ||
field=models.BigIntegerField(blank=True, | ||
help_text='The total amount of storage (in bytes)'), | ||
), | ||
migrations.AlterField( | ||
model_name='node', | ||
name='node_name', | ||
field=models.CharField(db_index=True, help_text='The name of the node', | ||
max_length=255, unique=True), | ||
), | ||
migrations.AlterField( | ||
model_name='node', | ||
name='node_path', | ||
field=models.CharField(help_text="The path on disk to the node's root", | ||
max_length=255), | ||
), | ||
migrations.AlterField( | ||
model_name='node', | ||
name='node_size', | ||
field=models.BigIntegerField(blank=True, | ||
help_text='The current size of files on disk (in bytes)'), | ||
), | ||
migrations.AlterField( | ||
model_name='node', | ||
name='node_url', | ||
field=models.TextField(help_text='The external url for the root of the node'), | ||
), | ||
] |
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
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
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
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
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
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
Oops, something went wrong.