def make_path_log(r, t=None, i=None):
 rpath = ('/recipes/' + r)
 tpath = ((t and ('/tasks/' + t)) or '')
 ipath = ((i and ('/results/' + i)) or '')
 return (((rpath + tpath) + ipath) + '/logs')

def make_path_log ( r , t = None , i = None ) : rpath = ( '/recipes/' + r ) tpath = ( ( t and ( '/tasks/' + t ) ) or '' ) ipath = ( ( i and ( '/results/' + i ) ) or '' ) return ( ( ( rpath + tpath ) + ipath ) + '/logs' )
converts id into a beaker path to log file given a recipe id .