[Chandler-dev] Reusing the same view when accessing to repository

Vera vera46 at gmail.com
Sun Sep 2 22:32:30 PDT 2007


Andi,

As I understood, creating a new repository view is a costly operation, and
reusing the same view is recommended for shorter runtimes. When accessing
previous versions information I create a new view once, and try to reuse it
by transferring it as an argument to a function. However, in certain cases
(when I am assigning older and then newer versions to the view) an error  is
raised in _refresh  method in repository. Invocation of the same method with
a new view created as the first step and not transferred from outside, does
not cause this error.
Do you know what is the reason for this error? Is it supposed to work this
way?

Currently I am trying to avoid this error, but creating a new view in the
methods it is raised. The  methods I am talking about might be seen in my
sandbox at:
http://viewcvs.osafoundation.org/sandbox/vera/Chandler-ReportPlugin/reports/History.py?rev=1723&view=markup
The method getDeletedItems causes the error if a view is transferred to it
as an argument.

Thank you in advance,
Vera.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osafoundation.org/pipermail/chandler-dev/attachments/20070903/35cbf3d1/attachment.htm


More information about the chandler-dev mailing list