Re: Form Field Question from python noob

2007-11-14 Thread justquick
Python does not have static/public/private objects like java does. Whats happening is that self.date_form is referencing date_form and that happens in the __init__ method On Nov 14, 2:31 pm, johnny <[EMAIL PROTECTED]> wrote: > I have seen forms without the "self" in front of the fields, eg. more

Form Field Question from python noob

2007-11-14 Thread johnny
I have seen forms without the "self" in front of the fields, eg. more like this date_from = forms.DateField() and never self.date_form =forms.DateField(). If you include self.date_form, then date_form becomes an attribute of an instance rather than a attribute of a class. What confusing me is th