Hallo Liste
eine Catalog-Abfrage mit nachfolgender Iteration über die brains
liefert bei mir eine falsche Reihenfolge. Hier die Abfrage:
comments=pcat(portal_type='PloneboardComment', path=root,
sort_on='modified', sort_order='reverse', show_inactive=True)
for i in comments:
print i.user
print i.id
print i.modified
print i.ModificationDate
print i.Date
Hier die Ausgabe:
#Das zweite Objekt ist gemäß Ausgabe "jünger" als das erste Objekt und
müsste bei sort_order="reverse" eigentlich oben stehen. Hat jemand
einen Tipp für mich?
admin
243023868
2009/06/28 19:24:00.108 GMT+2
2009-06-28 18:24:00
2009-06-28 18:24:00
admin
216091868
2009/06/28 19:24:26.895 GMT+2
2009-06-28 18:24:26
2009-06-28 18:24:26
admin
216091867
2009/06/28 19:24:15.051 GMT+2
2009-06-28 18:24:15
2009-06-28 18:24:15
admin
299075211
2009/06/28 18:55:43.768 GMT+2
2009-06-28 17:55:43
2009-06-28 17:55:43
admin
299075210
2009/06/28 18:55:34.153 GMT+2
2009-06-28 17:55:34
2009-06-28 17:55:34
Blöd dabei: 99 Abfragen laufen ordentlich und die 100. eben nicht...
Konfig: Zope 2.10.6-final, python 2.4.4, linux2, Plone 3.1.5.1
Werde gleich mal einen clear/rebuild Catalog versuchen.
Gruss
Lars
Lars Walther
novareto GmbH
Karolinenstraße 17
90763 Fürth
Tel.: 0911-7807251
Fax: 0911-7807253
mailto:
[hidden email]
http://www.novareto.de[Lars Walther.vcf]
BEGIN:VCARD
VERSION:3.0
N:Walther;Lars;;;
FN:Lars Walther
ORG:novareto GmbH;Geschäftsführung
EMAIL;type=INTERNET;type=WORK;type=pref:[hidden email]
TEL;type=WORK;type=pref:+49 911 7807251
TEL;type=CELL:+49 162 2600497
TEL;type=WORK;type=FAX:+49 911 7807253
item1.ADR;type=WORK;type=pref:;;KarolinenstraÃe 17;Fürth;Bayern;90763;Deutschland
item1.X-ABADR:de
item2.URL;type=pref:http\://www.novareto.de
item2.X-ABLabel:_$!<HomePage>!$_
X-ABUID:6EEDF06D-48B2-4BE5-A8F6-B41CEC6BBDA6\:ABPerson
END:VCARD
_______________________________________________
zope mailing list
[hidden email]
https://mail.dzug.org/mailman/listinfo/zope