Re: DateRangeIndex

Vladislav Vorobiev <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
Hallo,

> was erwartet ein DateRangeIndex, zum Objektindizieren.
> Meine getRange() liefert momentan ein Tuple aus DateTime, also so etwas:
> (DateTime('1978/5/31'), DateTime('1978/5/31'))

Es sollten zwei DateTime Objekte sein. Genauer gesagt  definierst du
bei der Erstellung von DateRageIndex "Since field" und "Until field".

Für jedes feld solltest separat ein DateTime liefern.

z.B. für den Fall dass die Felder "since" und "until" heissen:

def since:
  return DateTime()

def unitl:
return (DateTime()+10)

Grüß
Vladislav



_______________________________________________
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.