diff --git a/NEWS-2.3 b/NEWS-2.3 index 405c1e14..f406824d 100644 --- a/NEWS-2.3 +++ b/NEWS-2.3 @@ -23,6 +23,8 @@ What's new in psycopg 2.3.3 - Fixed several reference leaks in less common code paths. - Fixed segfault when a large object is closed and its connection no more available. + - Added missing icon to ZPsycopgDA package, not available in Zope 2.12.9 + (ticket #30). Bug report and patch by Pumukel. What's new in psycopg 2.3.2 diff --git a/ZPsycopgDA/DA.py b/ZPsycopgDA/DA.py index d88766ef..735bc4b3 100644 --- a/ZPsycopgDA/DA.py +++ b/ZPsycopgDA/DA.py @@ -194,7 +194,7 @@ __ac_permissions__ = ( # add icons -misc_={'conn': ImageFile('Shared/DC/ZRDB/www/DBAdapterFolder_icon.gif')} +misc_={'conn': ImageFile('icons/DBAdapterFolder_icon.gif', globals())} for icon in ('table', 'view', 'stable', 'what', 'field', 'text', 'bin', 'int', 'float', 'date', 'time', 'datetime'): diff --git a/ZPsycopgDA/__init__.py b/ZPsycopgDA/__init__.py index f26d368e..118c4fe7 100644 --- a/ZPsycopgDA/__init__.py +++ b/ZPsycopgDA/__init__.py @@ -26,4 +26,4 @@ def initialize(context): permission = 'Add Z Psycopg 2 Database Connections', constructors = (DA.manage_addZPsycopgConnectionForm, DA.manage_addZPsycopgConnection), - icon = SOFTWARE_HOME + '/Shared/DC/ZRDB/www/DBAdapterFolder_icon.gif') + icon = 'icons/DBAdapterFolder_icon.gif') diff --git a/ZPsycopgDA/icons/DBAdapterFolder_icon.gif b/ZPsycopgDA/icons/DBAdapterFolder_icon.gif new file mode 100755 index 00000000..ced0ef26 Binary files /dev/null and b/ZPsycopgDA/icons/DBAdapterFolder_icon.gif differ diff --git a/psycopg/adapter_datetime.c b/psycopg/adapter_datetime.c index c1a976ed..5850be8f 100644 --- a/psycopg/adapter_datetime.c +++ b/psycopg/adapter_datetime.c @@ -401,7 +401,7 @@ psyco_Timestamp(PyObject *self, PyObject *args) int hour=0, minute=0; /* default to midnight */ double second=0.0; - if (!PyArg_ParseTuple(args, "lii|iidO", &year, &month, &day, + if (!PyArg_ParseTuple(args, "iii|iidO", &year, &month, &day, &hour, &minute, &second, &tzinfo)) return NULL;