RE: [zope] sudden ZClass breakage
Only seen a couple of posts on this and the suggested fixes did NOT work. My ZClass was working fine until I added a new string type property and now my date type property seems broken. At least broken when I attempt creating an instance via my custom add form. If I add an instance via the management screen it works fine. I have gone as far as scrapping my custom form and rebuilding it. I can't see any reason why I would be getting "Invalid Date-Time String", especially when it was working fine. I'm happy post my code if that will help. Any ideas?? Jamey > -Original Message- > From: Timothy Wilson [SMTP:[EMAIL PROTECTED]] > Sent: Friday, November 10, 2000 4:46 PM > To: James Sintz > Subject: RE: [zope] sudden ZClass breakage > > On Fri, 10 Nov 2000, James Sintz wrote: > > > Did you ever figure out how to fix your ZClass problem? I have a > application > > I have been working on and and all of a sudden today I start getting the > same error message "Invalid Date-Time String" . The odd thing is that it is > only broken when I try and > > add an instance from my custom add form. When I use the management > screen to > > add the instance my goLiveDate field works just fine. > > I've never gotten an answer. I figured I would work on other things and > wait > for 2.2.3 and see if that made any difference. If it doesn't, I'll make > some > more noise or dig in deeper and try to figure out what's going on. :-( > > -Tim > > Hi everyone, I've been working away on a ZClass-based > product that will provide a searchable job board for > our Human Resources Dept. here at school. Things were > going along fine until, it seemed, out of the blue I > started getting an error message about an "Invalid > Date-Time String" and a lengthy traceback. I'm wondering > if anyone can glean anything from the traceback. Is > this one of those obvious errors that I'm just > missing? I'm really puzzled. Any advice would be > appreciated. > > -Tim ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Re: [Zope] sudden ZClass breakage
Timothy Wilson wrote: > > Hi everyone, > > I've been working away on a ZClass-based product that will provide a > searchable job board for our Human Resources Dept. here at school. Things > were going along fine until, it seemed, out of the blue I started getting an > error message about an "Invalid Date-Time String" and a lengthy > traceback. I'm wondering if anyone can glean anything from the > traceback. Is this one of those obvious errors that I'm just missing? I'm > really puzzled. Any advice would be appreciated. Here's the traceback: You're trying to change the zclass properties after creating it but you're not passing in a valid date time string and hence you're getting this error. Make sure the string you're passing in conforms to a date time format. (check ZOPE_HOME/lib/python/DateTime/DateTime.py for the supported formats), or just cast it explicitly like . I've noticed some behavior earlier today where i change all my zclass properties in a manage_changeProperties (depends on where) even ones not listed in the request. if this is your problem and you don't have date_time string set in the REQUEST you can try explicitly passing in a dummy date time string (ZopeTime or distant past), or setting it to its default value, i'd chuck this into the Collector/Tracker. i'm sure others have good solutions. > > > -Tim > > -- > Tim Wilson | Visit Sibley online: | Check out: > Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ > W. St. Paul, MN | | http://slashdot.org/ > [EMAIL PROTECTED] || http://linux.com/ > > ___ > Zope maillist - [EMAIL PROTECTED] > http://lists.zope.org/mailman/listinfo/zope > ** No cross posts or HTML encoding! ** > (Related lists - > http://lists.zope.org/mailman/listinfo/zope-announce > http://lists.zope.org/mailman/listinfo/zope-dev ) ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
[Zope] sudden ZClass breakage
Hi everyone, I've been working away on a ZClass-based product that will provide a searchable job board for our Human Resources Dept. here at school. Things were going along fine until, it seemed, out of the blue I started getting an error message about an "Invalid Date-Time String" and a lengthy traceback. I'm wondering if anyone can glean anything from the traceback. Is this one of those obvious errors that I'm just missing? I'm really puzzled. Any advice would be appreciated. Here's the traceback: -Tim -- Tim Wilson | Visit Sibley online: | Check out: Henry Sibley HS | http://www.isd197.k12.mn.us/ | http://www.zope.org/ W. St. Paul, MN | | http://slashdot.org/ [EMAIL PROTECTED] || http://linux.com/ ___ Zope maillist - [EMAIL PROTECTED] http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )