Open Source Integrated Library System

Evergreen on IRC

#openils-evergreen Logs for Sunday, April 27th, 2008

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