[Zope] ZClass Date Fields

Loren Stafford lstaffor@dynalogic.com
Thu, 24 Aug 2000 07:19:18 -0700


I don't know of any bug that would produce this kind of behavior. It's more
likely a problem in communication between the add form and the method
invoked by that form. Can you show us the DTML for both? Then we can
probably see what's going wrong.

-- Loren

----- Original Message -----
From: "Craig" <craig@tool.net>
To: "Loren Stafford" <lstaffor@dynalogic.com>
Sent: August 24, 2000 07:05 AM
Subject: Re: [Zope] ZClass Date Fields


> On Wed, Aug 23, 2000 at 08:01:54PM -0700, Loren Stafford wrote:
> > I think what you need is here:
> >
> > http://www.zope.org/Members/lstaffor/zProperties
> >
>
> This is what I followed. I used a different file type than PDF for my
> example, but I named the date property the same (pub_date) and when I
create
> a new one, it gets created with pub_date set to 1970/01/01. My co-worker
> also followed your tutorial and had the same problem. Could this be a bug
in
> Zope????
>
> > -- Loren
> >
> > ----- Original Message -----
> > From: "Craig" <craig@tool.net>
> > To: <zope@zope.org>
> > Sent: August 23, 2000 07:32 PM
> > Subject: [Zope] ZClass Date Fields
> >
> >
> > > I'm sure you've heard this question before, so bare with me. I went
> > through
> > > the ZClass tutorial and got everything working right except Date
> > properties.
> > > Lets assume, for example, that my ZCLass is called CDClass. When I
create
> > a
> > > new CDClass instance (using the addForm), it always uses the default
date
> > > for Date properties instead of the ones I've entered in the form. A
> > > co-worker of mine has had the same problem but we have not yet
discovered
> > > why. Thoughts? Solutions?
> > >
>
> Later,
> --
> \ Craig "Cowboy" McDaniel
> /_\ Software Engineer
> /_/_\ Internet Tool & Die
> /_/_/_\ craig@tool.net
> /_/_/_/_\ (502) 584-8665 ext 108
>