def fireplace_route(path, name=None):
 kwargs = {}
 if name:
  kwargs['name'] = name
 return url(('^%s$' % path), views.commonplace, {'repo': 'fireplace'}, **kwargs)

def fireplace_route ( path , name = None ) : kwargs = { } if name : kwargs [ 'name' ] = name return url ( ( '^%s$' % path ) , views . commonplace , { 'repo' : 'fireplace' } , ** kwargs )
helper function for building fireplace urls .