Skip to content

Instantly share code, notes, and snippets.

@andrewcstewart
Created August 28, 2013 15:05
Show Gist options
  • Select an option

  • Save andrewcstewart/6367096 to your computer and use it in GitHub Desktop.

Select an option

Save andrewcstewart/6367096 to your computer and use it in GitHub Desktop.

Revisions

  1. andrewcstewart created this gist Aug 28, 2013.
    14 changes: 14 additions & 0 deletions fcrepo api error
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    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'