Django

Code

Show
Ignore:
Timestamp:
07/18/08 20:22:26 (4 months ago)
Author:
jacob
Message:

Fixed #7741: django.newforms is now django.forms. This is obviously a backwards-incompatible change. There's a warning upon import of django.newforms itself, but deeper imports will raise errors.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/regressiontests/forms/extra.py

    r7337 r7971  
    11# -*- coding: utf-8 -*- 
    22tests = r""" 
    3 >>> from django.newforms import * 
     3>>> from django.forms import * 
    44>>> from django.utils.encoding import force_unicode 
    55>>> import datetime 
     
    1515############### 
    1616 
    17 The newforms library comes with some extra, higher-level Field and Widget 
     17The forms library comes with some extra, higher-level Field and Widget 
    1818classes that demonstrate some of the library's abilities. 
    1919 
    2020# SelectDateWidget ############################################################ 
    2121 
    22 >>> from django.newforms.extras import SelectDateWidget 
     22>>> from django.forms.extras import SelectDateWidget 
    2323>>> w = SelectDateWidget(years=('2007','2008','2009','2010','2011','2012','2013','2014','2015','2016')) 
    2424>>> print w.render('mydate', '') 
     
    425425####################################### 
    426426 
    427 >>> from django.newforms.util import ErrorList 
     427>>> from django.forms.util import ErrorList 
    428428>>> class DivErrorList(ErrorList): 
    429429...     def __unicode__(self):