コード例 #1
0
 def execUpdatePermissions(self):
     self.statusBar().showMessage(self.tr("Please wait while updating the user/group permissions and ownerships..."))
     self.statusBar().setVisible(True)
     time.sleep(0.2)
     QtGui.QApplication.processEvents()
     conn = cm.get_connection()
     conn.proxy.update_permissions(True, True)
     self.statusBar().clearMessage()
コード例 #2
0
 def checkPermissions(self):
     conn = cm.get_connection()
     if conn == None:
         print "No connection"
         return
     if not conn.proxy.test_binded():
         print "Not binded"
         return
     access_idents = conn.proxy.list_my_permissions()
     if not self.old_access_idents == access_idents:
         print "permissions_changed"
         self.old_access_idents = access_idents
         self.emitPermissionsChanged(access_idents)