pld-ftp-admin: modules/cmds.py - remember who and when locked a tree
mmazur
mmazur at pld-linux.org
Sun Sep 11 15:14:08 CEST 2005
Author: mmazur Date: Sun Sep 11 13:14:08 2005 GMT
Module: pld-ftp-admin Tag: HEAD
---- Log message:
- remember who and when locked a tree
---- Files affected:
pld-ftp-admin/modules:
cmds.py (1.11 -> 1.12)
---- Diffs:
================================================================
Index: pld-ftp-admin/modules/cmds.py
diff -u pld-ftp-admin/modules/cmds.py:1.11 pld-ftp-admin/modules/cmds.py:1.12
--- pld-ftp-admin/modules/cmds.py:1.11 Sun Jul 24 02:31:56 2005
+++ pld-ftp-admin/modules/cmds.py Sun Sep 11 15:14:03 2005
@@ -38,9 +38,9 @@
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
================================================================
---- CVS-web:
http://cvs.pld-linux.org/pld-ftp-admin/modules/cmds.py?r1=1.11&r2=1.12&f=u
More information about the pld-cvs-commit
mailing list