Ticket #1814: 0001-Do-not-allow-empty-string-activity_id-1814.patch

File 0001-Do-not-allow-empty-string-activity_id-1814.patch, 913 bytes (added by alsroot, 12 years ago)
  • src/jarabe/journal/misc.py

    From 5e0c0d4c6d3f3ea77c93baced3403a9c631f86c6 Mon Sep 17 00:00:00 2001
    From: Aleksey Lim <alsroot@member.fsf.org>
    Date: Thu, 23 Sep 2010 06:47:15 +0000
    Subject: [PATCH] Do not allow empty string activity_id #1814
    
    Regression was introduced by ad88527353efdb351caef4999c17fdf1f1766662.
    ---
     src/jarabe/journal/misc.py |    2 +-
     1 files changed, 1 insertions(+), 1 deletions(-)
    
    diff --git a/src/jarabe/journal/misc.py b/src/jarabe/journal/misc.py
    index 657b60e..e83f530 100644
    a b def resume(metadata, bundle_id=None): 
    217217
    218218def launch(bundle, activity_id=None, object_id=None, uri=None, color=None,
    219219           invited=False):
    220     if activity_id is None:
     220    if not activity_id:
    221221        activity_id = activityfactory.create_activity_id()
    222222
    223223    logging.debug('launch bundle_id=%s activity_id=%s object_id=%s uri=%s',