[Zope-PTK] problem with pending review

Tres Seaver tseaver@digicool.com
Tue, 24 Oct 2000 09:34:21 -0400


Joachim Schmitz wrote:
> 
> Hi,
> 
> I setup a new test-portal with the Portaltoolkit from the CVS. I created as
> a user, with review rights a new document and set its status to pending.
> Then I clicked on the "pending review" item and got the following traceback
> 
> Error Type: TypeError
> Error Value: not all arguments converted
> 
> ....
> 
>   File /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_In.py, line 611, in renderwb
>     (Object: results)
>   File /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_Let.py, line 147, in render
>     (Object: objURL="portal_catalog.getpath(data_record_id_)"
>            objIcon="'%s/%s' % ( portal_url(), icon )")
>   File /usr/local/Zope-2.2.0/lib/python/DocumentTemplate/DT_Var.py, line 313, in render
>     (Object: Date)
>     (Info: ('Date', '2000-10-23 10:01:16', {'fmt': 'aCommon', '': 'Date'}))
> TypeError: (see above)
> 
> I know, what this error means, but where is the place to correct it.

Thanks for reporting this -- a patch for this problem (as well as a
similar
one) is in the PTK Tracker:

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

On a related note:  I would like some community feedback on the
handling of dates in the DublinCore.  The current implementation
always returns ISO-style strings for the date queries 
(Date/CreatedDate/EffectiveDate/ModifiedDate/ExpirationDate).


I made this choice because the DublinCore spec is mainly about
interoperability with other systems, and returning a Zope DateTime
object won't get us a good mark for "works and plays well with
others."  However, the downside is that the internals of the PTK
need to access some of the same items, but as *real* dates.  We
could play funny games with the naming (e.g., add a method,
'effectiveDate' which returned the DateTime object), but that feels
clunky to me.

Any suggestions?

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