Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Aug 2014 22:04:08 +0000 (UTC)
From:      William Grzybowski <wg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r363767 - in head/www: . py-django-datetime-widget py-django-datetime-widget/files
Message-ID:  <201408012204.s71M48si038189@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wg
Date: Fri Aug  1 22:04:07 2014
New Revision: 363767
URL: http://svnweb.freebsd.org/changeset/ports/363767
QAT: https://qat.redports.org/buildarchive/r363767/

Log:
  www/py-django-datetime-widget
  
  Django-datetime-widget is a simple and clean widget for DateTimeField.
  It's based on bootstrap-datepicker by Stefan Petre.
  
  WWW: https://pypi.python.org/pypi/django-datetime-widget
  
  PR:		191059
  Submitted by:	melvyn@magemana.nl

Added:
  head/www/py-django-datetime-widget/
  head/www/py-django-datetime-widget/Makefile   (contents, props changed)
  head/www/py-django-datetime-widget/distinfo   (contents, props changed)
  head/www/py-django-datetime-widget/files/
  head/www/py-django-datetime-widget/files/patch-datetimewidget__widgets.py   (contents, props changed)
  head/www/py-django-datetime-widget/pkg-descr   (contents, props changed)
  head/www/py-django-datetime-widget/pkg-message   (contents, props changed)
Modified:
  head/www/Makefile

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Fri Aug  1 21:56:19 2014	(r363766)
+++ head/www/Makefile	Fri Aug  1 22:04:07 2014	(r363767)
@@ -1494,6 +1494,7 @@
     SUBDIR += py-django-classy-tags
     SUBDIR += py-django-cms
     SUBDIR += py-django-crispy-forms
+    SUBDIR += py-django-datetime-widget
     SUBDIR += py-django-debug-toolbar
     SUBDIR += py-django-devel
     SUBDIR += py-django-dpaste

Added: head/www/py-django-datetime-widget/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-django-datetime-widget/Makefile	Fri Aug  1 22:04:07 2014	(r363767)
@@ -0,0 +1,19 @@
+# Created by: Melvyn Sopacua <melvyn@magemana.nl>
+# $FreeBSD$
+
+PORTNAME=	django-datetime-widget
+PORTVERSION=	0.6
+CATEGORIES=	www python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	melvyn@magemana.nl
+COMMENT=	Simple and clean widget for DateTimeField
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}django>0:${PORTSDIR}/www/py-django
+
+USE_PYTHON=	yes
+USE_PYDISTUTILS=	yes
+PYDISTUTILS_AUTOPLIST=	yes
+
+.include <bsd.port.mk>

Added: head/www/py-django-datetime-widget/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-django-datetime-widget/distinfo	Fri Aug  1 22:04:07 2014	(r363767)
@@ -0,0 +1,2 @@
+SHA256 (django-datetime-widget-0.6.tar.gz) = 361aefed56793d11553ae07975814a1b7df87e21a55c9650d2762571981171b2
+SIZE (django-datetime-widget-0.6.tar.gz) = 34292

Added: head/www/py-django-datetime-widget/files/patch-datetimewidget__widgets.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-django-datetime-widget/files/patch-datetimewidget__widgets.py	Fri Aug  1 22:04:07 2014	(r363767)
@@ -0,0 +1,20 @@
+diff --git a/datetimewidget/widgets.py b/datetimewidget/widgets.py
+index c62930a..3675f0e 100644
+--- datetimewidget/widgets.py.orig
++++ datetimewidget/widgets.py
+@@ -131,7 +131,7 @@ class DateTimeWidget(MultiWidget):
+         ]
+         try:
+             D = to_current_timezone(datetime.strptime(date_time[0], self.format))
+-        except (ValueError, TypeError), e:
++        except (ValueError, TypeError) as e :
+             return ''
+         else:
+             return D
+@@ -181,4 +181,4 @@ class DateTimeWidget(MultiWidget):
+             },
+             js=js
+         )
+-    media = property(_media)
+\ No newline at end of file
++    media = property(_media)

Added: head/www/py-django-datetime-widget/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-django-datetime-widget/pkg-descr	Fri Aug  1 22:04:07 2014	(r363767)
@@ -0,0 +1,4 @@
+Django-datetime-widget is a simple and clean widget for DateTimeField.
+It's based on bootstrap-datepicker by Stefan Petre.
+
+WWW: https://pypi.python.org/pypi/django-datetime-widget

Added: head/www/py-django-datetime-widget/pkg-message
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-django-datetime-widget/pkg-message	Fri Aug  1 22:04:07 2014	(r363767)
@@ -0,0 +1,10 @@
+To use the widget, follow the Basic Configuration at:
+
+https://github.com/asaglimbeni/django-datetime-widget
+
+For step 2, you can download bootstrap and host it yourself or insert
+the following lines in your pages:
+
+	<link rel="StyleSheet" src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/css/bootstrap.min.css" type="text/css />
+	<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/js/bootstrap.min.js" type="text/javascript></script>
+



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201408012204.s71M48si038189>