Hopbot log for 2007-07-26 - Helma IRC channel: #helma on irc.freenode.net

2007-07-26:

[18:20] <rjb> hmm i see overcaching
[18:21] <rjb> my helma app doesn't see additions to its database table made outside of helma
[18:30] <jsp> yeah, I think that's correct
[18:31] <jsp> although--hm--I wouldn't expect that new items were not found
[18:31] <rjb> i guess it will eventually rotate the cache and catch up, right?
[18:31] <jsp> nor was that my experience when I played with the tutorial addressbook app
[18:32] <rjb> let me stress that the new items were not added via helma
[18:32] <jsp> yeah, I gotcha. I added some with the h2 console and had them show up right away
[18:33] <rjb> that might depend on how you fetch them
[18:33] <jsp> indeed.
[18:33] <jsp> how are you doing it?
[18:34] <jsp> there are hopobject functions to invalidate the cache. I have to wait for firefox to come back after some java applet crash, though
[18:37] <jsp> you can do 'flush' from the manage app to dump the whole cache
[18:38] <rjb> yeah i know
[18:39] <rjb> i do root.get(k) in a loop
[18:39] <rjb> for k=0,1,2,...
[18:40] <rjb> type.properties says:
[18:40] <rjb> _children.accessname = id
[18:41] <rjb> _children.order = id desc
[18:41] <rjb> id is an auto_increment primary key in my mysql table
[18:41] <rjb> so the order should be right
[18:44] <rjb> hmm
[18:44] <jsp> and what happens if you do root.get('5') where 5 is the autoincrement id of the new row?
[18:44] <rjb> yes it's returned
[18:45] <jsp> but it's not in root.get(#)
[18:45] <jsp> ?
[18:45] <rjb> yep
[18:45] <rjb> meaning no it's not
[18:47] <jsp> looks like HopObject.update is relevant
[18:47] <jsp> you'd need to have set _children.updateable = true
[18:48] <rjb> oh i need to look up in the docs what that means
[18:48] <jsp> http://helma.zumbrunn.net/reference/core/HopObject.html#update
[18:49] <rjb> thx
[18:52] <rjb> the _children.updateable = true belongs in type.properties, right?
[18:53] <jsp> of root, yes
[18:55] <rjb> i can't see the updateable property documented anywhere
[18:55] <rjb> oh well
[18:56] <jsp> neither are mountpoint() or object() (I'm still not sure what the latter does). There are serious shortcomings in the type.properties documentation
[18:56] <rjb> but it does work
[18:56] <jsp> good :-)
[18:56] <rjb> thx, good shot
[18:56] <jsp> np
[18:57] <rjb> was indeed the missing link
[19:00] <rjb> pretty cool that helma acts on the edit right away
[19:01] <jsp> yeah
[19:01] <jsp> early on I kept restarting my app for various things... then progressively realized I didn't need to really ever

 

 

In the channel now:

Logs by date: