FreeBSD Bugzilla – Attachment 144011 Details for
Bug 191059
[New port]: www/py-django-datetime-widget
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Updated port with python 3 fix
add-py-django-widget.patch (text/plain), 3.26 KB, created by
Melvyn Sopacua
on 2014-06-22 00:08:07 UTC
(
hide
)
Description:
Updated port with python 3 fix
Filename:
MIME Type:
Creator:
Melvyn Sopacua
Created:
2014-06-22 00:08:07 UTC
Size:
3.26 KB
patch
obsolete
>diff -r bdd58826c6b7 -r 362fd52780f5 www/Makefile >--- a/www/Makefile Sun Jun 15 13:12:17 2014 +0200 >+++ b/www/Makefile Sun Jun 15 13:15:04 2014 +0200 >@@ -1505,6 +1505,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 >diff -r 191890a9b40f www/py-django-datetime-widget/Makefile >--- /dev/null Thu Jan 01 00:00:00 1970 +0000 >+++ b/www/py-django-datetime-widget/Makefile Sun Jun 22 01:57:21 2014 +0200 >@@ -0,0 +1,22 @@ >+# Created by: Melvyn Sopacua <melvyn@magemana.nl> >+# $FreeBSD$ >+ >+PORTNAME= django-datetime-widget >+PORTVERSION= 0.6 >+CATEGORIES= www >+MASTER_SITES= CHEESESHOP \ >+ http://magemana.nl/ports/dist/ >+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >+ >+MAINTAINER= melvyn@magemana.nl >+COMMENT= Django-datetime-widget is a simple and clean widget for \ >+ DateTimeField. >+ >+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/django/bin/django-admin.py:${PORTSDIR}/www/py-django \ >+ bootstrap2>=2.3.2:${PORTSDIR}/www/bootstrap2 >+ >+USE_PYTHON= yes >+USE_PYDISTUTILS= yes >+PYDISTUTILS_AUTOPLIST= yes >+ >+.include <bsd.port.mk> >diff -r 191890a9b40f www/py-django-datetime-widget/distinfo >--- /dev/null Thu Jan 01 00:00:00 1970 +0000 >+++ b/www/py-django-datetime-widget/distinfo Sun Jun 22 01:57:21 2014 +0200 >@@ -0,0 +1,2 @@ >+SHA256 (django-datetime-widget-0.6.tar.gz) = 361aefed56793d11553ae07975814a1b7df87e21a55c9650d2762571981171b2 >+SIZE (django-datetime-widget-0.6.tar.gz) = 34292 >diff -r 191890a9b40f www/py-django-datetime-widget/files/patch-datetimewidget__widgets.py >--- /dev/null Thu Jan 01 00:00:00 1970 +0000 >+++ b/www/py-django-datetime-widget/files/patch-datetimewidget__widgets.py Sun Jun 22 01:57:21 2014 +0200 >@@ -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 -r 191890a9b40f www/py-django-datetime-widget/pkg-descr >--- /dev/null Thu Jan 01 00:00:00 1970 +0000 >+++ b/www/py-django-datetime-widget/pkg-descr Sun Jun 22 01:57:21 2014 +0200 >@@ -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 -r 191890a9b40f www/py-django-datetime-widget/pkg-message >--- /dev/null Thu Jan 01 00:00:00 1970 +0000 >+++ b/www/py-django-datetime-widget/pkg-message Sun Jun 22 01:57:21 2014 +0200 >@@ -0,0 +1,6 @@ >+To use the widget, follow the Basic Configuration at: >+ >+https://github.com/asaglimbeni/django-datetime-widget >+ >+You can skip step 2 as the port installed www/bootstrap2. >+Instead, make an alias in your webserver for bootstrap and refer to it.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
m.r.sopacua
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 191059
:
143803
|
144011
|
144458