-
Notifications
You must be signed in to change notification settings - Fork 395
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #586 from wtforms/ext-deprecation
consistent deprecation warnings for ext modules
- Loading branch information
Showing
7 changed files
with
36 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import warnings | ||
|
||
warnings.warn( | ||
'wtforms.ext.appengine is deprecated, and will be removed in WTForms 3.0. ' | ||
'The package has been split out into its own package, wtforms-appengine: ' | ||
'https://github.com/wtforms/wtforms-appengine ', | ||
DeprecationWarning | ||
"'wtforms.ext.appengine' will be removed in WTForms 3.0. Use" | ||
" wtforms-appengine instead." | ||
" https://github.com/wtforms/wtforms-appengine", | ||
DeprecationWarning, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
import warnings | ||
|
||
from wtforms.ext.csrf.form import SecureForm | ||
|
||
warnings.warn( | ||
"'wtforms.ext.csrf' will be removed in WTForms 3.0. It is built-in" | ||
" to WTForms core now.", | ||
DeprecationWarning, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import warnings | ||
|
||
warnings.warn( | ||
"'wtforms.ext.dateutil' will be removed in WTForms 3.0.", | ||
DeprecationWarning, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
import warnings | ||
|
||
warnings.warn( | ||
'wtforms.ext.django is deprecated, and will be removed in WTForms 3.0. ' | ||
'The package has been split out into its own package, wtforms-django: ' | ||
'https://github.com/wtforms/wtforms-django', | ||
DeprecationWarning | ||
"'wtforms.ext.django' will be removed in WTForms 3.0. Use" | ||
" wtforms-django instead." | ||
" https://github.com/wtforms/wtforms-django", | ||
DeprecationWarning, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import warnings | ||
|
||
warnings.warn( | ||
"'wtforms.ext.i18n' will be removed in WTForms 3.0. It is built-in" | ||
" to WTForms core now.", | ||
DeprecationWarning, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
import warnings | ||
|
||
warnings.warn( | ||
'wtforms.ext.sqlalchemy is deprecated, and will be removed in WTForms 3.0. ' | ||
'The package has been extracted to a separate package wtforms_sqlalchemy: ' | ||
'https://github.com/wtforms/wtforms-sqlalchemy .\n' | ||
'Or alternately, check out the WTForms-Alchemy package which provides declarative mapping and more: ' | ||
'https://github.com/kvesteri/wtforms-alchemy', | ||
DeprecationWarning | ||
"'wtforms.ext.sqlalchemy' will be removed in WTForms 3.0. Use" | ||
" WTForms-SQLAlchemy https://github.com/wtforms/wtforms-sqlalchemy" | ||
" or WTForms-Alchemy https://github.com/kvesteri/wtforms-alchemy" | ||
" instead.", | ||
DeprecationWarning, | ||
) |