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