On Friday, January 18, 2013 12:57:51 AM UTC-8, Dirk Stöcker wrote:

> Hello, 
>
> I try to detect in expand_macro() of a wiki processor if I'm in preview 
> state or in final state. Is this possible. If yes, how? 
>

Hi, Will this do what you are trying to accomplish?:

'preview' in formatter.req.args and formatter.req.args.get('preview') == 
'Preview Page' 

It will evaluate to True when the user has explicitly pressed the "Preview 
page" button.

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Development" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/trac-dev/-/kWtxl-QJRr0J.
To post to this group, send email to trac-dev@googlegroups.com.
To unsubscribe from this group, send email to 
trac-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/trac-dev?hl=en.

Reply via email to