#2747 HIGH Update.: Copy text from Browse to Write, pastes formatted text if using same method, otherwise pastes unformatted text (was: Copying from Browse to Write, only pastes the text correctly if you stick to the same method when copying and pasting (dnd or copy/paste buttons))

Zarro Boogs per Child bugtracker at laptop.org
Wed Jan 30 13:45:35 EST 2008


#2747: Copy text from Browse to Write, pastes formatted text if using same method,
otherwise pastes unformatted text
---------------------------------------+------------------------------------
  Reporter:  HoboPrimate               |       Owner:  uwog              
      Type:  defect                    |      Status:  new               
  Priority:  high                      |   Milestone:  Update.2          
 Component:  write-activity (abiword)  |     Version:  Git as of bug date
Resolution:                            |    Keywords:                    
  Verified:  0                         |    Blocking:                    
 Blockedby:                            |  
---------------------------------------+------------------------------------

Comment(by HoboPrimate):

 Text always is pasted correctly in Joyride-1607. The difference now, is
 that text is unformatted if pasted through a different technique.

 If you Paste using the same method as you copied, text will be formated
 (with the font chosen and bold/italic/etc):

 {{{

 1201718109.150922 DEBUG root: Activity.save:
 dbus.String(u'1bd57c82-b6c8-4b12-8fcc-26fc4fed6222')
 1201718111.006687 DEBUG root: AbiWordActivity.write_file
 1201718111.048090 DEBUG root: datastore.write
 1201718111.051312 DEBUG root: dbus_helpers.update: 1bd57c82-b6c8-4b12
 -8fcc-26fc4fed6222,
 /home/olpc/isolation/1/uid_to_home_dir/10002/instance/1201718111,
 {'activity_id': '3ab796d9008fc39ab7264bf71ab790f7a7004d8b',
 'title_set_by_user': '0', 'title': 'Escrever Activity', 'share-scope':
 'private', 'timestamp': 1201718111, 'activity':
 'org.laptop.AbiWordActivity', 'fulltext': "\xef\xbb\xbf\n\nMUC \n\nThe
 default MUC configuration is to assume that conference.yourserver is a
 valid hostname. This isn't actually important for the XOs, but it must
 exist from the perspective of the server. You could put it into /etc/hosts
 for example. \n\n\n", 'keep': '0', 'icon-color': '#005FE4,#FF2B34',
 'mtime': '2008-01-30T18:35:11.049871', 'preview': '<omitted>',
 'mime_type': 'application/vnd.oasis.opendocument.text'}, True
 }}}

 , and if you use a different Paste method, text will be unformatted:


 {{{
 1201718255.911057 DEBUG root: Activity.save:
 dbus.String(u'1bd57c82-b6c8-4b12-8fcc-26fc4fed6222')
 1201718256.440883 DEBUG root: AbiWordActivity.write_file
 1201718256.488190 DEBUG root: datastore.write
 1201718256.491282 DEBUG root: dbus_helpers.update: 1bd57c82-b6c8-4b12
 -8fcc-26fc4fed6222,
 /home/olpc/isolation/1/uid_to_home_dir/10002/instance/1201718256,
 {'activity_id': '3ab796d9008fc39ab7264bf71ab790f7a7004d8b',
 'title_set_by_user': '0', 'title': 'Escrever Activity', 'share-scope':
 'private', 'timestamp': 1201718256, 'activity':
 'org.laptop.AbiWordActivity', 'fulltext': "MUC\n\nThe default MUC
 configuration is to assume that conference.yourserver is a valid hostname.
 This isn't actually important for the XOs, but it must exist from the
 perspective of the server. You could put it into /etc/hosts for example.
 \n", 'keep': '0', 'icon-color': '#005FE4,#FF2B34', 'mtime':
 '2008-01-30T18:37:36.489934', 'preview': '<omitted>', 'mime_type':
 'application/vnd.oasis.opendocument.text'}, True
 1201718256.504072 DEBUG root: Written object 1bd57c82-b6c8-4b12-8fcc-
 26fc4fed6222 to the datastore.
 }}}

 Any other logs you need? The ones I got from Write's log don't seem to be
 as thorough as the ones posted above.

-- 
Ticket URL: <http://dev.laptop.org/ticket/2747#comment:7>
One Laptop Per Child <http://dev.laptop.org>
OLPC bug tracking system



More information about the Bugs mailing list