@contextfunction
def rss_link(context, url=None):
 request = context['request']
 params = request.GET.copy()
 params.update({'secret': get_secret_key(request)})
 if (not url):
  url = request.path
 for ext in getattr(settings, 'HARDTREE_RESPONSE_FORMATS', {'html': 'text/html'}):
  url = url.replace(('.' + ext), '')
 url += '.rss'
 try:
  url += ('?' + urllib.urlencode(params))
 except:
  pass
 return Markup(url)

@ contextfunction def rss_link ( context , url = None ) : request = context [ 'request' ] params = request . GET . copy ( ) params . update ( { 'secret' : get_secret_key ( request ) } ) if ( not url ) : url = request . path for ext in getattr ( settings , 'HARDTREE_RESPONSE_FORMATS' , { 'html' : 'text/html' } ) : url = url . replace ( ( '.' + ext ) , '' ) url += '.rss' try : url += ( '?' + urllib . urlencode ( params ) ) except : pass return Markup ( url )
generic rss link for this url .