[X2Go-Commits] python-x2go.git - build-baikal (branch) updated: 0.0.39.0-75-gde1c01f

X2Go dev team git-admin at x2go.org
Wed Jan 8 15:26:07 CET 2014


The branch, build-baikal has been updated
       via  de1c01fd8967163b2fb9688ed893624a4dd3203a (commit)
      from  016528916eeca1b895ccfa9e3543ad1eb05fb575 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
-----------------------------------------------------------------------

Summary of changes:
 x2go/dropbox.py |    7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

The diff of changes is:
diff --git a/x2go/dropbox.py b/x2go/dropbox.py
index 1db958c..b38395d 100644
--- a/x2go/dropbox.py
+++ b/x2go/dropbox.py
@@ -216,14 +216,17 @@ def x2go_dropboxjob_handler(dropbox_file=None,
 
     logger('action for printing is: %s' % dropbox_action, loglevel=log.loglevel_DEBUG)
 
+    _dotfile = dropbox_file.startswith('.')
     _blacklisted = dropbox_file.upper().split('.')[-1] in defaults.X2GO_DROPBOX_EXTENSIONS_BLACKLIST
     _really_process = bool(not _blacklisted  and ((not dropbox_extensions) or [ ext for ext in dropbox_extensions if dropbox_file.upper().endswith('%s' % ext.upper()) ]))
-    if _really_process and not _blacklisted:
+    if _really_process and not _blacklisted and not _dotfile:
         dropbox_action.do_process(dropbox_file=dropbox_file,
                                   dropbox_dir=parent_thread.dropbox_dir,
                                  )
-    elif not _blacklisted:
+    elif not _blacklisted and not _dotfile:
         logger('file extension of dropbox file %s is prohibited by session profile configuration' % dropbox_file, loglevel=log.loglevel_NOTICE)
+    elif _dotfile:
+        logger('placing files starting with a dot (.<file>) into the X2go dropbox is prohibited, ignoring the file ,,%s\'\'' % dropbox_file, loglevel=log.loglevel_WARN)
     else:
         logger('file extension of dropbox file %s has been found in Python X2go\' hardcoded dropbox extenstions blacklist' % dropbox_file, loglevel=log.loglevel_WARN)
 


hooks/post-receive
-- 
python-x2go.git (Python X2Go Client API)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "python-x2go.git" (Python X2Go Client API).




More information about the x2go-commits mailing list