solvebio/resource/apiresource.py
def instance_url(self):
        """Get instance URL by ID"""
        id_ = self.get(self.ID_ATTR)
        base = self.class_url()

        if id_:
            return '/'.join([base, six.text_type(id_)])
        else:
            raise Exception(
                'Could not determine which URL to request: %s instance '
                'has invalid ID: %r' % (type(self).__name__, id_),
                self.ID_ATTR)
def instance_url(self):
        id_ = self.get(self.ID_ATTR)
        base = self.class_url()

        if id_:
            return '/'.join([base, six.text_type(id_)])
        else:
            raise Exception(
                'Could not determine which URL to request: %s instance '
                'has invalid ID: %r' % (type(self).__name__, id_),
                self.ID_ATTR)
def instance_url ( self ) : id_ = self . get ( self . ID_ATTR ) base = self . class_url ( ) if id_ : return '/' . join ( [ base , six . text_type ( id_ ) ] ) else : raise Exception ( 'Could not determine which URL to request: %s instance ' 'has invalid ID: %r' % ( type ( self ) . __name__ , id_ ) , self . ID_ATTR )
Get instance URL by ID
Get instance URL by ID