2007-09-04 Don Allingham <don@gramps-project.org>
* src/DataViews/_MediaView.py (MediaView.drag_data_received): handle multiple images in a drag-n-drop svn: r8927
This commit is contained in:
		@@ -1,3 +1,7 @@
 | 
			
		||||
2007-09-04  Don Allingham  <don@gramps-project.org>
 | 
			
		||||
	* src/DataViews/_MediaView.py (MediaView.drag_data_received): handle 
 | 
			
		||||
	multiple images in a drag-n-drop
 | 
			
		||||
 | 
			
		||||
2007-09-04  Brian Matherly <brian@gramps-project.org>
 | 
			
		||||
	* src/ReportBase/__init__.py: Add MenuOptions
 | 
			
		||||
	* src/ReportBase/_MenuOptions.py: Added
 | 
			
		||||
 
 | 
			
		||||
@@ -163,9 +163,11 @@ class MediaView(PageView.ListView):
 | 
			
		||||
        If the selection data is define, extract the value from sel_data.data,
 | 
			
		||||
        and decide if this is a move or a reorder.
 | 
			
		||||
        """
 | 
			
		||||
 | 
			
		||||
        if sel_data and sel_data.data:
 | 
			
		||||
            d = Utils.fix_encoding(sel_data.data.replace('\0',' ').strip())
 | 
			
		||||
            cleaned_string = sel_data.data.replace('\0',' ')
 | 
			
		||||
            cleaned_string = cleaned_string.replace("\r"," ").strip()
 | 
			
		||||
            data_list = Utils.fix_encoding(cleaned_string).split('\n')
 | 
			
		||||
            for d in [item.strip() for item in data_list]:
 | 
			
		||||
                protocol, site, mfile, j, k, l = urlparse.urlparse(d)
 | 
			
		||||
                if protocol == "file":
 | 
			
		||||
                    name = Utils.fix_encoding(mfile)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user