LazyMonkey
unread,Nov 17, 2009, 2:41:25 PM11/17/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ActiveFedora / Ruby + Fedora Commons
This is more of a feature request than a bug report. I'm testing a
batch script for ingesting groups of fedora objects and running into a
bit of an issue. If I have a pre-existing object for the collection,
I can add relationships to it, or to the new AF object. But if I'm
creating both objects (the item and its collection parent) in the same
run of the program, the AF add_relationship methods fail, as they're
making calls to Fedora for objects that haven't been created yet. My
workaround is to save the objects once, then add relationships, then
save again. But it would be nice if you could add_relationship to
objects, and the method's success didn't rely on reaching into Fedora
itself.