source: trunk/skins/toolbox/useContent.py @ 66

Revision 66, 529 bytes checked in by tarmo, 14 years ago (diff)

Changed the svn:eol-style property to "native", since
people aren't using unix line feeds uniformally.

  • Property svn:eol-style set to native
Line 
1## Script (Python) "useContent"
2##bind container=container
3##bind context=context
4##bind namespace=
5##bind script=script
6##bind subpath=traverse_subpath
7##parameters=
8##title=Calls the "useThis" method of the current context
9
10# It's a good idea to separate logic an UI. Therefore no user viewable
11# link should point directly to methods in Python classes, but either
12# to templates or Python scripts that then do the call to Python classes.
13context.useThis()
14return context.REQUEST.RESPONSE.redirect(context.absolute_url_path())
Note: See TracBrowser for help on using the repository browser.