[filter] improve Join filter

The filter will now act a little bit more like the join command
I also added some parameters that will help formatting (newLine, addBedore, addAfter)
This commit is contained in:
Bezleputh 2015-03-06 18:02:23 +01:00
commit 11a63c33ce
5 changed files with 22 additions and 10 deletions

View file

@ -61,7 +61,7 @@ class SearchPage(HTMLPage):
klass = BaseJobAdvert
obj_url = Format('%s#%s', Env('url'), Env('id'))
obj_description = Join('%s\r\n',
obj_description = Join('\r\n',
'div/fieldset/*[(@class="titreParagraphe" or @class="normal")]',
textCleaner=CleanHTML)
obj_title = CleanText('div/span[@class="intituleposte"]')