Table of Contents

Class: URLStreamFactory ./src/peak/naming/factories/openable.py

Stream factory for a urllib2.urlopen()

This is a pretty lame duck right now. It's mainly here so we have a consistent interface across file-like URLs.

Base Classes   
object
Methods   
create
delete
exists
getObjectInstance
open
update
  create 
create (
        self,
        mode,
        seek=False,
        readable=False,
        autocommit=False,
        )

Exceptions   
TypeError( "Can't create URL", self.address )
  delete 
delete ( self,  autocommit=False )

Exceptions   
TypeError( "Can't delete URL", self.address )
  exists 
exists ( self )

  getObjectInstance 
getObjectInstance (
        klass,
        context,
        refInfo,
        name,
        attrs=None,
        )

  open 
open (
        self,
        mode,
        seek=False,
        writable=False,
        autocommit=False,
        )

Exceptions   
TypeError( "URL not seekable", self.address )
TypeError( "URL not writable", self.address )
TypeError( "URL requires binary read mode", self.address )
  update 
update (
        self,
        mode,
        seek=False,
        readable=False,
        append=False,
        autocommit=False,
        )

Exceptions   
TypeError( "Can't update URL", self.address )

Table of Contents

This document was automatically generated on Mon Nov 11 01:11:05 2024 by HappyDoc version 2.1