Skip to content

Instantly share code, notes, and snippets.

@andrewcstewart
Created August 28, 2013 15:05
Show Gist options
  • Save andrewcstewart/6367096 to your computer and use it in GitHub Desktop.
Save andrewcstewart/6367096 to your computer and use it in GitHub Desktop.
fcrepo api error
In [26]: pid = client.getNextPID(u'foo')
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-26-9c5d45fed03c> in <module>()
----> 1 pid = client.getNextPID(u'foo')
/Library/Python/2.7/site-packages/fcrepo/client.pyc in getNextPID(self, namespace, numPIDs, format)
19
20 def getNextPID(self, namespace, numPIDs=1, format=u'text/xml'):
---> 21 request = self.api.getNextPID()
22 response = request.submit(namespace=namespace,
23 numPIDs=numPIDs,
AttributeError: 'API' object has no attribute 'getNextPID'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment