[Bugs] #3819 sugar UNSP: Clipboard drag&drop: error when dragging an icon to the clipboard

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Tue Aug 21 04:53:49 EDT 2012


#3819: Clipboard drag&drop: error when dragging an icon to the clipboard
------------------------------------------+---------------------------------
    Reporter:  erikos                     |          Owner:  erikos  
        Type:  defect                     |         Status:  new     
    Priority:  Unspecified by Maintainer  |      Milestone:  0.98    
   Component:  sugar                      |        Version:  0.97.x  
    Severity:  Major                      |       Keywords:          
Distribution:  OLPC                       |   Status_field:  Assigned
------------------------------------------+---------------------------------
 Steps to reproduce (you need to apply #3811 and #3818 first):

  - open the Browse activity

 - drag an image to the clipboard

 ---> the notification pulsing icon should be of the same type as the
 clipboard icon

 {{{
 1345538574.421700 DEBUG root: ClipboardTray: adding type 'text/uri-list'
 1345538574.421790 DEBUG root: Clipboard.add_object_format
 Traceback (most recent call last):
   File "/home/erikos/sugar-build/install/lib/python2.7/site-
 packages/jarabe/frame/clipboardtray.py", line 210, in
 drag_data_received_cb
     self._add_selection(object_id, selection)
   File "/home/erikos/sugar-build/install/lib/python2.7/site-
 packages/jarabe/frame/clipboardtray.py", line 96, in _add_selection
     on_disk=True)
   File "/home/erikos/sugar-build/install/lib/python2.7/site-
 packages/jarabe/frame/clipboard.py", line 92, in add_object_format
     new_uri = self._copy_file(data)
   File "/home/erikos/sugar-build/install/lib/python2.7/site-
 packages/jarabe/frame/clipboard.py", line 166, in _copy_file
     f_, new_file_path = tempfile.mkstemp(ext, root)
   File "/usr/lib/python2.7/tempfile.py", line 300, in mkstemp
     return _mkstemp_inner(dir, prefix, suffix, flags)
   File "/usr/lib/python2.7/tempfile.py", line 235, in _mkstemp_inner
     fd = _os.open(file, flags, 0600)
 TypeError: must be encoded string without NULL bytes, not str
 1345538574.424115 DEBUG root: ClipboardTray: got data for target
 '_NETSCAPE_URL'
 1345538574.424240 DEBUG root: ClipboardTray: adding type '_NETSCAPE_URL'
 1345538574.424326 DEBUG root: Clipboard.add_object_format

 }}}

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/3819>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list