Re: ZCatalog - limited Results

Andreas Jung <[email protected]>
Newsgroups gmane.comp.web.zope.german
Organization ZOPYX Ltd & Co. KG
Message-ID <[email protected]>
Am 26.10.09 12:46, schrieb Jan Leonhardt:
> Hallo,
>
> ich benutze für einen activity-based-workflow den Catalog um eine
> laufende Nummer zu generieren.
>
> Ich habe also einen Fieldindex für das zugehörige Properties Feld
> hinzugefügt und iteriere dann wie folgt darüber:
>
> instances = wf.Catalog(meta_type='Instance', sort_order='reverse',
> sort_on='lfdnr')
> max_lfdnr = 1
> for instance_old in instances:
>   old_lfdnr = int(wf.getInstance(instance_old.id).getProperty('lfdnr'))
>   if old_lfdnr and (old_lfdnr >= max_lfdnr):
>     max_lfdnr = old_lfdnr+1
> return max_lfdnr
>
>
> Inzwischen sind >50 Nummern vergeben wurden. Aus irgendeinem Grund sind
> jetzt exakt 50 Results in meinem Catalog?! Wird der von irgend etwas
> limitiert?

Nein, eine solche Grenze gibt es nicht. Ehrlich gesagt verstehe ich
auch dreimaligem Lesen des Codes und Postings nicht was Du genau vorhast.

> Ich habe auf dem selben Server noch ein nahezu identisches Projekt,
> welches auch mit laufenden Nummern arbeitet. Da sind es 146 Results. und
> da bekomme ich mit oben gepostetem Code auch die nächste laufende Nummer
> heraus.
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.