Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > 81fdc10824e627c4cdabda91d99e0511 > files > 10

nautilus-python-devel-0.7.0-3.fc14.1.i686.rpm

import nautilus
import gobject

class UpdateFileInfoAsync(nautilus.InfoProvider):
    def __init__(self):
        pass
    
    def update_file_info_full(self, provider, handle, closure, file):
        print "update_file_info_full"
        gobject.timeout_add_seconds(3, self.update_cb, provider, handle, closure)
        return nautilus.OPERATION_IN_PROGRESS
        
    def update_cb(self, provider, handle, closure):
        print "update_cb"
        self.update_complete_invoke(provider, handle, closure, result=nautilus.OPERATION_FAILED)