Changeset 9610 for trunk/src/common/helpers.py
- Timestamp:
- 05/11/08 01:21:28 (7 months ago)
- Files:
-
- 1 modified
-
trunk/src/common/helpers.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/common/helpers.py
r9585 r9610 586 586 587 587 def get_file_path_from_dnd_dropped_uri(uri): 588 path = urllib.u rl2pathname(uri) # escape special chars588 path = urllib.unquote(uri) # escape special chars 589 589 path = path.strip('\r\n\x00') # remove \r\n and NULL 590 590 # get the path to file 591 if path.startswith('file:\\\\\\'): # windows591 if re.match('^file:///[a-zA-Z]:/', path): # windows 592 592 path = path[8:] # 8 is len('file:///') 593 593 elif path.startswith('file://'): # nautilus, rox
