]> git.pld-linux.org Git - projects/pld-ftp-admin.git/commitdiff
- remember who and when locked a tree
authorMariusz Mazur <mmazur@pld-linux.org>
Sun, 11 Sep 2005 13:14:03 +0000 (13:14 +0000)
committerMariusz Mazur <mmazur@pld-linux.org>
Sun, 11 Sep 2005 13:14:03 +0000 (13:14 +0000)
Changed files:
    modules/cmds.py -> 1.12

modules/cmds.py

index b46047bfda27827c6184abc187a6177e7fcc311e..7f4b8092208af35c52a49f31c14d480eb8d61806 100644 (file)
@@ -38,9 +38,9 @@ def parse(con):
 
 def lock(con, arg, hard):
     if arg not in locks:
-        locks[arg]=hard
+        locks[arg]={'hard': hard, 'name': con.name, 'time': int(time.time())}
         con.sock.send("OK")
-    elif locks[arg]:
+    elif locks[arg]['hard']:
         con.sock.send("HARD") # Hard lock - you can go get a cup of tea
     else:
         con.sock.send("SOFT") # Soft lock - try in a second or two
This page took 0.3161 seconds and 4 git commands to generate.