/usr/share/doc/python-caja/examples/update-file-info-async.py is in python-caja-common 1.12.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | from gi.repository import Caja, GObject
class UpdateFileInfoAsync(GObject.GObject, Caja.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 Caja.OperationResult.IN_PROGRESS
def update_cb(self, provider, handle, closure):
print "update_cb"
Caja.info_provider_update_complete_invoke(closure, provider, handle, Caja.OperationResult.FAILED)
|