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.
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 )
|
|
|