diff options
Diffstat (limited to 'python/WebHelpers')
-rw-r--r-- | python/WebHelpers/README | 22 | ||||
-rw-r--r-- | python/WebHelpers/WebHelpers.SlackBuild | 6 |
2 files changed, 13 insertions, 15 deletions
diff --git a/python/WebHelpers/README b/python/WebHelpers/README index c78d8aa0c4cf2..79cc2a8b40eda 100644 --- a/python/WebHelpers/README +++ b/python/WebHelpers/README @@ -1,16 +1,16 @@ -WebHelpers is a wide variety of utility functions for web applications and other -applications. +WebHelpers is a wide variety of utility functions for web applications +and other applications. It can be used with any web framework. -WebHelpers includes the widely-used HTML tag builder with smart escaping and -convenience functions for common tags such as form fields. -The common builder ensures the tags are syntactically correct and prevent -cross-site scripting attacks and double-escaping. +WebHelpers includes the widely-used HTML tag builder with smart escaping +and convenience functions for common tags such as form fields. +The common builder ensures the tags are syntactically correct and +prevent cross-site scripting attacks and double-escaping. -Other helpers perform text processing, split a large number of records into -pages, generate Atom/RSS feeds with geographical (GIS) data, handle MIME types, -calculate numerica statistics, and more. +Other helpers perform text processing, split a large number of records +into pages, generate Atom/RSS feeds with geographical (GIS) data, handle +MIME types, calculate numerica statistics, and more. There are also high-level container types, including a value counter and accumulator. -There are lists of country names, country codes, US states, Canadian provinces, -and UK counties. +There are lists of country names, country codes, US states, Canadian +provinces, and UK counties. diff --git a/python/WebHelpers/WebHelpers.SlackBuild b/python/WebHelpers/WebHelpers.SlackBuild index fd184a846e5ad..b3bad83fad89a 100644 --- a/python/WebHelpers/WebHelpers.SlackBuild +++ b/python/WebHelpers/WebHelpers.SlackBuild @@ -53,10 +53,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -python setup.py install --root=$PKG -if $(python3 -c 'import sys' 2>/dev/null); then - python3 setup.py install --root=$PKG -fi +python2 setup.py install --root=$PKG +python3 setup.py install --root=$PKG mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a README* MANIFEST.in $PKG/usr/doc/$PRGNAM-$VERSION |