如何發送POST表單中的列表/數組並使用Colander對它們進行解碼?我已經嘗試了幾種方法,但迄今爲止沒有運氣。使用形式和科蘭德模式類似下面將拋出錯誤:[1,2,3] is not iterable example_1.html: <form action="path_to_page" method="post">
<input name="ids" type="text" value
我在API中有一組與Coramid/Cornice一起使用的Colander SchemaNode。對於某些查詢字符串參數,傳遞範圍(即time=X-Y表示從X到Y的時間範圍,其中X和Y是表示時期的整數)。 class TimedThingGet(MappingSchema):
time = TimeOrRange(missing=drop)
: class TimeOrRange(