-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AIC fixes #450
AIC fixes #450
Conversation
@@ -144,7 +144,7 @@ def escapeForCommand(string): | |||
# and is primarily used for arbitrary strings (e.g. filenames, paths) | |||
# that might not be valid unicode to begin with. | |||
def escape(string): | |||
if isinstance(string, basestring): | |||
if isinstance(string, str): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use django.utils.six.binary_type
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat, I didn't realize Django shipped with a copy of six
! We've tried to keep from requiring Django in archivematicaCommon however, and when we do the Py3 conversion we'll probably just use six
as a dependency instead of using Django's.
👍 |
Unicode strings cannot be decoded, so only try to run .decode on bytestrings.
An AIC does not have an objects directory, so put the DMDID on the SIP directory div instead.
Revert change to metadata dir from b7ebee6 In an AIC, the metadata dir is not inside the objects dir, and is added to the fileSec separately.
Remove empty directories anywhere in the AIP, not just in the objects directory.
Fixes for bugs relating to #440 and deleting empty directories.
And other minor fixes
str
notunicode
strings. Fixes displaying unicode in the task detail view