From owner-svn-ports-head@freebsd.org Thu Mar 14 20:21:29 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 615CC152C386; Thu, 14 Mar 2019 20:21:29 +0000 (UTC) (envelope-from kai@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D4B096AD17; Thu, 14 Mar 2019 20:21:28 +0000 (UTC) (envelope-from kai@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C3E9E2779D; Thu, 14 Mar 2019 20:21:28 +0000 (UTC) (envelope-from kai@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x2EKLSJf092099; Thu, 14 Mar 2019 20:21:28 GMT (envelope-from kai@FreeBSD.org) Received: (from kai@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x2EKLSFx092095; Thu, 14 Mar 2019 20:21:28 GMT (envelope-from kai@FreeBSD.org) Message-Id: <201903142021.x2EKLSFx092095@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: kai set sender to kai@FreeBSD.org using -f From: Kai Knoblich Date: Thu, 14 Mar 2019 20:21:28 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r495732 - in head/www: . py-django-common-helpers X-SVN-Group: ports-head X-SVN-Commit-Author: kai X-SVN-Commit-Paths: in head/www: . py-django-common-helpers X-SVN-Commit-Revision: 495732 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: D4B096AD17 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.98 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; NEURAL_HAM_SHORT(-0.98)[-0.981,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Mar 2019 20:21:29 -0000 Author: kai Date: Thu Mar 14 20:21:27 2019 New Revision: 495732 URL: https://svnweb.freebsd.org/changeset/ports/495732 Log: New port: www/py-django-common-helpers py-django-common-helpers consists of the following things: - Middleware that makes sure a web-app runs either on or without "www" in the domain. - "SessionManagerBase" base class, that helps in keeping session related code object-oriented and clean. - "EmailBackend" for authenticating users based on their email, apart from username. - Custom db fields that can be used in models including a "UniqueHashField" and "RandomHashField". - Bunch of helpful functions in helper.py - "render_form_field" template tag that makes rendering form fields easy and DRY. - Couple of dry response classes: "JsonResponse" and "XMLResponse" in the django_common.http that can be used in views that give json/xml responses. WWW: https://github.com/tivix/django-common/ Approved by: miwi (mentor) Differential Revision: https://reviews.freebsd.org/D19544 Added: head/www/py-django-common-helpers/ head/www/py-django-common-helpers/Makefile (contents, props changed) head/www/py-django-common-helpers/distinfo (contents, props changed) head/www/py-django-common-helpers/pkg-descr (contents, props changed) Modified: head/www/Makefile Modified: head/www/Makefile ============================================================================== --- head/www/Makefile Thu Mar 14 20:17:31 2019 (r495731) +++ head/www/Makefile Thu Mar 14 20:21:27 2019 (r495732) @@ -1542,6 +1542,7 @@ SUBDIR += py-django-caching-app-plugins SUBDIR += py-django-classy-tags SUBDIR += py-django-cms + SUBDIR += py-django-common-helpers SUBDIR += py-django-configurations SUBDIR += py-django-constance SUBDIR += py-django-contact-form Added: head/www/py-django-common-helpers/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-django-common-helpers/Makefile Thu Mar 14 20:21:27 2019 (r495732) @@ -0,0 +1,22 @@ +# $FreeBSD$ + +PORTNAME= django-common-helpers +PORTVERSION= 0.9.2 +CATEGORIES= www python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= kai@FreeBSD.org +COMMENT= Common things every Django app needs + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django111>=1.8:www/py-django111@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist distutils + +NO_ARCH= yes + +.include Added: head/www/py-django-common-helpers/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-django-common-helpers/distinfo Thu Mar 14 20:21:27 2019 (r495732) @@ -0,0 +1,3 @@ +TIMESTAMP = 1549629858 +SHA256 (django-common-helpers-0.9.2.tar.gz) = 2d56be6fa261d829a6a224f189bf276267b9082a17d613fe5f015dd4d65c17b4 +SIZE (django-common-helpers-0.9.2.tar.gz) = 37792 Added: head/www/py-django-common-helpers/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/py-django-common-helpers/pkg-descr Thu Mar 14 20:21:27 2019 (r495732) @@ -0,0 +1,23 @@ +py-django-common-helpers consists of the following things: + +- Middleware that makes sure a web-app runs either on or without "www" in the + domain. + +- "SessionManagerBase" base class, that helps in keeping session related code + object-oriented and clean. + +- "EmailBackend" for authenticating users based on their email, apart from + username. + +- Custom db fields that can be used in models including a "UniqueHashField" + and "RandomHashField". + +- Bunch of helpful functions in helper.py + +- "render_form_field" template tag that makes rendering form fields easy + and DRY. + +- Couple of dry response classes: "JsonResponse" and "XMLResponse" in the + django_common.http that can be used in views that give json/xml responses. + +WWW: https://github.com/tivix/django-common/