aboutsummaryrefslogtreecommitdiff
path: root/www/py-django-datetime-widget
diff options
context:
space:
mode:
authorWilliam Grzybowski <wg@FreeBSD.org>2014-08-01 22:04:07 +0000
committerWilliam Grzybowski <wg@FreeBSD.org>2014-08-01 22:04:07 +0000
commit9021e479e9ec58e3feff0829690a3cec7c50be59 (patch)
treec7832dbeb743a2896fba7ad3b7301302c1bfac42 /www/py-django-datetime-widget
parent9fcd312280cb05c1881492a75ab7ef97b330e2a1 (diff)
downloadports-9021e479e9ec58e3feff0829690a3cec7c50be59.tar.gz
ports-9021e479e9ec58e3feff0829690a3cec7c50be59.zip
Notes
Diffstat (limited to 'www/py-django-datetime-widget')
-rw-r--r--www/py-django-datetime-widget/Makefile19
-rw-r--r--www/py-django-datetime-widget/distinfo2
-rw-r--r--www/py-django-datetime-widget/files/patch-datetimewidget__widgets.py20
-rw-r--r--www/py-django-datetime-widget/pkg-descr4
-rw-r--r--www/py-django-datetime-widget/pkg-message10
5 files changed, 55 insertions, 0 deletions
diff --git a/www/py-django-datetime-widget/Makefile b/www/py-django-datetime-widget/Makefile
new file mode 100644
index 000000000000..4cbfd0d023c8
--- /dev/null
+++ b/www/py-django-datetime-widget/Makefile
@@ -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>
diff --git a/www/py-django-datetime-widget/distinfo b/www/py-django-datetime-widget/distinfo
new file mode 100644
index 000000000000..121fa7ab5f4c
--- /dev/null
+++ b/www/py-django-datetime-widget/distinfo
@@ -0,0 +1,2 @@
+SHA256 (django-datetime-widget-0.6.tar.gz) = 361aefed56793d11553ae07975814a1b7df87e21a55c9650d2762571981171b2
+SIZE (django-datetime-widget-0.6.tar.gz) = 34292
diff --git a/www/py-django-datetime-widget/files/patch-datetimewidget__widgets.py b/www/py-django-datetime-widget/files/patch-datetimewidget__widgets.py
new file mode 100644
index 000000000000..2a9e70e2e7b5
--- /dev/null
+++ b/www/py-django-datetime-widget/files/patch-datetimewidget__widgets.py
@@ -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)
diff --git a/www/py-django-datetime-widget/pkg-descr b/www/py-django-datetime-widget/pkg-descr
new file mode 100644
index 000000000000..a98e8c3024e3
--- /dev/null
+++ b/www/py-django-datetime-widget/pkg-descr
@@ -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
diff --git a/www/py-django-datetime-widget/pkg-message b/www/py-django-datetime-widget/pkg-message
new file mode 100644
index 000000000000..239232ae6ea0
--- /dev/null
+++ b/www/py-django-datetime-widget/pkg-message
@@ -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>
+