Logo Search packages:      
Sourcecode: zope-extfile version File versions

def zope-extfile-1.4.2::ExtImage::ExtImage::_undo (   self  )  [private]

Restore filename after delete or copy-paste 

Definition at line 506 of file ExtImage.py.

00506                    :
        """ Restore filename after delete or copy-paste """
        if self.has_preview and self.filename != self.prev_filename:
            fn = self._fsname(self.prev_filename)
            if not isfile(fn) and isfile(fn+'.undo'): 
                self._register()    # Register with TM
                os.rename(fn+'.undo', self._temp_fsname(self.prev_filename))
        return ExtImage.inheritedAttribute("_undo")(self)
    def _get_content_type(self, file, body, id, content_type=None):

Generated by  Doxygen 1.6.0   Back to index