[Zope-PTK] PTK-0.9.0 search & date PB

Tres Seaver tseaver@digicool.com
Fri, 13 Oct 2000 07:48:19 -0400


Marc DANAI wrote:
> 
> Hi,
> 
>  I've installed the last version of ZopePTK but every
> operation based on search and date failed with
> following message.
> 
> Any suggestion?
> Thank's
> 
> Error Value: not all arguments converted
> 
> File
> /home/dm/garage/Zope-2.2.2-linux2-x86/lib/python/DocumentTemplate/DT_Var.py,
> line 313, in render
>     (Object: Date)
>     (Info: ('Date', '2000-10-12 17:29:19', {'fmt':
> 'Date', '': 'Date'}))

Thanks very much for reporting this bug.  The fault is mine -- when I
landed the new DublinCore metadata stuff, I neglected to test for all
the 
"old" uses of the 'Date()' method, whose return type changed from
DateTime
to string.
 
Here is a patch to the "search" DTMLMethod in the root of the portal:

  <tr>
   <td>
    <a href="&dtml.url_quote-objURL;"><img src="&dtml-objIcon;"></a>
   </td>
   <td>
    <a href="&dtml.url_quote-objURL;">&dtml-title;</a>
   </td>
   <td>
     &dtml-meta_type;
   </td>
   <td>
-   <dtml-var Date fmt="aCommon">
+   <dtml-var Date>
   </td>
  </tr>

If you could create an issue for thie problem in the PTK Tracker:

  http://www.zope.org/Products/PTK/Tracker

the fix won't get lost in the wash when I get back from vacation
next week.

Thanks again!

Tres.
-- 
===============================================================
Tres Seaver                                tseaver@digicool.com
Digital Creations     "Zope Dealers"       http://www.zope.org