Re: Probleme beim Anlegen von ATEvents mit Zeiten

Andreas Jung <[email protected]>
Newsgroups gmane.comp.web.zope.german
Organization ZOPYX Ltd & Co. KG
Message-ID <[email protected]>
Am 01.10.09 09:33, schrieb Lars Walther:
> Hallo Liste
>
> ich versuche gerade mittels invokeFactory in eine PloneSite eine ganze
> Reihe von Terminen per Script anzulegen:
>
> a=context.invokeFactory(type_name="Event", 
>                                              id='myDate', 
>                                              title='myTitle', 
>                                              start_date='2010/05/03', 
>                                              end_date='2010/05/03',
>                                              location='Fuerth')
>
> Das klappt soweit auch einwandfrei. Versuche ich jetzt allerdings, den
> Datumsangaben auch Zeiten mitzugeben, also:
>
> a=context.invokeFactory(type_name="Event", 
>                                              id='myDate', 
>                                              title='myTitle', 
>                                              start_date='2010/05/03
> 10:30:00', 
>                                              end_date='2010/05/03
> 16:30:00',
>                                              location='Fuerth')
>
> ...erhalte ich folgenden Fehler beim Auruf des Termins:

Du musst DateTime Instanzen übergeben, keine Datumstrings.

Andreas



_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lists.vcf (text/x-vcard, 316 B)
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd. & Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:[email protected]
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.