Re: [Zope-CMF] howto avoid loading of datetime-objects when accessing a portal_catalog brain

2007-10-19 Thread Dieter Maurer
Joachim Schmitz wrote at 2007-10-19 10:03 +0200:
If one iterates over the result of a portal_catalog search, for each 
brain there are about 8 datetime objects loaded (one for each 
dateindex), which quickly fills the memory.
how can I access only the brain id

You can get the brain id via brain.getRID().

While it would not be necessary in principle (the rid is not part of
the meta data tuple) I am not sure whether access to the rid
nevertheless loads the tuple (and thereby your DateTime objects).

But you can access the rids avoiding the brains altogether:

  The usual catalog result is a Products.ZCatalog.Lazy.LazyMap
  instance. Its _seq attribute (obviously private) contains
  the sequences of rids corresponding to the query hits.



-- 
Dieter
___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


Re: [Zope-CMF] howto avoid loading of datetime-objects when accessing a portal_catalog brain

2007-10-19 Thread Joachim Schmitz

Andreas Jung schrieb:



--On 19. Oktober 2007 10:03:43 +0200 Joachim Schmitz [EMAIL PROTECTED] 
wrote:



Hi,

If one iterates over the result of a portal_catalog search, for each
brain there are about 8 datetime objects loaded (one for each dateindex),
which quickly fills the memory.
how can I access only the brain id, or postpone the loading of the
datetime objects until I really access them ?



This would work only if the DateTime objects would be persistent 
subobjects.

Do you mean this would only happen ?

or the loading of datetime objects cannot be avoided ?



--

Gruß Joachim

___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


[Zope-CMF] howto avoid loading of datetime-objects when accessing a portal_catalog brain

2007-10-19 Thread Joachim Schmitz

Hi,

If one iterates over the result of a portal_catalog search, for each 
brain there are about 8 datetime objects loaded (one for each 
dateindex), which quickly fills the memory.
how can I access only the brain id, or postpone the loading of the 
datetime objects until I really access them ?


--
Gruß Joachim
___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


[Zope-CMF] CMF Collector: Open Issues

2007-10-19 Thread tseaver
The following supporters have open issues assigned to them in this collector
(http://www.zope.org/Collectors/CMF).

Assigned and Open


  tseaver

- CMF needs View-based TypeInformation,
  [Accepted] http://www.zope.org/Collectors/CMF/437

- CachingPolicyManager awareness of File and Image does not work,
  [Accepted] http://www.zope.org/Collectors/CMF/496


  yuppie

- purge_old in runAllImportSteps not working,
  [Accepted] http://www.zope.org/Collectors/CMF/455


Pending / Deferred Issues

- workflow notify success should be after reindex,
  [Deferred] http://www.zope.org/Collectors/CMF/389

- Discussions broken,
  [Pending] http://www.zope.org/Collectors/CMF/493

- components handler: export of placeless utilities is broken,
  [Pending] http://www.zope.org/Collectors/CMF/498

- CatalogTool._listAllowedRolesAndUsers() returns wrong result ,
  [Pending] http://www.zope.org/Collectors/CMF/502

- Spinning browser when running a snapshot,
  [Pending] http://www.zope.org/Collectors/CMF/503

- GenericSetup import onto existing skins fails when adding new layers 
relative to old ones,
  [Pending] http://www.zope.org/Collectors/CMF/505

- DirectoryView always registers subdirectories in development mode,
  [Pending] http://www.zope.org/Collectors/CMF/506


Pending / Deferred Features

- CMFTopic Does Not Cache,
  [Deferred] http://www.zope.org/Collectors/CMF/295

- iCal support for CMFCalendar,
  [Pending] http://www.zope.org/Collectors/CMF/487

- components handler: support for sub-sites,
  [Pending] http://www.zope.org/Collectors/CMF/500

- components handler: support removing items,
  [Pending] http://www.zope.org/Collectors/CMF/501

- components handler: make 'interface' attribute optional,
  [Pending] http://www.zope.org/Collectors/CMF/499



___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


Re: [Zope-CMF] howto avoid loading of datetime-objects when accessing a portal_catalog brain

2007-10-19 Thread Andreas Jung



--On 19. Oktober 2007 10:03:43 +0200 Joachim Schmitz [EMAIL PROTECTED] 
wrote:



Hi,

If one iterates over the result of a portal_catalog search, for each
brain there are about 8 datetime objects loaded (one for each dateindex),
which quickly fills the memory.
how can I access only the brain id, or postpone the loading of the
datetime objects until I really access them ?



This would work only if the DateTime objects would be persistent subobjects.

-aj

pgplg8TuHoCio.pgp
Description: PGP signature
___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


[Zope-CMF] CMF Tests: 11 OK

2007-10-19 Thread CMF Tests Summarizer
Summary of messages to the cmf-tests list.
Period Thu Oct 18 12:00:00 2007 UTC to Fri Oct 19 12:00:00 2007 UTC.
There were 11 messages: 11 from CMF Unit Tests.


Tests passed OK
---

Subject: OK : CMF-1.5 Zope-2.7 Python-2.3.6 : Linux
From: CMF Unit Tests
Date: Thu Oct 18 21:27:23 EDT 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-October/006678.html

Subject: OK : CMF-1.5 Zope-2.8 Python-2.3.6 : Linux
From: CMF Unit Tests
Date: Thu Oct 18 21:28:53 EDT 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-October/006679.html

Subject: OK : CMF-1.5 Zope-2.9 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Thu Oct 18 21:30:23 EDT 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-October/006680.html

Subject: OK : CMF-1.6 Zope-2.8 Python-2.3.6 : Linux
From: CMF Unit Tests
Date: Thu Oct 18 21:31:53 EDT 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-October/006681.html

Subject: OK : CMF-1.6 Zope-2.9 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Thu Oct 18 21:33:23 EDT 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-October/006682.html

Subject: OK : CMF-2.0 Zope-2.9 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Thu Oct 18 21:34:53 EDT 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-October/006683.html

Subject: OK : CMF-2.0 Zope-2.10 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Thu Oct 18 21:36:23 EDT 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-October/006684.html

Subject: OK : CMF-2.1 Zope-2.10 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Thu Oct 18 21:37:54 EDT 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-October/006685.html

Subject: OK : CMF-2.1 Zope-trunk Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Thu Oct 18 21:39:24 EDT 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-October/006686.html

Subject: OK : CMF-trunk Zope-2.10 Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Thu Oct 18 21:40:54 EDT 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-October/006687.html

Subject: OK : CMF-trunk Zope-trunk Python-2.4.4 : Linux
From: CMF Unit Tests
Date: Thu Oct 18 21:42:24 EDT 2007
URL: http://mail.zope.org/pipermail/cmf-tests/2007-October/006688.html

___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests