Hi Manuel, Welcome!
The @ syntax is called a "decorator". If you search for "python decorators", I'm sure you'll find a lot more reading on the topic. The decorators have the ability to wrap themselves around a function or method and provide additional functionality. cherrypy.expose doesn't do much, but turbogears.expose handles validation of input parameters and the formatting of output via Kid templates or JSON. Kevin On 11/17/05, Manuel Kiessling <[EMAIL PROTECTED]> wrote: > > Hello, > > I'm very new to TG and relatively new to python. I understand most of > it, but something I could not yet get are these @turbogears.expose > lines. I understand that it tells Kid which template it should serve, > but the syntax is odd. It is executed right before a def - I didn't > even know that python allows code there. And what does the @ mean? I > could not yet find it in the python documentation (and googling for > "python @" doesn't really make much sense). > I guess it's something really simple, but it would be great if someone > could explain it to me. > > Thanks in advance. > > -- Kevin Dangoor Author of the Zesty News RSS newsreader email: [EMAIL PROTECTED] company: http://www.BlazingThings.com blog: http://www.BlueSkyOnMars.com

