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

2007-07-28:

[6:34] <aiba> If an action changes a database-mapped HOPObject, do other actions in other threads see those changes immediately, or only after the action finishes and the transaction is committed?
[6:36] <aiba> Oh, I can call response.commit() to make sure other threads see the changes immediately. Still curious about the answer though.
[6:48] <zumbrunn> what do you mean by "other threads"?
[6:49] <zumbrunn> when using app.invokeAsync() or other requests or what else?
[6:51] <zumbrunn> aiba, ping
[6:51] <aiba> other active requests
[6:51] <zumbrunn> don't hink they see the changes
[6:52] <zumbrunn> hink == think
[6:53] <aiba> yeah, i guess that would require overriding the javascript assignments, and it doesn't seem like desirable behavior anyway, so cool, thanks =).
[17:22] <jsp> where do I actually download the jala modules?
[17:23] <jsp> found it: http://dev.orf.at/trac/jala/browser/dist/jala-1.2.zip?format=raw
[18:34] <jsp> anyone with experience with file uploads?
[18:35] <zumbrunn> depends on your definition of "experience" ;-)
[18:35] <jsp> ok... basic. how do I get the file I uploaded?
[18:36] <jsp> apparently it's now stored as a tmp file... can I get access to it as a path or file object? I want to use jala.Mp3 on it
[18:37] <zumbrunn> well, when you process the upload, you get the file data as a req.data property
[18:38] <zumbrunn> just like all the other request parameters
[18:38] <jsp> ok, so <input type="file" name="yippee" /> --> req.data.yippee
[18:38] <zumbrunn> your code has to take care of writing it to a file
[18:38] <zumbrunn> exactly
[18:39] <jsp> apparently since 1.6 it's stored in a tmp file as it comes in so it doesn't have to sit in memory. I'd like to be able to access that tmp file directly.
[18:45] <zumbrunn> does Hannes' upload progress example code reveal anything like that?
[18:46] <jsp> not that I could find.
[18:46] <jsp> that it's stored in a tmp file is in the 1.6 release notes. where its stored or how to access it is ??
[18:47] <zumbrunn> don't know, would have to look at the java source
[18:48] <jsp> ok. looks like mimePart.writeToFile() does a move in that case, so it should be quick. I just won't know what I want to name it until I've read the file already, so I'll have to move it twice
[19:53] <jsp> does a HopObject know the value of _children.accessname?
[20:56] <jsp> or is there some way to learn it from HopObject.prototype?
[20:56] <jsp> since everything's dontEnum'ed, I can't poke through properties myself

 

 

In the channel now:

Logs by date: