View | Details | Raw Unified | Return to bug 191059 | Differences between
and this patch

Collapse All | Expand All

(-)b/www/Makefile (+1 lines)
Lines 1505-1510 Link Here
1505
    SUBDIR += py-django-classy-tags
1505
    SUBDIR += py-django-classy-tags
1506
    SUBDIR += py-django-cms
1506
    SUBDIR += py-django-cms
1507
    SUBDIR += py-django-crispy-forms
1507
    SUBDIR += py-django-crispy-forms
1508
    SUBDIR += py-django-datetime-widget
1508
    SUBDIR += py-django-debug-toolbar
1509
    SUBDIR += py-django-debug-toolbar
1509
    SUBDIR += py-django-devel
1510
    SUBDIR += py-django-devel
1510
    SUBDIR += py-django-dpaste
1511
    SUBDIR += py-django-dpaste
(-)b/www/py-django-datetime-widget/Makefile (+21 lines)
Added Link Here
1
# Created by: Melvyn Sopacua <melvyn@magemana.nl>
2
# $FreeBSD$
3
4
PORTNAME=	django-datetime-widget
5
PORTVERSION=	0.6
6
CATEGORIES=	www
7
MASTER_SITES=	CHEESESHOP \
8
		http://magemana.nl/ports/dist/
9
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
10
11
MAINTAINER=	melvyn@magemana.nl
12
COMMENT=	Django-datetime-widget is a simple and clean widget for \
13
		DateTimeField.
14
15
RUN_DEPENDS=	${PYTHON_SITELIBDIR}/django/bin/django-admin.py:${PORTSDIR}/www/py-django
16
17
USE_PYTHON=	yes
18
USE_PYDISTUTILS=	yes
19
PYDISTUTILS_AUTOPLIST=	yes
20
21
.include <bsd.port.mk>
(-)b/www/py-django-datetime-widget/distinfo (+2 lines)
Added Link Here
1
SHA256 (django-datetime-widget-0.6.tar.gz) = 361aefed56793d11553ae07975814a1b7df87e21a55c9650d2762571981171b2
2
SIZE (django-datetime-widget-0.6.tar.gz) = 34292
(-)b/www/py-django-datetime-widget/files/patch-datetimewidget__widgets.py (+20 lines)
Added Link Here
1
diff --git a/datetimewidget/widgets.py b/datetimewidget/widgets.py
2
index c62930a..3675f0e 100644
3
--- datetimewidget/widgets.py.orig
4
+++ datetimewidget/widgets.py
5
@@ -131,7 +131,7 @@ class DateTimeWidget(MultiWidget):
6
         ]
7
         try:
8
             D = to_current_timezone(datetime.strptime(date_time[0], self.format))
9
-        except (ValueError, TypeError), e:
10
+        except (ValueError, TypeError) as e :
11
             return ''
12
         else:
13
             return D
14
@@ -181,4 +181,4 @@ class DateTimeWidget(MultiWidget):
15
             },
16
             js=js
17
         )
18
-    media = property(_media)
19
\ No newline at end of file
20
+    media = property(_media)
(-)b/www/py-django-datetime-widget/pkg-descr (+4 lines)
Added Link Here
1
Django-datetime-widget is a simple and clean widget for DateTimeField.
2
It's based on bootstrap-datepicker by Stefan Petre.
3
4
WWW: https://pypi.python.org/pypi/django-datetime-widget
(-)b/www/py-django-datetime-widget/pkg-message (+10 lines)
Added Link Here
1
To use the widget, follow the Basic Configuration at:
2
3
https://github.com/asaglimbeni/django-datetime-widget
4
5
For step 2, you can download bootstrap and host it yourself or insert
6
the following lines in your pages:
7
8
	<link rel="StyleSheet" src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/css/bootstrap.min.css" type="text/css />
9
	<script src="//cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.3.2/js/bootstrap.min.js" type="text/javascript></script>
10

Return to bug 191059