Merge lp:~davidc3/unity-scope-texdoc/glib-bindings-crash into lp:unity-scope-texdoc

Proposed by David Callé
Status: Merged
Approved by: Paweł Stołowski
Approved revision: 27
Merged at revision: 27
Proposed branch: lp:~davidc3/unity-scope-texdoc/glib-bindings-crash
Merge into: lp:unity-scope-texdoc
Diff against target: 36 lines (+2/-14)
2 files modified
data/texdoc.scope.in (+1/-1)
src/unity_texdoc_daemon.py (+1/-13)
To merge this branch: bzr merge lp:~davidc3/unity-scope-texdoc/glib-bindings-crash
Reviewer Review Type Date Requested Status
Paweł Stołowski (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+213214@code.launchpad.net

Commit message

Don't crash Unity bindings when building results.

Description of the change

- Don't crash Unity bindings when building results.
- Add tex and latex keywords

Test plan : https://wiki.ubuntu.com/Process/Merges/TestPlan/unity-scope-texdoc

 * Is your branch in sync with latest trunk (e.g. bzr pull lp:trunk -> no changes) Yes
 * Did you build your software in a clean sbuild/pbuilder chroot or ppa? Yes
 * Has your component "TestPlan” been executed successfully on desktop? Yes
 * If you changed the packaging (debian), did you subscribe a core-dev to this MP? N/A
 * If you changed the UI, did you subscribe the design-reviewers to this MP? N/A
 * What components might get impacted by your changes? None
 * Have you requested review by the teams of these owning components? N/A

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Paweł Stołowski (stolowski) wrote :

Looking good. +1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'data/texdoc.scope.in'
--- data/texdoc.scope.in 2013-07-08 07:48:09 +0000
+++ data/texdoc.scope.in 2014-03-28 08:55:18 +0000
@@ -5,7 +5,7 @@
5QueryBinary=texdoc5QueryBinary=texdoc
6Module=texdoc.unity_texdoc_daemon6Module=texdoc.unity_texdoc_daemon
7ModuleType=python37ModuleType=python3
8_Keywords=texdoc;8_Keywords=texdoc;tex;latex;
9RequiredMetadata=9RequiredMetadata=
10OptionalMetadata=10OptionalMetadata=
11Type=help11Type=help
1212
=== modified file 'src/unity_texdoc_daemon.py'
--- src/unity_texdoc_daemon.py 2013-12-16 01:00:56 +0000
+++ src/unity_texdoc_daemon.py 2014-03-28 08:55:18 +0000
@@ -195,19 +195,7 @@
195 i['comment'] = ''195 i['comment'] = ''
196 if not 'dnd_uri' in i or not i['dnd_uri'] or i['dnd_uri'] == '':196 if not 'dnd_uri' in i or not i['dnd_uri'] or i['dnd_uri'] == '':
197 i['dnd_uri'] = i['uri']197 i['dnd_uri'] = i['uri']
198 i['metadata'] = {}198 result_set.add_result(**i)
199 if EXTRA_METADATA:
200 for e in i:
201 for m in EXTRA_METADATA:
202 if m['id'] == e:
203 i['metadata'][e] = i[e]
204 i['metadata']['provider_credits'] = GLib.Variant('s', PROVIDER_CREDITS)
205 result = Unity.ScopeResult.create(str(i['uri']), str(i['icon']),
206 i['category'], i['result_type'],
207 str(i['mimetype']), str(i['title']),
208 str(i['comment']), str(i['dnd_uri']),
209 i['metadata'])
210 result_set.add_result(result)
211 except Exception as error:199 except Exception as error:
212 print(error)200 print(error)
213201

Subscribers

People subscribed via source and target branches