[wiki-lenny/.../doodle] Cration d'un nouveau parser pour des sondages doodle
darcs-hash:20081205190343-bd074-564f728bb9a25ea62af8a889b069a6f4ce7e5881.gz
This commit is contained in:
parent
65a5158dbc
commit
278a018207
2 changed files with 61 additions and 26 deletions
|
@ -1,5 +1,26 @@
|
|||
# -*- coding: iso-8859-1 -*-
|
||||
"""
|
||||
_vi
|
||||
<Ii _aa.
|
||||
:I> aZ2^
|
||||
v` .we^
|
||||
. . .. + _2~
|
||||
._auqXZZX ._auqXZZZ` ...._... ~ ._|ii~
|
||||
.aXZZY""^~~ vX#Z?""~~~._=ii|+++++++ii=, _=|+~-
|
||||
JXXX` )XXX' _|i+~ .__..._. +l= -~-
|
||||
SXXo )XZX: |i> ._%i>~~+|ii| .i| ._s_ass,,. ._a%ssssssss
|
||||
-SXZ6,,. )XZX: =l> _li+~` iii| .ii _uZZXX??YZ#Za, uXUX*?!!!!!!!
|
||||
"!XZ#ZZZZZXZXZ` <i> =i: .|ii| .l|.dZXr 4XXo.XXXs,.
|
||||
-~^^^^^^^` -||, +i|=. |ii| :i>:ZXZ( ]XZX.-"SXZUZUXoa,,
|
||||
+l|, ~~|++|++i|||+~:ZXZ( ]ZZX ---~"?Z#m
|
||||
.__;=- ~+l|=____.___, :ZXZ( ]ZXX_________auXX2
|
||||
._||>+~- . -~+~++~~~- :ZXZ( ]ZXZZ#######UX*!"
|
||||
-+-- .>` _
|
||||
.<}` 3;
|
||||
.<l> .Zc
|
||||
.ii^ )Xo
|
||||
]XX
|
||||
|
||||
MoinMoin - gallery2Image Actionmacro
|
||||
|
||||
PURPOSE::
|
||||
|
@ -56,9 +77,13 @@ def execute(pagename, request):
|
|||
newentry = user + ";"
|
||||
for f in fields:
|
||||
if isinstance(f, unicode):
|
||||
formfield = base64.encodestring(f.strip().decode('utf-8')).strip('\r\t \n=') # l'utf-8, c'est bien!
|
||||
# l'utf-8, c'est bien! On encode l'unicode en utf-8 avant
|
||||
# de le base64er
|
||||
formfield = base64.encodestring(f.strip().decode('utf-8')).strip('\r\t \n=')
|
||||
else:
|
||||
formfield = base64.encodestring(f.strip()).strip('\r\t \n=') # mais ça peut bien chier!
|
||||
# Bon, si on n'a pas un unicode, on encode sauvagement, mais
|
||||
# ça peut chier
|
||||
formfield = base64.encodestring(f.strip()).strip('\r\t \n=')
|
||||
disp = request.form.get(formfield)
|
||||
if disp:
|
||||
newentry += " %s=%s;" % (f, disp[0])
|
||||
|
@ -73,9 +98,9 @@ def execute(pagename, request):
|
|||
if updatepoll: pass
|
||||
else:
|
||||
updatepoll = True
|
||||
newdoolist += [newentry]
|
||||
newdoolist.append(newentry)
|
||||
else:
|
||||
newdoolist += [participant]
|
||||
newdoolist.append(participant)
|
||||
|
||||
if not updatepoll:
|
||||
newdoolist.append(newentry)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue