Add webhelpers2 dependency, use it for most things

still using webhelpers for certain things yet, hopefully can get rid of that soon
This commit is contained in:
Lance Edgar 2017-07-06 20:13:42 -05:00
parent 5bded89466
commit 8014e60d14
32 changed files with 61 additions and 59 deletions

View file

@ -31,7 +31,7 @@ from rattail.db.auth import authenticate_user, set_user_password
import formencode as fe
from pyramid.httpexceptions import HTTPForbidden
from pyramid_simpleform import Form
from webhelpers.html import tags, literal
from webhelpers2.html import tags, literal
from tailbone import forms
from tailbone.db import Session

View file

@ -47,7 +47,7 @@ from pyramid import httpexceptions
from pyramid.renderers import render_to_response
from pyramid.response import FileResponse
from pyramid_simpleform import Form
from webhelpers.html import HTML, tags
from webhelpers2.html import HTML, tags
from tailbone import forms, newgrids as grids
from tailbone.db import Session

View file

@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-
# -*- coding: utf-8; -*-
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2016 Lance Edgar
# Copyright © 2010-2017 Lance Edgar
#
# This file is part of Rattail.
#
@ -35,7 +35,7 @@ from rattail.bouncer.config import get_profile_keys
import formalchemy
from pyramid.response import FileResponse
from webhelpers.html import literal
from webhelpers2.html import literal
from tailbone import newgrids as grids
from tailbone.db import Session

View file

@ -34,7 +34,7 @@ from rattail.util import OrderedDict
import formalchemy as fa
import formencode as fe
from webhelpers.html import tags
from webhelpers2.html import tags
from tailbone import forms
from tailbone.db import Session

View file

@ -39,7 +39,7 @@ from rattail.time import localtime
import formalchemy as fa
from pyramid import httpexceptions
from pyramid.renderers import get_renderer, render_to_response, render
from webhelpers.html import HTML, tags
from webhelpers2.html import HTML, tags
from tailbone import forms, newgrids as grids
from tailbone.views import View

View file

@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-
# -*- coding: utf-8; -*-
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2016 Lance Edgar
# Copyright © 2010-2017 Lance Edgar
#
# This file is part of Rattail.
#
@ -36,7 +36,7 @@ from rattail.time import localtime
import formalchemy
from formalchemy.helpers import text_field
from pyramid import httpexceptions
from webhelpers.html import tags, HTML
from webhelpers2.html import tags, HTML
from tailbone import forms
from tailbone.db import Session

View file

@ -30,7 +30,7 @@ import sqlalchemy as sa
import formalchemy as fa
from pyramid.httpexceptions import HTTPFound, HTTPNotFound
from webhelpers.html import HTML, tags
from webhelpers2.html import HTML, tags
from tailbone import forms
from tailbone.views import MasterView, AutocompleteView

View file

@ -44,7 +44,7 @@ import wtforms
import formalchemy as fa
from pyramid import httpexceptions
from pyramid.renderers import render_to_response
from webhelpers.html import tags
from webhelpers2.html import tags
from tailbone import forms, newgrids as grids
from tailbone.db import Session

View file

@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-
# -*- coding: utf-8; -*-
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2016 Lance Edgar
# Copyright © 2010-2017 Lance Edgar
#
# This file is part of Rattail.
#
@ -29,7 +29,7 @@ from __future__ import unicode_literals, absolute_import
from rattail.db import model
import formalchemy as fa
from webhelpers.html import HTML, tags
from webhelpers2.html import HTML, tags
from tailbone import forms
from tailbone.db import Session

View file

@ -37,7 +37,7 @@ from rattail.util import pretty_quantity
import formalchemy as fa
import formencode as fe
from webhelpers.html import tags
from webhelpers2.html import tags
from tailbone import forms
from tailbone.views.purchasing import PurchasingBatchView

View file

@ -33,7 +33,6 @@ from rattail.db.auth import has_permission, administrator_role, guest_role, auth
import formalchemy as fa
from formalchemy.fields import IntegerFieldRenderer
from webhelpers.html import HTML, tags
from tailbone import forms, newgrids as grids
from tailbone.db import Session

View file

@ -38,7 +38,7 @@ from rattail.util import pretty_hours, hours_as_decimal
import formencode as fe
from pyramid_simpleform import Form
from webhelpers.html import HTML
from webhelpers2.html import HTML
from tailbone import forms
from tailbone.db import Session

View file

@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
# -*- coding: utf-8; -*-
################################################################################
#
# Rattail -- Retail Software Framework
@ -31,7 +31,7 @@ import subprocess
from rattail_tempmon.db import model as tempmon
import formalchemy as fa
from webhelpers.html import HTML, tags
from webhelpers2.html import HTML, tags
from tailbone.db import TempmonSession
from tailbone.views.tempmon import MasterView

View file

@ -1,8 +1,8 @@
# -*- coding: utf-8 -*-
# -*- coding: utf-8; -*-
################################################################################
#
# Rattail -- Retail Software Framework
# Copyright © 2010-2016 Lance Edgar
# Copyright © 2010-2017 Lance Edgar
#
# This file is part of Rattail.
#
@ -27,7 +27,7 @@ Common stuff for tempmon views
from __future__ import unicode_literals, absolute_import
from formalchemy.fields import SelectFieldRenderer
from webhelpers.html import tags
from webhelpers2.html import tags
from tailbone import views
from tailbone.db import TempmonSession

View file

@ -36,7 +36,7 @@ from rattail.db.auth import guest_role, authenticated_role, set_user_password, h
import wtforms
import formalchemy
from formalchemy.fields import SelectFieldRenderer
from webhelpers.html import HTML, tags
from webhelpers2.html import HTML, tags
from tailbone import forms
from tailbone.db import Session