summaryrefslogtreecommitdiff
path: root/portato/gui/qt/dialogs.py
diff options
context:
space:
mode:
authornecoro <>2007-04-10 20:09:37 +0000
committernecoro <>2007-04-10 20:09:37 +0000
commit2d76b0ba7f6d0040c42e53df87f1ffbcbbe2cba1 (patch)
tree1afe0cf0ba9bf2316c007635eeabb4029568a1de /portato/gui/qt/dialogs.py
parentf6b57b91d9af93a463b9549a6977feb48169c765 (diff)
downloadportato-2d76b0ba7f6d0040c42e53df87f1ffbcbbe2cba1.tar.gz
portato-2d76b0ba7f6d0040c42e53df87f1ffbcbbe2cba1.tar.bz2
portato-2d76b0ba7f6d0040c42e53df87f1ffbcbbe2cba1.zip
Some more functionality for the Qt-Frontend (complete emerge)
Diffstat (limited to 'portato/gui/qt/dialogs.py')
-rw-r--r--portato/gui/qt/dialogs.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/portato/gui/qt/dialogs.py b/portato/gui/qt/dialogs.py
index cf32439..7b5609e 100644
--- a/portato/gui/qt/dialogs.py
+++ b/portato/gui/qt/dialogs.py
@@ -36,3 +36,6 @@ def remove_deps_dialog (parent):
def remove_queue_dialog (parent):
return QMessageBox.question(parent, "Portato", "Do you really want to clear the whole queue?", QMessageBox.Yes | QMessageBox.No)
+
+def changed_flags_dialog (parent, what = "flags"):
+ return QMessageBox.information(parent, "Portato", "You have changed %s. Portato will write these changes into the appropriate files. Please backup them if you think it is necessairy." % what, QMessageBox.Ok)
ed filesLars Hjemli2-9/+14 Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-10Add license file and copyright noticesLars Hjemli5-0/+372 Signed-off-by: Lars Hjemli <hjemli@gmail.com> 2006-12-10Add caching infrastructureLars Hjemli9-28/+353 This enables internal caching of page output. Page requests are split into four groups: 1) repo listing (front page) 2) repo summary 3) repo pages w/symbolic references in query string 4) repo pages w/constant sha1's in query string Each group has a TTL specified in minutes. When a page is requested, a cached filename is stat(2)'ed and st_mtime is compared to time(2). If TTL has expired (or the file didn't exist), the cached file is regenerated. When generating a cached file, locking is used to avoid parallell processing of the request. If multiple processes tries to aquire the same lock, the ones who fail to get the lock serves the (expired) cached file. If the cached file don't exist, the process instead calls sched_yield(2) before restarting the request processing. Signed-off-by: Lars Hjemli <hjemli@gmail.com>