[Zope] property:date
Giuseppe Bonelli
g.bonelli@pn.itnet.it
Tue, 14 Aug 2001 22:12:24 +0200
Hi all,
as a complete newby to Zope and Phyton (but with some background in =
(web) programming (-;) I spent the last week developing (to my great =
satisfaction and (Z)hope) my first Zope apps; it is up&running but I got =
stucked in a problem, that I am sure is a trivial one for you out there. =
I went through the docs (Zope, Phyton, FAQs, ZopeBook, HowTos, comments =
in phyton sources, you name it !!), I learned a lot, but the problem is =
still a problem (at least for me).
Here is my Zope.problem.present:
I want to use a date property to store a user entered date into a ZClass =
property; the date must be entered in "%d/%m/%&y" format (I am from =
Europe (-;)).=20
Simple, isn't ?
The idea was:
1. go to the management GUI and add a my_date property to the ZClass
2. use a format string as the value for the property
3. use name=3D"mydate:date" in the relevant form
4. let Zope do the conversion ...
The reality is:
I cannot even accomplish step 2!=20
Whatever I enter in the value field for the property for the ZClass =
(apart from an actual date which is readly converted in yyyy/mm/dd =
format), Zope complains about an 'Invalid Date-Time String'.
For the time beeing, I can live with a string property and maybe some =
client-side Jscript, but I know it must be brain-dead simple...
... so, please, any pointer in the right direction would be _deeply_ =
appreciated.
Thanks in advance,
--peppo
PS: I am really impressed about Zope/Phyton (or Phyton/Zope ...?) =20