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

Proposed by David Callé
Status: Merged
Approved by: Paweł Stołowski
Approved revision: 31
Merged at revision: 31
Proposed branch: lp:~davidc3/unity-scope-devhelp/glib-bindings-crash
Merge into: lp:unity-scope-devhelp
Diff against target: 36 lines (+2/-14)
2 files modified
data/devhelp.scope.in (+1/-1)
src/unity_devhelp_daemon.py (+1/-13)
To merge this branch: bzr merge lp:~davidc3/unity-scope-devhelp/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+213215@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 dev, help and doc keywords

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

 * 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/devhelp.scope.in'
--- data/devhelp.scope.in 2013-07-16 13:02:05 +0000
+++ data/devhelp.scope.in 2014-03-28 08:55:21 +0000
@@ -3,7 +3,7 @@
3DBusPath=/com/canonical/unity/scope/developer/devhelp3DBusPath=/com/canonical/unity/scope/developer/devhelp
4Icon=4Icon=
5QueryBinary=devhelp5QueryBinary=devhelp
6_Keywords=devhelp;6_Keywords=devhelp;dev;help;doc;
7RequiredMetadata=7RequiredMetadata=
8OptionalMetadata=8OptionalMetadata=
9Loader=/usr/share/unity-scopes/devhelp/unity_devhelp_daemon.py9Loader=/usr/share/unity-scopes/devhelp/unity_devhelp_daemon.py
1010
=== modified file 'src/unity_devhelp_daemon.py'
--- src/unity_devhelp_daemon.py 2013-04-22 12:43:19 +0000
+++ src/unity_devhelp_daemon.py 2014-03-28 08:55:21 +0000
@@ -205,19 +205,7 @@
205 i['comment'] = ''205 i['comment'] = ''
206 if not 'dnd_uri' in i or not i['dnd_uri'] or i['dnd_uri'] == '':206 if not 'dnd_uri' in i or not i['dnd_uri'] or i['dnd_uri'] == '':
207 i['dnd_uri'] = i['uri']207 i['dnd_uri'] = i['uri']
208 i['metadata'] = {}208 result_set.add_result(**i)
209 if EXTRA_METADATA:
210 for e in i:
211 for m in EXTRA_METADATA:
212 if m['id'] == e:
213 i['metadata'][e] = i[e]
214 i['metadata']['provider_credits'] = GLib.Variant('s', PROVIDER_CREDITS)
215 result = Unity.ScopeResult.create(str(i['uri']), str(i['icon']),
216 i['category'], i['result_type'],
217 str(i['mimetype']), str(i['title']),
218 str(i['comment']), str(i['dnd_uri']),
219 i['metadata'])
220 result_set.add_result(result)
221 except Exception as error:209 except Exception as error:
222 print(error)210 print(error)
223211

Subscribers

People subscribed via source and target branches

to all changes: