Python论坛  - 讨论区

标题:[python-chinese] Cherrypy必须在参数中写下所有的表单项目吗?

2005年04月21日 星期四 10:20

清风 baoogle at 126.com
Thu Apr 21 10:20:48 HKT 2005

Wang Kebo 写道:

>那。。。照这么说,应该是我犯了错误。可以把Html中不需要的标单项目的name属性去
>掉,
>就不需要在python代码中写参数了。
>
>__
>Best Regards,
> 
>Kebo Wang
>
>
>  
>
>>-----Original Message-----
>>From: 清风 [mailto:baoogle at 126.com] 
>>Sent: Thursday, April 21, 2005 9:28 AM
>>To: baoogle at 126.com; python-chinese at lists.python.cn
>>Cc: Wang Kebo
>>Subject: Re: [python-chinese] Cherrypy必须在参数中写下所有的表单项目吗?
>>
>>清风 写道:
>>
>>    
>>
>>>Wang Kebo 写道:
>>>
>>> 
>>>
>>>      
>>>
>>>>只写你需要的就可以了。
>>>>
>>>>__
>>>>Best Regards,
>>>>
>>>>Kebo Wang
>>>>
>>>>
>>>>
>>>>
>>>>   
>>>>
>>>>        
>>>>
>>>>>-----Original Message-----
>>>>>From: python-chinese-bounces at lists.python.cn
>>>>>[mailto:python-chinese-bounces at lists.python.cn] On Behalf Of 清风
>>>>>Sent: Wednesday, April 20, 2005 9:44 AM
>>>>>To: python-chinese at lists.python.cn
>>>>>Subject: [python-chinese] Cherrypy必须在参数中写下所有的表单项目吗?
>>>>>
>>>>>例如我的表单有4项(比如有两个文本框,两个下拉框),但只想用两个文本框的
>>>>>内容,是否也必须在参数中写所有表单的内容?
>>>>>
>>>>>urlimage(self,shirt,imgurl,myfile,imgfrom):
>>>>>
>>>>>像上面就是都写下了,可否只写需要的参数?像提交按钮如果也有name值,那么他
>>>>>也要我提供,晕。
>>>>>
>>>>>_______________________________________________
>>>>>python-chinese list
>>>>>python-chinese at lists.python.cn
>>>>>http://python.cn/mailman/listinfo/python-chinese
>>>>>
>>>>>  
>>>>>
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>可是报错。。。
>>>
>>>TypeError: urlimage() got an unexpected keyword argument 'imgform'
>>>
>>>
>>>
>>>_______________________________________________
>>>python-chinese list
>>>python-chinese at lists.python.cn
>>>http://python.cn/mailman/listinfo/python-chinese
>>>
>>>
>>> 
>>>
>>>      
>>>
>>这个是我在mail敲错了,我仔细检查了,在htm中确实是imgfrom,而在表单中要提
>>交的方法中如果没有imgfrom,那么会报错
>>
>>Traceback (most recent call last):
>> File 
>>"D:\PYTHON23\Lib\site-packages\cherrypy\_cphttptools.py", line 
>>206, in doRequest
>>   handleRequest(wfile)
>> File 
>>"D:\PYTHON23\Lib\site-packages\cherrypy\_cphttptools.py", line 
>>389, in handleRequest
>>   body = func(*(virtualPathList + cpg.request.paramList), 
>>**(cpg.request.paramMap))
>>TypeError: urlimage() got an unexpected keyword argument 'imgfrom'
>>
>>用*arg也不行。。。晕死
>>
>>
>>
>>    
>>
对,我现在的做法就是这样。。。。可是这也太。。。
CherryPy必须这样吗?很不理解。。。





[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2005年04月21日 星期四 10:24

Zoom Quiet zoom.quiet at gmail.com
Thu Apr 21 10:24:49 HKT 2005

PHP 就是这样滴!自从有 php 页面以来!
没有什么可理解的,
毕竟对于一个函式,有值域的问题!
不过,你可以在类级别处声明为全局性变量哪?
在模板处可以声明使用 self.name 这样的引用的!



在05-4-21,清风<baoogle at 126.com> 写道:
> Wang Kebo 写道:
> 
> >那。。。照这么说,应该是我犯了错误。可以把Html中不需要的标单项目的name属性去
> >掉,
> >就不需要在python代码中写参数了。
> >
> >__
> >Best Regards,
> >
> >Kebo Wang
> >
> >
> >
> >
> >>-----Original Message-----
> >>From: 清风 [mailto:baoogle at 126.com]
> >>Sent: Thursday, April 21, 2005 9:28 AM
> >>To: baoogle at 126.com; python-chinese at lists.python.cn
> >>Cc: Wang Kebo
> >>Subject: Re: [python-chinese] Cherrypy必须在参数中写下所有的表单项目吗?
> >>
> >>清风 写道:
> >>
> >>
> >>
> >>>Wang Kebo 写道:
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>>只写你需要的就可以了。
> >>>>
> >>>>__
> >>>>Best Regards,
> >>>>
> >>>>Kebo Wang
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>>-----Original Message-----
> >>>>>From: python-chinese-bounces at lists.python.cn
> >>>>>[mailto:python-chinese-bounces at lists.python.cn] On Behalf Of 清风
> >>>>>Sent: Wednesday, April 20, 2005 9:44 AM
> >>>>>To: python-chinese at lists.python.cn
> >>>>>Subject: [python-chinese] Cherrypy必须在参数中写下所有的表单项目吗?
> >>>>>
> >>>>>例如我的表单有4项(比如有两个文本框,两个下拉框),但只想用两个文本框的
> >>>>>内容,是否也必须在参数中写所有表单的内容?
> >>>>>
> >>>>>urlimage(self,shirt,imgurl,myfile,imgfrom):
> >>>>>
> >>>>>像上面就是都写下了,可否只写需要的参数?像提交按钮如果也有name值,那么他
> >>>>>也要我提供,晕。
> >>>>>
> >>>>>_______________________________________________
> >>>>>python-chinese list
> >>>>>python-chinese at lists.python.cn
> >>>>>http://python.cn/mailman/listinfo/python-chinese
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>可是报错。。。
> >>>
> >>>TypeError: urlimage() got an unexpected keyword argument 'imgform'
> >>>
> >>>
> >>>
> >>>_______________________________________________
> >>>python-chinese list
> >>>python-chinese at lists.python.cn
> >>>http://python.cn/mailman/listinfo/python-chinese
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>这个是我在mail敲错了,我仔细检查了,在htm中确实是imgfrom,而在表单中要提
> >>交的方法中如果没有imgfrom,那么会报错
> >>
> >>Traceback (most recent call last):
> >> File
> >>"D:\PYTHON23\Lib\site-packages\cherrypy\_cphttptools.py", line
> >>206, in doRequest
> >>   handleRequest(wfile)
> >> File
> >>"D:\PYTHON23\Lib\site-packages\cherrypy\_cphttptools.py", line
> >>389, in handleRequest
> >>   body = func(*(virtualPathList + cpg.request.paramList),
> >>**(cpg.request.paramMap))
> >>TypeError: urlimage() got an unexpected keyword argument 'imgfrom'
> >>
> >>用*arg也不行。。。晕死
> >>
> >>
> >>
> >>
> >>
> 对,我现在的做法就是这样。。。。可是这也太。。。
> CherryPy必须这样吗?很不理解。。。
> 
> 
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
> 


-- 
[Time is unimportant, only life important!]

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2005年04月21日 星期四 10:36

lidlu lidlu at 163.com
Thu Apr 21 10:36:16 HKT 2005

python-chinese,您好!

	请问一下,python,perl与tcl各语言有何区别,初学者学哪种语言比较好?

        致
礼!
 				

        lidlu
        lidlu at 163.com
          2005-04-21

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2005年04月21日 星期四 10:45

外星人 etu5 at 163.com
Thu Apr 21 10:45:03 HKT 2005

lidlu,您好!
	
	测试一下如何发送群组讨论~

	...

	难道直接回复邮件即可?
	

======= 2005-04-21 10:36:16 您在来信中写道:=======

>python-chinese,您好!
>
>	请问一下,python,perl与tcl各语言有何区别,初学者学哪种语言比较好?
>
>        致
>礼!
> 				
>
>        lidlu
>        lidlu at 163.com
>          2005-04-21
>_______________________________________________
>python-chinese list
>python-chinese at lists.python.cn
>http://python.cn/mailman/listinfo/python-chinese
>

= = = = = = = = = = = = = = = = = = = =
			

        致
礼!
 
				 
        外星人
        etu5 at 163.com
          2005-04-21

-------------- next part --------------
A non-text attachment was scrubbed...
Name: =?gb2312?B?zeLQx8jLLnZjZg==?=
Type: text/x-vcard
Size: 115 bytes
Desc: not available
Url : http://lists.exoweb.net/pipermail/python-chinese/attachments/20050421/86bcd4b9/gb2312BzeLQx8jLLnZjZg.vcf

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2005年04月21日 星期四 10:54

lidlu lidlu at 163.com
Thu Apr 21 10:54:50 HKT 2005

外星人,您好!

	把收件人地址设为python-chinese at lists.python.cn,所有群组里的人都能收到的.

======= 2005-04-21 10:45:03 您在来信中写道:=======

>lidlu,您好!
>	
>	测试一下如何发送群组讨论~
>
>	...
>
>	难道直接回复邮件即可?
>	
>
>======= 2005-04-21 10:36:16 您在来信中写道:=======
>
>>python-chinese,您好!
>>
>>	请问一下,python,perl与tcl各语言有何区别,初学者学哪种语言比较好?
>>
>>        致
>>礼!
>> 				
>>
>>        lidlu
>>        lidlu at 163.com
>>          2005-04-21
>>_______________________________________________
>>python-chinese list
>>python-chinese at lists.python.cn
>>http://python.cn/mailman/listinfo/python-chinese
>>
>
>= = = = = = = = = = = = = = = = = = = =
>			
>
>        致
>礼!
> 
>				 
>        外星人
>        etu5 at 163.com
>          2005-04-21
>
>_______________________________________________
>python-chinese list
>python-chinese at lists.python.cn
>http://python.cn/mailman/listinfo/python-chinese
>

= = = = = = = = = = = = = = = = = = = =
			

        致
礼!
 
				 
        lidlu
        lidlu at 163.com
          2005-04-21


[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号