English 中文(简体)
意愿——如何选择名称相同的多种选择
原标题:Twill - how do choose multiple selects with same name

我正在利用拖拉机和假日写一个网络拖网机。 表格

Form name=customRatesForm (#1)
## ## __Name__________________ __Type___ __ID________ __Value__________________
10    originState              hidden    originState  TN 
11    destState                hidden    destState    IL 
12    originZip                text      originZip    37130 
13    destZip                  text      destZip      60602 
16    classes                  select    classes1     [ 0000 ] of [ 0000 ,  0500 ,  0550 , ... 
17    weight                   text      weight1      600 
18    weight                   text      weight2       
19    weight                   text      weight3       
20    weight                   text      weight4       
30 1  submit                   submi ... submit      

我把大部分的字句放在前面,以便于阅读。 我的问题是,实际上有12项选择,所有选择都有名称类别。 这些清单作为清单通过农研组。 然而,Twill似乎无法区分他们。 而且,当我出任时,

fv( 1 ,  classes ,  0500 )

我有以下错误:

_mechanize_dist.ClientForm.AmbiguityError: id=None name= 0500  label=None

我已尝试过几个工作领域,包括重新命名选修女,然后重写提交功能,使用 j子的挑选器,将其名字重新归为:

$( .myclasses ).attr( name ,  classes );

当我在浏览器中看到这一点时,似乎按预期重新调配。 但是,拖拉机的头盔仍然显示,他们的名字是1级、2级等等。

希望得到任何帮助。 我知道我所知道的工作。 由于这只字不提我的网页,我受其控制者对选定班子名单的期望的约束。

最佳回答

直到现在为止,没有办法与遗嘱一起这样做。 任何解决办法都将是遗嘱以外的工作。

问题回答

暂无回答




相关问题
Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

How to remove unique, then duplicate dictionaries in a list?

Given the following list that contains some duplicate and some unique dictionaries, what is the best method to remove unique dictionaries first, then reduce the duplicate dictionaries to single ...

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

How can I make the PyDev editor selectively ignore errors?

I m using PyDev under Eclipse to write some Jython code. I ve got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

Converting Dictionary to List? [duplicate]

I m trying to convert a Python dictionary into a Python list, in order to perform some calculations. #My dictionary dict = {} dict[ Capital ]="London" dict[ Food ]="Fish&Chips" dict[ 2012 ]="...

热门标签