﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
116	*args and **kargs don't work in templates	jjinux@…	cmlenz	"If I write a function that accepts *args and **kargs and then call it, it crashes:

{{{
  <py:def function=""f(*args, **kargs)""
    ${args}
    ${kargs}
  </py:def>
  ...
  ${f(1, 2, a=3, b=4)}
}}}

This produces, in my app anyway, something that looks like:

{{{
Module acctmgr.controllers.login:61 in login         
<<                                                   'http://foxmarks.com'))
            c.defaults = DefaultsList([request.params])
            return render_response('login')
   
        def _login(self, username):>>  return render_response('login')
Module pylons.templating:302 in render_response        
<<              return render_response('/my/template.myt')
        """"""
        response = pylons.Response(render(*args, **kargs))
        output_encoding = kargs.get('output_encoding')
        encoding_errors = kargs.get('encoding_errors')>>  response = pylons.Response(render(*args, **kargs))
Module pylons.templating:288 in render        
<<                                      namespace=kargs, **cache_args)
        return pylons.buffet.render(template_name=template, fragment=fragment,
                                    namespace=kargs, **cache_args)
   
    def render_response(*args, **kargs):>>  namespace=kargs, **cache_args)
Module pylons.templating:198 in render        
<<              return content
           
            return engine_config['engine'].render(namespace, template=full_path,
                **options)
            >>  return engine_config['engine'].render(namespace, template=full_path,
Module genshi.template.plugin:99 in render        
Module genshi.template.plugin:146 in transform        
Module genshi.template.plugin:104 in transform        
Module genshi.template.plugin:86 in load_template        
Module genshi.template.loader:203 in load        
Module genshi.template.markup:75 in __init__        
Module genshi.template.base:321 in __init__        
genshi.template.base.TemplateSyntaxError: not well-formed (invalid token): line 44, column 4 (/home/jj/work/foxmarks/src/foxmarks/apps/acctmgr/acctmgr/templates/login.html, line 44)
}}}

(Ignore the .myt thing.  I think that might be a comment in Pylons or something.)
"	defect	closed	major	0.4.1	Template processing	0.4	fixed		
