[Zope] Many Zope questions

John Goerzen jgoerzen@complete.org
03 Sep 1999 14:29:42 -0500


"Kevin Dangoor" <kid@kendermedia.com> writes:

> Zope knows what types objects are. For example, if you do:
> <dtml-var "someDateProperty + 5" fmt="%m/%d/%y">
> you will get the date five days later than the date stored in the property.
> 
> Likewise, if you do:
> <dtml-var "someDateProperty + 'foo'">
> I believe you'll get an error. (not sure what adding a string to a date
> would mean :)

OK, I am confused.  Where did you find these %m/%d/%y things?  I am
looking in Appendix A of the DTML guide and they aren't mentioned.

I am trying to do this:

<!--#var when fmt=DayOfWeek-->

(substitute any other date thing for DayOfWeek)

When I leave off fmt, the date is displayed, but it is ugly and with
an unnecessary timezone, so I want to display it as I wish.  when,
BTW, comes from a gadfly database.

When I try to view this, though, I get:

Error Type: TypeError
Error Value: not all arguments converted

What am I doing wrong?

> This is a fine question. I often look at the source code when I'm curious
> about something and can't find docs on that specific topic. The Zope source
> is very readable.

Ahh.  Well, I don't know Python.  C, Perl, C++, etc., yes, but no
Python.  I guess I ought to learn it, eh?

-- 
John Goerzen   Linux, Unix consulting & programming   jgoerzen@complete.org |
Developer, Debian GNU/Linux (Free powerful OS upgrade)       www.debian.org |
----------------------------------------------------------------------------+
The 720,515th digit of pi is 2.