2008-04-27T01:00:44 *** greg-g has quit IRC 2008-04-27T07:48:08 *** djfiander has joined #OpenILS-Evergreen 2008-04-27T09:52:29 bah! 2008-04-27T09:57:57 *** stompro has joined #openils-evergreen 2008-04-27T10:23:10 *** phasefx has quit IRC 2008-04-27T10:23:42 *** eeevil has quit IRC 2008-04-27T11:13:01 *** greg-g has joined #openils-evergreen 2008-04-27T11:30:25 *** djfiander has quit IRC 2008-04-27T11:57:41 *** stompro has quit IRC 2008-04-27T12:26:58 *** phase_bb has quit IRC 2008-04-27T12:27:13 *** phase_bb has joined #openils-evergreen 2008-04-27T12:34:43 *** rsinger has quit IRC 2008-04-27T12:45:54 *** lisppaste6 has quit IRC 2008-04-27T12:55:27 *** lisppaste6 has joined #openils-evergreen 2008-04-27T13:06:34 *** dbs has joined #openils-evergreen 2008-04-27T13:35:59 *** djfiander has joined #OpenILS-Evergreen 2008-04-27T13:37:09 GnoTime rocks 2008-04-27T14:13:11 *** djfiander has quit IRC 2008-04-27T14:57:01 dbs pasted "xulrunner exceptions after upgrading to hardy" at http://paste.lisp.org/display/59806 2008-04-27T16:30:36 *** jeff has quit IRC 2008-04-27T16:47:19 dbs annotated #59806 with "And confirming the problem on a different server..." at http://paste.lisp.org/display/59806#1 2008-04-27T16:50:32 hardy has 1.8.1.13, gutsy has 1.8.1.4 (and gutsy worked fine). grr. 2008-04-27T18:08:31 *** dbs has quit IRC 2008-04-27T19:13:25 *** djfiander has joined #OpenILS-Evergreen 2008-04-27T19:52:52 berick: the only thing I can see that you're doing differently is creating the model, etc after the data's loaded. whatever. 2008-04-27T20:36:46 *** dbs has joined #openils-evergreen 2008-04-27T20:46:01 djfiander: for whatever reason, loading the data before creating the objects seems to be the most stable/predictable approach 2008-04-27T20:46:57 fark 2008-04-27T20:47:19 changing from ItemFileWriteStore to ItemFileReadStore means that the store is non-null 2008-04-27T20:47:32 still doesn't work, but at least the store is valid. 2008-04-27T20:49:11 right now, I don't see grids, I see beige rectangles *sigh* 2008-04-27T20:50:47 berick: I've completely rewritten my code to look like the Fund example you sent me. 2008-04-27T20:51:09 it's certainly a lot cleaner, but it's NFG. 2008-04-27T20:51:16 hm, ok 2008-04-27T20:52:10 djfiander: mind posting it somewhere? 2008-04-27T20:52:20 sure 2008-04-27T20:52:27 hang on... checking something first 2008-04-27T20:55:20 yeesh. I guess I'll stick with poking at pgsql 8.3 and hardy xulrunner compatibility - you guys make dojo sound magical 2008-04-27T20:55:30 ok. I've got a 'get' function set in my view, and it's not being called. 2008-04-27T20:56:04 dbs: I'd say, "fragile". this is not bulletproof code by any stretch. 2008-04-27T20:56:46 * dbs sends djfiander and berick some of his 18-year-old Glenmorangie 2008-04-27T20:57:12 djfiander: may want to start out without any 'get' functions. i have noticed that a faulty 'get' function will cause a grid to fail rendering with no errors 2008-04-27T20:57:16 dbs: thanks ;) 2008-04-27T20:57:34 "Handcrafted by the sixteen men of Tain" 2008-04-27T20:57:35 but it it's not being called at all.... 2008-04-27T20:58:10 s/it/if/ 2008-04-27T20:59:24 berick: 'get' seems to be part of the problem. I'm now getting a different error message 2008-04-27T20:59:40 of course, with the broken get I was getting no error message, but that's just to make it more challenging 2008-04-27T21:04:42 this is rich 2008-04-27T21:05:19 in my call to picklist.createStore(), I successfully use the 'pickListGrid' variable twice, and on the third line, the variable doesn't exist. 2008-04-27T21:07:15 djfiander pasted "code in view.html" at http://paste.lisp.org/display/59819 2008-04-27T21:08:14 djfiander pasted "openils.acq.Picklist.createStore" at http://paste.lisp.org/display/59820 2008-04-27T21:09:19 djfiander: your layout object needs to be wrapped in an array 2008-04-27T21:09:59 I see that in your code. 2008-04-27T21:10:41 oh! ok. I see what's going on. 2008-04-27T21:10:42 or, rather, that's what I've seen in examples ... and it works for me. so ... "need" may be strong 2008-04-27T21:10:47 duh 2008-04-27T21:11:23 yes, I need that. the dojo site codes the view as a hash, and then creates the layout separately by stuffing the view into an array 2008-04-27T21:11:36 right 2008-04-27T21:11:43 you can have multiple layouts in the structure 2008-04-27T21:11:47 yay! 2008-04-27T21:11:49 fuck me. 2008-04-27T21:11:50 and switch them out 2008-04-27T21:12:13 so that did it, then? 2008-04-27T21:12:21 for the new incarnation of the code 2008-04-27T21:12:27 :) 2008-04-27T21:12:34 well, many eyes and all that 2008-04-27T21:12:55 yesterday's code was screwed by the fact that itemfilewritestore is broken (apparently) and the asynchronous data loading 2008-04-27T21:13:16 now if you can tel me how to get a tooltipdialog to resize itself on dynamic content, we'll be even :) 2008-04-27T21:14:55 miker_: count the number of characters being displayed and set the width to that many em? 2008-04-27T21:15:29 dbs: heh ... it's a table ... with different widths depending of if there are already translations or not 2008-04-27T21:15:52 * dbs shuts up 2008-04-27T21:16:35 hrm... 2008-04-27T21:30:39 ok, get functions are messing me up. 2008-04-27T21:31:04 I stub out the get functions by defining fixed text 'value' fields in my layout and everything works perfectly 2008-04-27T21:31:26 I define get functions that returned fixed text strings, and those fields are fine, but the rest of the fields are hosed. 2008-04-27T21:32:59 *** dbs has quit IRC 2008-04-27T21:33:40 *** dbs has joined #openils-evergreen 2008-04-27T21:34:21 djfiander: can you paste your get function? 2008-04-27T21:35:02 madre dios! xulrunner is _very_ unhappy. 2008-04-27T21:36:08 hang on 2008-04-27T21:44:34 djfiander pasted "getJUBTitle" at http://paste.lisp.org/display/59821 2008-04-27T21:47:43 djfiander: fwiw, 'data' is the full row of data. you'll need to access a specific field on the 'data' object. e.g. data.id, data.name, etc. 2008-04-27T21:47:58 berick: yup, I know that. 2008-04-27T21:48:16 if you look closely at the paste, you will see that I return before even attempting to access the data. 2008-04-27T21:48:55 yeah, i see 2008-04-27T21:49:53 djfiander: so, when you run this code, the title column shows 'Title' for each row, but the other columns show nothing? 2008-04-27T21:50:26 nope. the Title field is blank, and the other columns show '...' (which the dojo docs say is normal) 2008-04-27T21:50:49 well, it's parts of the rendering process: http://dojotoolkit.org/book/dojo-book-0-9/docx-documentation-under-development/grid/column-options#comment-8667 2008-04-27T21:52:11 curious, what happens if you remove the alert? 2008-04-27T21:52:47 it works fine :( 2008-04-27T21:52:59 not that the alert was ever displayed... 2008-04-27T21:53:31 js2JSON(data) might have failed with no error 2008-04-27T21:56:55 yup 2008-04-27T21:58:16 djfiander: another thing to keep in mind.. the grid data store will only store strings as values, so if you have a fleshed object, say, lineitem.attributes(), the attributes() array will never make it into the grid (just an "[object Object]" string in its place). 2008-04-27T21:58:16 that is, yup, it did 2008-04-27T21:58:39 if you need to access something from that attributes() array, you will need to grab it from your in-memory (non-grid) object 2008-04-27T21:58:48 ah, that'll do it. 2008-04-27T22:08:46 sweet. 2008-04-27T22:08:54 gotta a grid of picklist items 2008-04-27T22:10:03 alright 2008-04-27T22:11:39 * berick continues to wait for dbs's scotch to arrive 2008-04-27T22:11:56 berick: can you wait a few more weeks? 2008-04-27T22:12:11 I seem to have finished this bottle :( 2008-04-27T22:12:22 hah 2008-04-27T22:12:25 I'm actually sipping on some very nice tequila. 2008-04-27T22:12:57 huh, sippin' tequila.. 2008-04-27T22:13:06 djfiander: what kind is it? 2008-04-27T22:13:36 This is called 1921. It's a 100% agave reposado (ie, aged). still just a bit fruity 2008-04-27T22:14:15 Cuervo is the crap the mexican's let out of the country while keeping the good stuff for themselves ;-) 2008-04-27T22:15:48 * berick checks out the flash distillery tour on their website 2008-04-27T22:16:27 El Jimador also used to produce really good stuff before the agave crop collapsed a few years ago. 2008-04-27T22:16:33 now they make blends mostly. 2008-04-27T22:17:41 dbs: I have no scotch, but I have a very nice bourbon, and for some reason, I've got a 26-er of CC :( 2008-04-27T22:24:08 ok, that's it for today. see y'all tomorrow 2008-04-27T22:24:11 *** djfiander has quit IRC 2008-04-27T22:30:32 UGH. this looks like a bad thing to have in a javascript console: Error: can't decode principals (failure code 8007000e) 2008-04-27T22:33:17 hmm - apparently phasefx saw the same thing back in march and thought it was harmless. ok. 2008-04-27T22:48:37 *** stompro has joined #openils-evergreen 2008-04-27T22:52:08 *** jeff has joined #openils-evergreen 2008-04-27T22:56:14 *** stompro has quit IRC