Re: ZCatalog - limited Results
Jan Leonhardt <[email protected]>
| Newsgroups | gmane.comp.web.zope.german |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Andreas Jung schrieb:
>> 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
>
> Nein, eine solche Grenze gibt es nicht. Ehrlich gesagt verstehe ich
> auch dreimaligem Lesen des Codes und Postings nicht was Du genau vorhast.
>
Es soll beim Anlegen einer Workflow-Instanz eine laufende Nummer an die
Instanz gehangen werden. Momentan renne ich also alle Instanzen durch um
die größte laufende Nummer zu finden.
Das Problem hat sich eben gelöst (Nachdem ich das Feld reindexierte ;)
- --
Mit freundlichen Grüßen / With kind regards
Jan Leonhardt
IT Entwickler
IT Konsultat
Administration
Softwareentwicklung
WWW: http://cyberdesigner.net
Mail: mailto:[email protected]
Fon: +49 172 137 1740
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkrlnagACgkQKGMAkLB23Lg/1QCeKXFUp5gGlViDTGozLUXwsr5q
cQIAnAgr9u3dsO0a9lnhXEtT8T1exsEu
=+6Zq
-----END PGP SIGNATURE-----
_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope