[wiki-lenny/local/parser/Portail.py] modification de syntaxe pour les portails
darcs-hash:20081207190826-bd074-54c538346226023b9795162ac1c1ecf32058cfd9.gz
This commit is contained in:
parent
4fb657e4ff
commit
d29a380e65
3 changed files with 11 additions and 11 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue