Hello, while adding persistence to collective.portlet.usertrack I
noticed that portletRefresh does work but only works one time when I
suspect it should continue to work every evt-timeout-delay milliseconds.
For reference, the usertrack.kss is:
dl.portletUsertrack:timeout {
evt-timeout-delay: 30000;
action-server: refreshPortlet;
refreshPortlet-portlethash: kssAttr("portlethash", True);
refreshPortlet-name: nodeAttr(id);
}
My environment is:
Plone 3.1.3
CMF 2.1.1
Zope (Zope 2.10.6-final, python 2.4.4, linux2)
Python 2.4.4 (#2, Mar 7 2008, 03:56:06) [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)]
PIL 1.1.6
and output from firebug looks like this:
Instantiate engine.
Engine instantiated.
[initializeRules] is called twice.
RequestManager [4] notifies server
http://localsite.com/news/aggregator//refreshPortlet, rid=1 (RQ: 1 OUT,
0 WAI).
[setStyle] action executes on single node [div].
POST
http://localsite.com/news/aggregator//refreshPortlet?kukitTimeStamp=1216823125188
(359ms)++resource++kukit... (line 6489)
<?xml version="1.0" encoding="utf-8" ?>
<kukit xmlns="
http://www.kukit.org/commands/1.1">
<commands>
<command
selector="portletwrapper-706c6f6e652e6c656674636f6c756d6e0a636f6e746578740a2f506c6f6e650a70
6f72746c65745f7469746c65"
name="replaceInnerHTML" selectorType="htmlid">
<param name="html"><![CDATA[<dl class="portlet portletUsertrack">
<dt class="portletHeader">
<span class="portletTopLeft"></span>
<span>
Active Users
</span>
<span class="portletTopRight"></span>
</dt>
<div>
<div>
</div></div><dd class="portletItem odd">
<span>
<a href="
http://localsite.com/author/zadmin">
<img src="
http://localsite.com/defaultUser.gif" alt="" width="25"
class="portraitPhoto" width
="25" style="margin: 5px;" />
<span>zadmin</span>
</a>
</span>
</dd>
<span class="portletBotomLeft"></span>
<span class="portletBottomRight"></span>
</dl>
]]></param>
<param name="withKssSetup">True</param>
</command>
</commands>
</kukit>
Request readyState = 1.
Request readyState = 2.
Request readyState = 3.
Request readyState = 4.
[setStyle] action executes on single node [div].
RequestManager [4] received result with rid [1] (RQ: 0 OUT, 0 WAI).
Parsing commands.
Number of commands : 1.
Selector type [htmlid], selector
[portletwrapper-706c6f6e652e6c656674636f6c756d6e0a636f6e746578740a2f506c6f6e650a706f72746c65745f7469746c65],
selected nodes [1].
[replaceInnerHTML] execution.
2 nodes inserted.
Setup of events for nodes subtrees [dl] starts.
Selection of HTML nodes starts.
EventRule [#81-@@1@@timeout] selected 1 nodes.
Binding of document starts.
Binding of HTML nodes starts.
1 HTML nodes bound with rules.
Timer event key ignored for actionEvent #81, selector [dl.portletUsertrack].
Setup of events for nodes subtrees [dl] finished in 110 ms.
Timer event key deleted for actionEvent #81, selector [dl.portletUsertrack].
RequestManager [4] suspends checking timeout until the next requests
(RQ: 0 OUT, 0 WAI).
Thanks for any advice.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________
Plone-Users mailing list
Plone-Users@...
https://lists.sourceforge.net/lists/listinfo/plone-users