Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#4512 closed defect (fixed)

Read can't open txt files

Reported by: godiard Owned by: godiard
Priority: Unspecified by Maintainer Milestone: Unspecified
Component: Read Version: 0.98.x
Severity: Unspecified Keywords:
Cc: Distribution/OS: Unspecified
Bug Status: Unconfirmed

Description

Something in the text view api has changed:

  File "/home/gonzalo/Activities/Read.activity/readactivity.py", line 689, in read_file
    self._load_document('file://' + self._tempfile)
  File "/home/gonzalo/Activities/Read.activity/readactivity.py", line 864, in _load_document
    self._view.setup(self)
  File "/home/gonzalo/Activities/Read.activity/textadapter.py", line 91, in setup
    self.highlight_tag.set_property('underline', 'single')
ValueError: invalid literal for int() with base 10: 'single'

Attachments (1)

tag_undeline_property_SL4512.py (294 bytes) - added by godiard 8 years ago.
test case

Download all attachments as: .zip

Change History (3)

comment:1 Changed 8 years ago by godiard

  • Resolution set to fixed
  • Status changed from new to closed

Fixed on e5e69434d779caa7acc79870e61dec24df4537af

Need a new release for 13.2.0

Changed 8 years ago by godiard

test case

comment:2 Changed 8 years ago by godiard

The attached test, in sugar-build finish with error:

[gonzalo@localhost test]$ python tag_undeline_property_SL4512.py 
3 6 4
Traceback (most recent call last):
  File "tag_undeline_property_SL4512.py", line 7, in <module>
    tag.set_property('underline', 'single')
ValueError: invalid literal for int() with base 10: 'single'

But in F18 works ok.

If we replace the line:

tag.set_property('underline', 'single')

by

tag.set_property('underline', Pango.Underline.SINGLE)

works on F18 and in sugar-build

Note: See TracTickets for help on using tickets.