Probleme beim Anlegen von ATEvents mit Zeiten

Lars Walther <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
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:

...
   Module Products.PageTemplates.ZRPythonExpr, line 49, in __call__
    - __traceback_info__: not here.start().Date() == here.end().Date()
   Module PythonExpr, line 1, in <expression>
AttributeError: 'NoneType' object has no attribute 'Date'
Im Catalog sehe ich auch tatsächlich, dass sowohl in start als auch  
end "None" drinsteht.
Alle Änderungen des Input-Strings brachen keinen Erfolg,
also:
start_date='2010/05/03 10:30'
start_date='2010/05/03 10:30:00 GMT+1'
start_date='2010-05-03 10:30:00'

Hat jemand von Euch einen Tipp für mich, vielen Dank.
Gruss
Lars



_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
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.