2007年06月19日 星期二 17:13
ÓÐûÓз½·¨£¬ ¸Ä±ä wx.ListCtrl ÖÐitemµÄ¸ß¶È£¿ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070619/070246bc/attachment-0001.html
2007年06月19日 星期二 18:47
class ContactForm(forms.Form):
email = forms.EmailField(label = 'Your Email (replies will be sent to this
address, make sure it is correct)', max_length = 200)
subject = forms.CharField(max_length = 200, widget = forms.HiddenInput)
content = forms.CharField(widget = forms.Textarea(attrs = {'rows': 5,
'cols': 45}))
现在我想控制render的emailfield的size
turn
into
我该如何做,找了半天也没有doc
看了一些文档说好像用boundfield,
不过又有一些说是widget,但是widget 不能控制emailfiled,不知道该如何是好。
_________________________________________________________________
与联机的朋友进行交流,请使用 Live Messenger;
http://get.live.com/messenger/overview
2007年06月19日 星期二 20:22
email = forms.EmailField(... , widget=EmailField.widget(attrs={'size':5}))
On 6/19/07, cun heise <cunheise at hotmail.com> wrote:
>
> class ContactForm(forms.Form):
> email = forms.EmailField(label = 'Your Email (replies will be sent
> to this
> address, make sure it is correct)', max_length = 200)
> subject = forms.CharField(max_length = 200, widget =
> forms.HiddenInput)
> content = forms.CharField(widget = forms.Textarea(attrs = {'rows':
> 5,
> 'cols': 45}))
>
> 现在我想控制render的emailfield的size
> turn
>
> into
>
> 我该如何做,找了半天也没有doc
> 看了一些文档说好像用boundfield,
> 不过又有一些说是widget,但是widget 不能控制emailfiled,不知道该如何是好。
>
> _________________________________________________________________
> 与联机的朋友进行交流,请使用 Live Messenger;
> http://get.live.com/messenger/overview
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
--
http://codeplayer.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://python.cn/pipermail/python-chinese/attachments/20070619/aba68276/attachment.html
2007年06月19日 星期二 21:10
ºÃÏñÕâÑù²»ÐÐ >From: "黄毅" <yi.codeplayer在gmail.com> >Reply-To: python-chinese在lists.python.cn >To: python-chinese在lists.python.cn >Subject: Re: [python-chinese]newforms emailField çé®é¢?>Date: Tue, 19 Jun 2007 20:22:09 +0800 > >email = forms.EmailField(... , >widget=EmailField.widget(attrs={'size':5})) > >On 6/19/07, cun heise <cunheise在hotmail.com> wrote: >> >>class ContactForm(forms.Form): >> email = forms.EmailField(label = 'Your Email (replies will >>be sent >>to this >>address, make sure it is correct)', max_length = 200) >> subject = forms.CharField(max_length = 200, widget = >>forms.HiddenInput) >> content = forms.CharField(widget = forms.Textarea(attrs = >>{'rows': >>5, >>'cols': 45})) >> >>现在我想控制render的emailfield的size >>turn >> >>into >> >>我该如何做,找了半天也没有doc >>çäºä¸äºææ¡£è¯´å¥½åç¨boundfieldï¼?>>ä¸è¿åæä¸äºè¯´æ¯w idget,但是widget >>ä¸è½æ§å¶emailfiledï¼ä¸ç¥é该å¦ä½æ¯å¥½ã?>> >>_________________________________________________________________ >>与联机的朋友进行交流,请使用 Live Messenger; >>http://get.live.com/messenger/overview >> >>_______________________________________________ >>python-chinese >>Post: send python-chinese在lists.python.cn >>Subscribe: send subscribe to python-chinese-request在lists.python.cn >>Unsubscribe: send unsubscribe to >>python-chinese-request在lists.python.cn >>Detail Info: http://python.cn/mailman/listinfo/python-chinese > > > > >-- >http://codeplayer.blogspot.com/ >_______________________________________________ >python-chinese >Post: send python-chinese在lists.python.cn >Subscribe: send subscribe to python-chinese-request在lists.python.cn >Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn >Detail Info: http://python.cn/mailman/listinfo/python-chinese _________________________________________________________________ ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà Live Messenger; http://get.live.com/messenger/overview
2007年06月19日 星期二 21:31
it's a bug, maybe i fix it need modify the fields.py file which is locate /usr/lib/.../django/newforms/fields.py add this line in the def __init__ function and remember the indent is 4 spaces not tab or 2 spaces after the change i think maybe need remove the fields.pyc file which in the same directory >From: "cun heise" <cunheise在hotmail.com> >Reply-To: python-chinese在lists.python.cn >To: python-chinese在lists.python.cn >Subject: [python-chinese] newforms emailField µÄÎÊÌâ >Date: Tue, 19 Jun 2007 10:47:32 +0000 > >class ContactForm(forms.Form): > email = forms.EmailField(label = 'Your Email (replies will be sent to this >address, make sure it is correct)', max_length = 200) > subject = forms.CharField(max_length = 200, widget = forms.HiddenInput) > content = forms.CharField(widget = forms.Textarea(attrs = {'rows': 5, >'cols': 45})) > >现在我想控制render的emailfield的size >turn > >into > >我该如何做,找了半天也没有doc >çäºä¸äºææ¡£è¯´å¥½åç¨boundfieldï¼?>ä¸è¿åæä¸äºè¯´æ¯widget ï¼ä½æ¯widget ä¸è½æ§å¶emailfiledï¼ä¸ç¥é该å¦ä½æ¯å¥½ã?> >_________________________________________________________________ >与联机的朋友进行交流,请使用 Live Messenger; >http://get.live.com/messenger/overview > >_______________________________________________ >python-chinese >Post: send python-chinese在lists.python.cn >Subscribe: send subscribe to python-chinese-request在lists.python.cn >Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn >Detail Info: http://python.cn/mailman/listinfo/python-chinese _________________________________________________________________ ÓëÊÀ½ç¸÷µØµÄÅóÓѽøÐн»Á÷£¬Ãâ·ÑÏÂÔØ Live Messenger; http://get.live.com/messenger/overview
2007年06月20日 星期三 03:02
»òÐíÐèÒªSVN°æ±¾ÄØ£¿ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070620/ee70512e/attachment.html
Zeuux © 2025
京ICP备05028076号