ZCatalog - limited Results

Jan Leonhardt <[email protected]>
Newsgroups gmane.comp.web.zope.german
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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


Zope Version    (Zope 2.9.6-final, python 2.4.4, linux2)
Python Version  2.4.4 (#2, Oct 22 2008, 19:52:44) [GCC 4.1.2 20061115
(prerelease) (Debian 4.1.1-21)]
System Plattform linux2


Hat irgendwer einen Tipp wonach ich suchen kann?

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

iEYEARECAAYFAkrljBwACgkQKGMAkLB23LgvsgCfYwFS9a9M8CLbswaNZ9qPXQ2v
pP8An0YjJQ2Wmn+pa9/WDGO30N9knUlJ
=R85R
-----END PGP SIGNATURE-----



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