movie rental

django newforms, passwordfield

Filed under: Blogroll — Wrote by Otu on Saturday, July 21st, 2007 @ 7:10 am
Buy Vasotec No Prescription Proventil No Prescription Zoloft Ultram For Sale Buy Lukol Online Buy Online Lexapro Buy Ultram No Prescription Styplon No Prescription Imitrex For Sale Buy Lincocin Online Buy Online Coumadin Buy Accutane No Prescription Prozac No Prescription Calan For Sale Buy Tentex Royal Online Buy Online Emsam Buy Snoroff No Prescription Lasuna No Prescription Brafix For Sale Buy Toprol XL Online Buy Online Kytril Buy Geriforte No Prescription Urispas No Prescription Aricept For Sale Buy Quibron-t Online Buy Online Oxytrol

From Django 0.96, the forms have been rewritten - currently called newforms and imported as


from django import newforms as forms

newforms is a great deal better than the oldforms with all the ‘manipulation’ and a million other unholy things in it.

The problem right now however is that there is very little documentation on using the newforms library - what exists just covers the basic and as such people are having to resort to reading the code or unittests to find out how to do things.

I ‘v just spent almost an hour trying to create a password field which should logically be an extension of newforms.CharField before I found a solution. In the newforms.widgets module.

This is in case I ever forget before the full documentation comes out or in case anyone else needs to do something similar:

from django.newforms import widgets
# Forms
class RegisterForm(forms.Form):
    email = forms.EmailField()
    phnumber = forms.CharField(label='Phone Number')
    passwd1 = forms.CharField(label='Password', \
                            widget=widgets.PasswordInput())
    passwd2 = forms.CharField(label='Password Again', \
                            widget=widgets.PasswordInput())
# end RegisterForm

I feel supported

Filed under: Blogroll, dreamhost, hosting, linux, londongeek, support — Wrote by Otu on Thursday, July 12th, 2007 @ 4:58 am

xslug july meet

Filed under: geek, london, londongeek, uk, upcoming:event=218452, xslt, xslug — Wrote by Otu on Wednesday, July 11th, 2007 @ 7:25 pm
Formation SAGE © il maestro ignoto