Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/cgi-bin/activities.py
diff options
context:
space:
mode:
Diffstat (limited to 'cgi-bin/activities.py')
-rwxr-xr-xcgi-bin/activities.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/cgi-bin/activities.py b/cgi-bin/activities.py
index c0fc829..8a36e79 100755
--- a/cgi-bin/activities.py
+++ b/cgi-bin/activities.py
@@ -183,6 +183,8 @@ def getFile(filepth,filename):
log = open('/tmp/loggetfile','w')
pth = filepth / filename
tgtpth = path('content') / filepth
+ print >> log, 'filepth',filepth,'tgtpth',tgtpth,'filename',filename
+ log.close()
if USB.exists(): #get from usb drive
pth = USB / srcpth
cmd = 'cp -r ' + pth + ' ' + tgtpth
@@ -190,6 +192,8 @@ def getFile(filepth,filename):
subprocess.call(cmd,shell=True)
else: #get from schoolserver
pth = SS / filepth
+ log = open('/tmp/loggetfile1','w')
+ print >> log, 'pth',pth
if filename.find('*') > -1:
script = 'cd ' + str(pth) + '\nmget ' + filename
else: