Closed gjost closed 5 years ago
Django error page from the affected machine. densho-1000newobj.zip
Try this with a segment
In DDR.models.entity.py:new
the updated_files
arg to DDR.commands.entity_create
should be empty. Currently it's
[collection.json_path_rel, collection.ead_path_rel],
Maybe that function was cut-and-pasted from Collection.new
without modifying it for Entity
?
The weird thing is that it works on other machines in the HQ.
The affected repo (ddr-densho-1000) was missing ead.xml
at the root; adding the file addressed the issue. Not important to refactor at the present.
In at least one
ddr-local
install, adding a new Entity results in anOSError
because the function is mistakenly trying to addcollection.json
andead.xml
to the repository and those files are not there. Or perhapsCWD
is not at the collection root so they don't appear to be there. In any case, they don't need to be added when creating a new Entity.