Skip to Content.
Sympa Menu

idok-commit - [idok-commit] idok commit r141 - trunk/java/ch/idok/qtgui

idok-commit AT lists.psi.ch

Subject: Commit emails of the iDok project

List archive

[idok-commit] idok commit r141 - trunk/java/ch/idok/qtgui


Chronological Thread 
  • From: "Apache" <apache AT savannah.psi.ch>
  • To: idok-commit AT lists.psi.ch
  • Subject: [idok-commit] idok commit r141 - trunk/java/ch/idok/qtgui
  • Date: Tue, 8 Jul 2008 11:15:56 +0200
  • List-archive: <https://lists.web.psi.ch/pipermail/idok-commit/>
  • List-id: Commit emails of the iDok project <idok-commit.lists.psi.ch>

Author: huebner AT PSI.CH
Date: Tue Jul 8 11:15:56 2008
New Revision: 141

Log:
Added improvement IDO-175: Test write access when starting the metadata entry
dialog

+ removed a problem that occurred when editing medatada of locked documents

Modified:
trunk/java/ch/idok/qtgui/PendingOperationsController.java

Modified: trunk/java/ch/idok/qtgui/PendingOperationsController.java
==============================================================================
--- trunk/java/ch/idok/qtgui/PendingOperationsController.java (original)
+++ trunk/java/ch/idok/qtgui/PendingOperationsController.java Tue Jul 8
11:15:56 2008
@@ -517,6 +517,16 @@
String document = selectedItem_.text(0);
RepositoryPath repPath = (RepositoryPath) selectedItem_.data(0,
Qt.ItemDataRole.UserRole);
+ try {
+ Repository repo = repoC_.getCurrentRepo();
+ repo.lock(repPath.getDocumentId(), "", false);
+ repo.unlock(repPath.getDocumentId(), false);
+ } catch (DmsException e) {
+ QMessageBox.warning(null, "iDok Warning",
+ "You either have insufficent right to edit the metadata of this
document or this document is currently locked.");
+ return;
+ }
+
String path = repPath.getDocumentId().toString();
// check if already being edited
int j = -1;



  • [idok-commit] idok commit r141 - trunk/java/ch/idok/qtgui, Apache, 07/08/2008

Archive powered by MHonArc 2.6.19.

Top of Page