[wiki-lenny/local/parser/Portail.py] modification de syntaxe pour les portails

darcs-hash:20081207190826-bd074-54c538346226023b9795162ac1c1ecf32058cfd9.gz
This commit is contained in:
Antoine Durand-Gasselin 2008-12-07 20:08:26 +01:00
parent 4fb657e4ff
commit d29a380e65
3 changed files with 11 additions and 11 deletions

View file

@ -25,9 +25,9 @@ MoinMoin - Portail parser
CALLING SEQUENCE:
{{{
#!Portail
image1.png | title1 | description 1
image2.png | title2 | description 2
image3.png | title3 | description 3
image1.png @@ title1 @@ description 1
image2.png @@ title2 @@ description 2
image3.png @@ title3 @@ description 3
}}}
CREDIT
@ -118,7 +118,7 @@ class Parser:
# on traite les ligne une à une
for line in quotes:
line=line.strip()
items=line.split('|',2)
items=line.split('@@',2)
if items.__len__()<3:
self.request.write('<!-- error, wrong number of parameters -->')
else: