Opened 12 years ago
Closed 9 years ago
#2846 closed defect (obsolete)
view source not parsing bundle path properly
Reported by: | walter | Owned by: | |
---|---|---|---|
Priority: | Unspecified by Maintainer | Milestone: | Unspecified |
Component: | Sugar | Version: | Git as of bugdate |
Severity: | Unspecified | Keywords: | |
Cc: | Distribution/OS: | Unspecified | |
Bug Status: | Unconfirmed |
Description
The LearnWriting Activity uses a Java-style bundle-path. View Source seems to be stopping at the top-level trying to find a .py file.
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/jarabe/view/palettes.py", line 105, in
view_sourcecb
setup_view_source(self._home_activity)
File "/usr/lib/python2.7/site-packages/jarabe/view/viewsource.py", line 89, in
setup_view_source
activity.get_title())
File "/usr/lib/python2.7/site-packages/jarabe/view/viewsource.py", line 149, i
n init
self._source_display.file_path = self._selected_file
File "/usr/lib/python2.7/site-packages/jarabe/view/viewsource.py", line 461, i
n _set_file_path
self._buffer.set_text(open(self._file_path, 'r').read())
IOError: [Errno 2] No existe el fichero o el directorio: '/home/walter/Activitie
s/LearningWriting.activity/com.py'
Attachments (1)
Change History (3)
Changed 12 years ago by walter
comment:1 Changed 12 years ago by walter
The attached patch seems to work, but there must be a simpler way???
comment:2 Changed 9 years ago by walter
- Resolution set to obsolete
- Status changed from new to closed
first pass at a patch