Hi
Sorry for my late answer.
Merlijn van Deen wrote:
I suppose textForm needs to be u"""(...)""" then, but I am not completely sure. And instead of using your own regexps to find templates and their parameters, use page.templatesWithParams() and process that. I'm not completely sure what you want to do though.
My plan is:
1. Gather some information (as strings) from an existing page (information contained both in templates and in text of the page) 2. Create a sentence out of those strings. 3. Replace the first sentence of the page with the sentence just created and save the page
replace.py can replace some text with other text, but that's not enough, since I need to pass it the string created in steps 1 and 2. Don't know if a scripts that does that already exists, though.
Cheers, Raffa