| Home | Trees | Indices | Help |
|
|---|
|
|
object --+
|
file --+
|
ProtectedFile
A special file-object class that automatically that automatically does a 'chmod +w' when needed. XXX: for now, the way it is done allows 'normal file-objects' to be created during the ProtectedFile object lifetime. One way to circumvent this would be to chmod / unchmod on each write operation. One other way would be to : - catch the IOError in the __init__ - if IOError, then create a StringIO object - each write operation writes in this StringIO object - on close()/del(), write/append the StringIO content to the file and do the chmod only once
| Instance Methods | |||
| file object |
|
||
| None or (perhaps) an integer |
|
||
|
|||
|
Inherited from Inherited from |
|||
| Properties | |
|
Inherited from Inherited from |
| Method Details |
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
|
restore mode before closing
|
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Jun 11 21:52:20 2010 | http://epydoc.sourceforge.net |