source: trunk/skins/lemill/validate_reloading_page.vpy @ 3085

Revision 3085, 582 bytes checked in by jukka, 9 years ago (diff)

Added missing (important) validator. Fixed#1997

Line 
1## Script (Python) "validate_reloading_page"
2##bind container=container
3##bind context=context
4##bind namespace=
5##bind script=script
6##bind state=state
7##bind subpath=traverse_subpath
8##parameters=
9##
10
11# don't validate anything yet, or maybe at most alert about wrong file types or such
12#state.setNextAction('traverse_to:string:content_edit')
13state.set(status='success')
14return state
15
16
17if errors:
18    context.lemill_tool.addPortalMessage(gettext('Please correct the indicated errors.'))
19    #state=state.set(status='success', errors=errors)
20    return state
21else:
22    return state
Note: See TracBrowser for help on using the repository browser.