Officially remove FormEncode dependency

This commit is contained in:
Lance Edgar 2018-02-11 23:33:09 -06:00
parent 33e345f4ae
commit f636b98cb3
2 changed files with 0 additions and 17 deletions

View file

@ -64,12 +64,6 @@ requires = [
# #
# package # low high # package # low high
# For now, let's restrict FormEncode to 1.2 since the 1.3 release
# introduces some deprecation warnings. Once we're running 1.2 everywhere
# in production, we can start looking at adding 1.3 support.
# TODO: Remove this restriction.
'FormEncode<=1.2.99', # 1.2.4 1.2.6
# TODO: Pyramid 1.9 looks like it breaks us..? playing it safe for now.. # TODO: Pyramid 1.9 looks like it breaks us..? playing it safe for now..
'pyramid<1.9', # 1.3b2 1.8.3 'pyramid<1.9', # 1.3b2 1.8.3

View file

@ -36,7 +36,6 @@ from rattail.gpc import GPC
from rattail.util import pretty_quantity, prettify from rattail.util import pretty_quantity, prettify
import colander import colander
import formencode as fe
from webhelpers2.html import tags from webhelpers2.html import tags
from tailbone import forms, grids from tailbone import forms, grids
@ -398,22 +397,12 @@ class ReceivingForm(colander.MappingSchema):
# 'mispick', # 'mispick',
])) ]))
# product = forms.validators.ValidProduct()
# upc = forms.validators.ValidGPC()
# brand_name = fe.validators.String()
# description = fe.validators.String()
# size = fe.validators.String()
# case_quantity = fe.validators.Number()
cases = colander.SchemaNode(colander.Decimal(), missing=colander.null) cases = colander.SchemaNode(colander.Decimal(), missing=colander.null)
units = colander.SchemaNode(colander.Decimal(), missing=colander.null) units = colander.SchemaNode(colander.Decimal(), missing=colander.null)
expiration_date = colander.SchemaNode(colander.Date(), missing=colander.null) expiration_date = colander.SchemaNode(colander.Date(), missing=colander.null)
# trash = fe.validators.Bool()
# ordered_product = forms.validators.ValidProduct()
def includeme(config): def includeme(config):
ReceivingBatchView.defaults(config) ReceivingBatchView.defaults(config)