fluid-work IRC Logs-2011-07-21
[07:57:29 CDT(-0500)] <lahabana> Bosmon: Hi are you here? I'd need a little help with the renderer
[08:09:54 CDT(-0500)] <colinclark> Morning, Justin_o
[08:10:38 CDT(-0500)] <Justin_o> colinclark: hello
[08:10:47 CDT(-0500)] <colinclark> So I made some progress last night
[08:10:56 CDT(-0500)] <colinclark> My FLUID-4219 branch should have all the latest
[08:11:13 CDT(-0500)] <colinclark> the upgrade to the new Rhino had caused the other JavaScript-portions of the build to break
[08:11:26 CDT(-0500)] <colinclark> wow, extra dashes
[08:11:31 CDT(-0500)] <colinclark> anyway, it was an easy fix
[08:11:44 CDT(-0500)] <colinclark> but I'm encountering a more interesting and problematic issue
[08:12:10 CDT(-0500)] <colinclark> It looks like we're only rewriting some of the theme selectors
[08:12:20 CDT(-0500)] <colinclark> So, if we have .fl-theme-rust
[08:12:53 CDT(-0500)] <colinclark> We are successfully rewriting it to .fl-theme-uio-rust in all cases except when we've got an element selector
[08:13:06 CDT(-0500)] <colinclark> so .fl-theme-rust .cat will be rewritten
[08:13:17 CDT(-0500)] <colinclark> ".fl-theme-rust a" will not
[08:13:25 CDT(-0500)] <colinclark> I'll write a unit test for this case
[08:13:33 CDT(-0500)] <colinclark> and see if I can figure out what's going on
[08:13:42 CDT(-0500)] <colinclark> but it looks like maybe our parser doesn't like it much
[08:14:03 CDT(-0500)] <colinclark> I guess, worst case, we've got a brute force technique
[08:14:17 CDT(-0500)] <colinclark> we can just take the stylesheet as a giant string and .replace() it
[08:14:21 CDT(-0500)] <colinclark> but it's not idael
[08:19:31 CDT(-0500)] <Justin_o> oh.. yah.. that's too bad..
[08:19:39 CDT(-0500)] <Justin_o> so i guess it's a bug with the parser for sure..
[08:19:49 CDT(-0500)] <Justin_o> any chance that the parser has been updated since you pulled it down
[08:20:10 CDT(-0500)] <mlam> hey colinclark , Justin_o : looks like FLUID-4219 is still on the go?
[08:20:26 CDT(-0500)] <colinclark> Nearly finished, but we're still going, mlam
[08:20:36 CDT(-0500)] <mlam> so it was an issue with the CSSParser itself?
[08:20:57 CDT(-0500)] <colinclark> welcome back
[08:21:26 CDT(-0500)] <colinclark> mlam: This is the latest... things have changed quite a bit
[08:21:27 CDT(-0500)] <colinclark> https://github.com/colinbdclark/infusion/tree/FLUID-4219
[08:21:28 CDT(-0500)] <mlam> thanks! it's good to be back, even though it's smoking hot here
[08:21:38 CDT(-0500)] <mlam> ok, taking a look
[08:22:08 CDT(-0500)] <colinclark> Justin_o: I think it's quite likely an issue with the parser, but I won't know until I write that unit test and do some debugging
[08:22:39 CDT(-0500)] <Justin_o> colinclark: okay..
[08:22:47 CDT(-0500)] <Justin_o> colinclark: so this is the last hurdle?
[08:22:57 CDT(-0500)] <colinclark> I'm assuming so, yes
[08:25:52 CDT(-0500)] <Justin_o> colinclark: that's good
[08:26:15 CDT(-0500)] <colinclark> I did some tweaking and renaming of the bootStrapper.js
[08:26:22 CDT(-0500)] <colinclark> I made all the functions public
[08:26:27 CDT(-0500)] <colinclark> I'm not quite sure how they were working before
[08:26:37 CDT(-0500)] <colinclark> since they were all wrapped in a closure and defined simply with var
[08:26:42 CDT(-0500)] <colinclark> but you were using them in several files
[08:26:54 CDT(-0500)] <colinclark> So, at least with the latest Rhino, I was encountering errors on long()
[08:26:55 CDT(-0500)] <colinclark> log()
[08:27:22 CDT(-0500)] <colinclark> They all seemed like fairly useful functions
[08:27:29 CDT(-0500)] <colinclark> so making them public seemed reasonable
[08:27:42 CDT(-0500)] <Justin_o> colinclark: that's a good point.. i wonder how they did work
[08:27:51 CDT(-0500)] <Justin_o> i guess the scoping in the old version of rhino wasn't working
[08:29:43 CDT(-0500)] <colinclark> something was up, yes
[08:29:49 CDT(-0500)] <colinclark> Anyway, things are looking really good
[08:30:04 CDT(-0500)] <colinclark> We should probably do at least a little bit of tidy-up of the other build file
[08:30:07 CDT(-0500)] <colinclark> which I can do
[08:30:22 CDT(-0500)] <colinclark> Since we no longer need JSON2.js, for example
[08:34:24 CDT(-0500)] <Justin_o> colinclark: yes.. you can probably refactor the reading in of the json file too.. as this has been abstracted out to the bootstrapper
[08:34:33 CDT(-0500)] <colinclark> right, yes
[08:34:46 CDT(-0500)] <colinclark> also the weird globalism caused by Rhino
[08:37:26 CDT(-0500)] <lahabana> colinclark: hi can you tell me when you are available please
[08:41:22 CDT(-0500)] <colinclark> Hi lahabana I'll have some time at around noon EDT today
[08:41:54 CDT(-0500)] <colinclark> So I think that's 18:00 your time.
[08:42:49 CDT(-0500)] <lahabana> 17 I'm in England atm
[08:43:45 CDT(-0500)] <lahabana> can you give me a name of somebody who can help me with the renderer?
[08:48:41 CDT(-0500)] <colinclark> most people here can probably help with that
[08:48:50 CDT(-0500)] <colinclark> michelled, maybe is a good person to ask
[08:57:17 CDT(-0500)] <lahabana> colinclark thx
[08:57:41 CDT(-0500)] <colinclark> michelled: Do you have a few minutes to answer some of lahabana's questions about the Renderer?
[08:57:57 CDT(-0500)] <michelled> sure - ask away lahabana
[08:58:01 CDT(-0500)] <lahabana> colinclark : thx I was going to ask the same
[08:58:07 CDT(-0500)] <colinclark>
[08:58:35 CDT(-0500)] <lahabana> hi so I've read the doc and there's a few things I still don't understand
[08:59:05 CDT(-0500)] <lahabana> I'd like to do a renderer autoBinded to my data model
[08:59:23 CDT(-0500)] <lahabana> most of my model is booleans as it's buttons...
[09:00:02 CDT(-0500)] <lahabana> what I don't understand is how I'm supposed to tell my renderer it's a boolean and how he will change the data?
[09:01:28 CDT(-0500)]
<lahabana> do I have to link my protoTree to the model by doing something like playButton:
?
[09:01:31 CDT(-0500)] <michelled> tell me a little more about your interface - what are the buttons? what values do they have
[09:01:45 CDT(-0500)] <lahabana> so it's a videoPlayer
[09:01:56 CDT(-0500)] <lahabana> so for example there's a play/pause button
[09:02:09 CDT(-0500)] <lahabana> a captionOn/off button
[09:02:18 CDT(-0500)] <lahabana> a scrubber
[09:02:33 CDT(-0500)] <lahabana> 2 text boxes with the total and the current Time
[09:02:40 CDT(-0500)] <lahabana> and a fullscreen switch
[09:03:36 CDT(-0500)] <lahabana> the data related to these buttons are in my model as model.states.play for eg (this being a boolean)
[09:05:55 CDT(-0500)] <michelled> I'm not sure you can use autobinding to do what you want. seems to me that there would not be a way for the framework to know what value to set seeing as a button doesn't naturally have an on/off state
[09:06:54 CDT(-0500)] <lahabana> so do you mean I have to make the renderer just render it
[09:07:02 CDT(-0500)] <lahabana> and then do the binding myself?
[09:08:53 CDT(-0500)] <michelled> yes, I think that is what you'll need to do - create an even handler for the button that alters the state in the model
[09:09:00 CDT(-0500)] <michelled> colinclark, anastasiac: am I missing something?
[09:11:35 CDT(-0500)] <lahabana> ok thx then also I was wondering if it was possible to inject css classes through the renderer
[09:11:57 CDT(-0500)] <anastasiac> michelled, lahabana, your buttons sound a bit like checkboxes (i.e. they have on/off state) so perhaps they could be bound to a model the way checkboxes would be
[09:12:17 CDT(-0500)] <lahabana> and how is that?
[09:12:47 CDT(-0500)] * anastasiac rummages though notes and examples
[09:12:50 CDT(-0500)] <michelled> lahabana: you can add classes using the addClass renderer decorator: http://wiki.fluidproject.org/display/fluid/Renderer+Decorators
[09:13:15 CDT(-0500)] <lahabana> michelled: thx
[09:14:18 CDT(-0500)] <michelled> np
[09:18:57 CDT(-0500)] <anastasiac> lahabana, to bind your UI to the data model, you don't necessarily need to "tell" the renderer the data type. If you use a checkbox (styled to look like a button), then the Renderer will automatically treat it as a boolean. You just hook the element to the model using the "valuebinding"
[09:19:49 CDT(-0500)] <lahabana> ho ok I understand better
[09:20:16 CDT(-0500)] <anastasiac> we really do need some better demos and tutorials for this stuff, I know
[09:20:32 CDT(-0500)] <lahabana> yes
[09:20:49 CDT(-0500)] <lahabana> also the implementation changed quite a lot recently no?
[09:21:36 CDT(-0500)] <michelled> I don't think the renderer has changed much - it's the introduction of IoC that's been the major change in the framework lately
[09:21:55 CDT(-0500)] <lahabana> ok
[09:22:32 CDT(-0500)] <lahabana> I was saying that cause the protoTrees look quite different on each documentation
[09:22:34 CDT(-0500)] <anastasiac> lahabana, the new renderer stuff that we don't have sufficient demos/examples for is the "proto-tree" stuff. Our demo doesn't use prototrees
[09:22:46 CDT(-0500)] <anastasiac>
[09:22:53 CDT(-0500)] <lahabana>
[09:23:54 CDT(-0500)] <michelled> lahabana: if you haven't seen it, you might find this chart interesting: http://praegnanz.de/html5video/
[09:24:35 CDT(-0500)] <lahabana> ho thx michelled
[09:24:42 CDT(-0500)] <michelled> np
[09:30:32 CDT(-0500)] <lahabana> michelled: is there something special to do to use a fluid.rendererComponent as a subComponent with IoC and autoInit?
[09:32:00 CDT(-0500)] <michelled> are you using the gradename renderercomponent?
[09:32:11 CDT(-0500)] <lahabana> yes
[09:32:18 CDT(-0500)] <lahabana> gradeNames: ["fluid.rendererComponent", "autoInit"],
[09:32:19 CDT(-0500)] <lahabana> finalInitFunction: "fluid.videoPlayer.controllers.finalInit",
[09:32:34 CDT(-0500)] <lahabana> and the error is: ASSERTION FAILED: Cannot autoInit component fluid.videoPlayer.controllers which does not have an initFunction and gradeName defined
[09:32:55 CDT(-0500)] <lahabana> and if I change it to a viewComponent there's no problem
[09:33:03 CDT(-0500)] <michelled> are you including the correct js files?
[09:33:19 CDT(-0500)] <lahabana> sorry
[09:33:51 CDT(-0500)] <lahabana> I thought I had an infusionAll but I'm including the files one by one
[09:34:16 CDT(-0500)] <michelled> you'll need renderer utilities in order to use renderercomponent
[09:34:23 CDT(-0500)] <michelled> hopefully that will get rid of the error
[09:34:37 CDT(-0500)] <lahabana> thx
[09:49:39 CDT(-0500)] <jessm> heidi_: ping
[09:49:45 CDT(-0500)] <heidi_> jessm hiya
[09:49:59 CDT(-0500)] <jessm> heidi_: is there something you've pushed to Git?
[09:50:07 CDT(-0500)] <heidi_> jessm not yet no
[09:50:27 CDT(-0500)] <jessm> ah, ok, i thought you were pushing yesterday and i just wasn't seeing
[09:51:00 CDT(-0500)] <heidi_> jessm yeah, sent some emails this morning about github organising
[09:51:12 CDT(-0500)] <jessm> heidi_: yeah, i see the thread
[09:51:23 CDT(-0500)] <heidi_> jessm once that's sorted, i'll push what i have.
[09:51:45 CDT(-0500)] <heidi_> Justin_o you around?
[09:51:55 CDT(-0500)] <Justin_o> heidi_: hello
[09:52:13 CDT(-0500)] <heidi_> hey. am i able to rename idi repos? i'm not sure how to do that
[09:52:19 CDT(-0500)] <jessm> k, i'm going to reboot in hopes of achieving greater clarity
[09:52:26 CDT(-0500)] <Justin_o> heidi_: yes.. you should be able to
[09:52:35 CDT(-0500)] <Justin_o> got to the repo and click the admin button at the top
[09:53:02 CDT(-0500)] <heidi_> Justin_o aha, perfect
[09:53:03 CDT(-0500)] <Justin_o> heidi_: although you should probably do this sparingly as it may affect people who have pulled it down
[09:53:30 CDT(-0500)] <heidi_> Justin_o right. i'm assuming no one has yet. there's nothing in it
[09:54:09 CDT(-0500)] <Justin_o> heidi_: yes.. now should be okay
[09:54:10 CDT(-0500)] <heidi_> Justin_o colinclark huslage wordpress-IDI an okay repo name for wordpress theme and config? i'm not sure why i'm finding this so confusing
[09:54:45 CDT(-0500)] <Justin_o> heidi_: if we ever switch to some other cms.. would we be able to reuse anything from that repo?
[09:54:57 CDT(-0500)] <heidi_> Justin_o no it will be wp specific
[09:56:04 CDT(-0500)] <Justin_o> heidi_: okay.. i think the name is fine for me
[09:56:29 CDT(-0500)] <heidi_> k
[09:56:51 CDT(-0500)] <heidi_> Justin_o or should it be wordpress-inclusivedesign.ca ...that specific
[09:57:24 CDT(-0500)] <heidi_> not sure what aaron is thinking for config storage... i see he just left, doh
[09:57:41 CDT(-0500)] <cindyli> Justin_o: i've pushed 4348 that removes pageEnhancer from fat panel IoC tree into my github - https://github.com/cindyli/infusion/commits/FLUID-4348. as discussed, can you try the new fat panel on ur mac?
[09:58:31 CDT(-0500)] <Justin_o> cindyli: thanks .. i'll try to test that out
[09:58:41 CDT(-0500)] <cindyli> thanks, Justin_o
[09:59:14 CDT(-0500)] <Justin_o> heidi_: hmm.. i guess that would make it more clear as to what it is
[09:59:44 CDT(-0500)] <Justin_o> heidi_: I guess what's ever easier for people i'm good with
[10:01:15 CDT(-0500)] <heidi_> Justin_o okay i'll just name it wordpress-inclusivedesign.ca and move on
[10:01:31 CDT(-0500)] <heidi_> Justin_o how to make new repos?
[10:02:34 CDT(-0500)] <Justin_o> heidi_: go to your dashboard
[10:03:01 CDT(-0500)] <Justin_o> heidi_: actually.. it might be easier to just skype this one
[10:03:12 CDT(-0500)] <heidi_> sure, i'll login
[10:03:24 CDT(-0500)] <Justin_o> heidi_: okay.. call me when you're ready
[10:05:17 CDT(-0500)] <anastasiac> cindyli, are you working on a UI Options branch in which specifying the path to the TableOfContents template is not necessary?
[10:05:29 CDT(-0500)] <colinclark> heidi_ and Justin_o: So, in the medium term, I think we'll probably have three things...
[10:06:00 CDT(-0500)] <colinclark> 1. A series of stylesheets that represent our look and feel across all applications and content management systems
[10:06:17 CDT(-0500)] <colinclark> This will include an FSS theme custom to the IDI, along with any other extensions we might need
[10:06:43 CDT(-0500)] <colinclark> So the goal here is to do as much of our look and feel in a reusable way, so we don't have to do all the styling all over again for MediaWiki, and then again for another app, etc.
[10:06:54 CDT(-0500)] <colinclark> that brings us to the second thing, then
[10:07:03 CDT(-0500)] <cindyli> anastasiac: well, i have a branch for that that works with the old ui options template loader. but with the new loader i'm working on right now, that branch is sort of useless. need a re-work
[10:07:12 CDT(-0500)] <colinclark> 2. An application-specific theme. In this case, we're talking about a WordPress theme
[10:07:27 CDT(-0500)] <colinclark> Our ideal situation is to have as little of the actual styling done within this thing
[10:07:29 CDT(-0500)] <anastasiac> ok, thanks, cindyli. I'll wait until the work is closer to finished
[10:07:42 CDT(-0500)] <cindyli> thanks, anastasiac
[10:07:50 CDT(-0500)] <colinclark> and, as I mentioned the other day, heidi_, to treat this as a kind of "reset," which we use to ensure that the CMS emits all the markup and classnames that we need
[10:08:07 CDT(-0500)] <colinclark> 3. A series of site-specific application configurations
[10:08:34 CDT(-0500)] <colinclark> So, in this case, we'll have WordPress configuration for the particular site--inclusivedesign.ca
[10:08:50 CDT(-0500)] <colinclark> As it stands today, we've got #1 and #2 mixed up, which is fine
[10:08:59 CDT(-0500)] <colinclark> but I hope we can get to a point sooner rather than later where this isn't so much the case
[10:09:02 CDT(-0500)] <Justin_o> cindyli: did you remove the hiding logic from the FLUID-4348.. i think you need to take that out too
[10:09:33 CDT(-0500)] <cindyli> Justin_o: the func makeVisible?
[10:09:41 CDT(-0500)] <cindyli> yes, that needs to go
[10:09:52 CDT(-0500)] <colinclark> The good news with Git, as Jorge pointed out, is that it's not difficult to split things off into new repositories later
[10:09:54 CDT(-0500)] <Justin_o> cindyli: yes.. and the style related stuff to hide initially
[10:09:56 CDT(-0500)] <colinclark> heidi_: is this making sense to you?
[10:10:12 CDT(-0500)] <Justin_o> cindyli: i'm wondering if it's still in, becaus my uio is missing .. i'll look through the code though
[10:10:24 CDT(-0500)] <heidi_> colinclark that all sounds good... processing... and trying to picture it as concrete repos
[10:10:25 CDT(-0500)] <cindyli> ya, styling classes, i forgot that. thanks for reminding, Justin_o
[10:11:30 CDT(-0500)] <heidi_> colinclark #1 would live in fluid-project as a new IDI theme
[10:11:42 CDT(-0500)] <heidi_> er, fluid theme? no... different
[10:11:52 CDT(-0500)] <colinclark> no
[10:12:01 CDT(-0500)] <Justin_o> cindyli: np.. please let me know when you push that up
[10:12:14 CDT(-0500)] <colinclark> It would still be something specific to the IDI, but implemented as an FSS theme
[10:12:28 CDT(-0500)] <colinclark> As concrete repositories, it would look something like this
[10:12:32 CDT(-0500)] <heidi_> ok
[10:12:39 CDT(-0500)] <colinclark> #1: look-and-feel
[10:12:45 CDT(-0500)] <colinclark> #2: wordpress-fss-theme
[10:12:52 CDT(-0500)] <colinclark> #: wordpress-inclusivedesign.ca
[10:13:00 CDT(-0500)] <colinclark> #3, that is
[10:13:38 CDT(-0500)] <colinclark> It will probably take a few design iterations to get this sort of structure into place
[10:13:44 CDT(-0500)] <colinclark> but that's our goal
[10:13:57 CDT(-0500)] <colinclark> it seems to me the worst thing we could do is redo all the same work over and over again
[10:13:59 CDT(-0500)] <colinclark> in terms of styling
[10:14:01 CDT(-0500)] <colinclark> for each new app
[10:14:04 CDT(-0500)] <heidi_> thing about the wordpress idi theme is that it has specifics to content... it's not going to be a generic theme for any blog page i don't htink
[10:14:20 CDT(-0500)] <heidi_> for ex the styling of this front page http://dev.inclusivedesign.ca/wordpress/
[10:14:28 CDT(-0500)] <colinclark> Yep, I've seen all that
[10:14:29 CDT(-0500)] <heidi_> is based around... our front page content
[10:14:31 CDT(-0500)] <colinclark> That's fine
[10:14:47 CDT(-0500)] <colinclark> I'm not suggesting that we're going to rush out and share this with the WordPress community
[10:14:58 CDT(-0500)] <colinclark> But I think you'll find that this site isn't radically different from lots of other sites
[10:15:09 CDT(-0500)] <colinclark> you're going to have to squint a bit, when you start to define the semantics for the site
[10:15:28 CDT(-0500)] <heidi_> wordpress-fss-theme doesn't mention it's tie to inclusivedesign.ca , but that doesn't matter?
[10:15:32 CDT(-0500)] <colinclark> be a bit more abstract than "this is where the 'join the IDI mailing list' section goes"
[10:15:45 CDT(-0500)] <colinclark> heidi_: Names can always be changed
[10:15:54 CDT(-0500)] <colinclark> Again, think of the goal
[10:16:00 CDT(-0500)] <colinclark> Make sure #1 is a reusable as possible
[10:16:06 CDT(-0500)] <colinclark> Make sure #2 is as generic as possible
[10:16:18 CDT(-0500)] <colinclark> There will be, undoubtedly, some rough edges in practice
[10:16:33 CDT(-0500)] <heidi_> yeah... ideals and reality compromising.
[10:16:39 CDT(-0500)] <heidi_> will aim for that tho
[10:17:29 CDT(-0500)] <colinclark> I think we can do more than just aim for it
[10:17:32 CDT(-0500)] <colinclark> we can do it
[10:17:35 CDT(-0500)] <colinclark> So, we know the goal
[10:17:47 CDT(-0500)] <colinclark> then, case by case, we can evaluate how to actually implement it
[10:17:53 CDT(-0500)] <colinclark> and look at those rough edges and see if
[10:18:00 CDT(-0500)] <colinclark> a) we just can't do it
[10:18:01 CDT(-0500)] <colinclark> or more likely
[10:18:08 CDT(-0500)] <colinclark> b) we need to take a slightly different approach
[10:18:29 CDT(-0500)] <colinclark> What I expect, at very least, is that there will be big chunks of shared semantics across all our applications
[10:18:37 CDT(-0500)] <colinclark> Obvious stuff like navigation, headers, foots
[10:18:44 CDT(-0500)] <colinclark> probably call-outs and highlighted material
[10:18:45 CDT(-0500)] <colinclark> etc.
[10:18:52 CDT(-0500)] <cindyli> Justin_o: removed the offscreen part and pushed up
[10:18:59 CDT(-0500)] <colinclark> We want to define some shared semantics for these things
[10:19:03 CDT(-0500)] <colinclark> so that our stuff will be more portable
[10:19:31 CDT(-0500)] <heidi_> there are subtler things going on too... like i've added code to page.php in our theme so that if a parent page has a submenu, load the first submenu content, cos that's how we want it to work for idi
[10:19:44 CDT(-0500)] <heidi_> wondering if that kind of thing needs to be separated out in a different way... it's tricky
[10:20:05 CDT(-0500)] <Justin_o> cindyli: thanks.. i'll try again
[10:20:16 CDT(-0500)] <heidi_> also need to start thinking about how we want fluid to live in wordpress... create a plugin for it, etc
[10:20:23 CDT(-0500)] <colinclark> right
[10:20:31 CDT(-0500)] <heidi_> right now i have /fss in my themes dir
[10:20:41 CDT(-0500)] <heidi_> but we want UIO as well
[10:20:48 CDT(-0500)] <colinclark> The more stuff we can accomplish without just sticking some app-specific PHP into the theme, the better, I think
[10:20:55 CDT(-0500)] <colinclark> As I say, this'll take some iterations
[10:21:10 CDT(-0500)] <colinclark> but you'll really need to keep in the back of your head...
[10:21:17 CDT(-0500)] <colinclark> "Can I do this in a way that isn't just for WordPress?"
[10:21:39 CDT(-0500)] <colinclark> I guess, if you think about it, this is our approach to programming in general
[10:21:42 CDT(-0500)] <colinclark> Making things accessible
[10:22:16 CDT(-0500)] <colinclark> Not hard wiring it to one way of working, one presentation, one modality
[10:22:16 CDT(-0500)] <colinclark> t
[10:22:19 CDT(-0500)] <colinclark> that kind of thing
[10:22:24 CDT(-0500)] <lahabana> michelled you're still here?
[10:23:39 CDT(-0500)] <lahabana> or anastasiac?
[10:23:58 CDT(-0500)] <anastasiac> lahabana, yes, I'm here
[10:24:16 CDT(-0500)] <lahabana> I'm still having issues to get started with the renderer
[10:24:27 CDT(-0500)] <jessm> heidi_: smells like up-front costs that will yield long term happiness. while WP is the choice we've made for this site we have a whole bunch of sites that aren't WP. Loosely coupled, reusable will win the day.
[10:24:53 CDT(-0500)] <lahabana> it says ASSERTION FAILED: empty template supplied to fluid.parseTemplate
[10:25:00 CDT(-0500)] <lahabana> and I don't relly understand why
[10:25:29 CDT(-0500)] <lahabana> I tried to stick to the online example : http://wiki.fluidproject.org/display/docs/Renderer-bearing+Components
[10:25:50 CDT(-0500)] <lahabana> In mine I get: http://pastie.org/2248983
[10:25:52 CDT(-0500)] <heidi_> jessm yes for sure
[10:26:03 CDT(-0500)] <lahabana> which is pretty much the same no?
[10:26:14 CDT(-0500)] <anastasiac> hm. lahabana, it's hard to debug without looking at it - are you able to push your code to github?
[10:26:23 CDT(-0500)] <lahabana> yes
[10:26:48 CDT(-0500)] <anastasiac> ok, we have our stand-up meeting now. Let me know the URL, and I'll have a look in about 15-20 minutes, lahabana
[10:27:00 CDT(-0500)] <lahabana> ho yes ok
[10:27:20 CDT(-0500)] <lahabana> https://github.com/lahabana/videoPlayer/commit/b0accd2fdb3abc0a3c13e43cafdc2afd6b4ffa1b
[10:28:04 CDT(-0500)] <lahabana> anastasiac : it's the controller only that tries to use it
[10:34:15 CDT(-0500)] <jessm> fluid-everyone: standup?
[10:38:46 CDT(-0500)] <mlam> jessm: are you still connected to stand-up?
[10:38:54 CDT(-0500)] <jessm> mlam: yes
[10:39:01 CDT(-0500)] <mlam> ack.
[10:41:54 CDT(-0500)] <mlam> fluid-everyone: I'm having troubles getting back into connect, so i'll give my stand-up here.
[10:42:21 CDT(-0500)] <mlam> I just returned from vacation. I spent the morning catching up with emails and today, I'll help cindyli out with some unit testing
[10:50:51 CDT(-0500)] <anastasiac> hey, lahabana, I've cloned your repo and I'm trying to reproduce your error. Is the code in your master, or in a repo? And if I open VideoPlayer.html, should I see the error?
[10:51:09 CDT(-0500)] <anastasiac> "in your master, or in a branch"
[10:54:16 CDT(-0500)] <lahabana> if u do u should anastasiac
[10:54:32 CDT(-0500)] <lahabana> have u been careful that it's not in the master
[10:54:50 CDT(-0500)] <anastasiac> which branch should I be looking at, lahabana?
[10:55:09 CDT(-0500)] <lahabana> FLUID-4297
[10:56:51 CDT(-0500)] <lahabana> and my path to the fluid framework is unusual you may have to change it
[10:57:19 CDT(-0500)] <lahabana> same for line 106 of videoPlayer_controllers.js
[10:58:12 CDT(-0500)] <anastasiac> ok, lahabana, I'm seeing the error you mentioned. looking in more detail now...
[10:58:22 CDT(-0500)] <lahabana> ok anastasiac thx
[11:10:08 CDT(-0500)] <lahabana> so any clues anastasiac ? it seems really weird to me
[11:13:53 CDT(-0500)] <lahabana> anastasiac gtg doesn't matter if you can't find it I'll try when I'll get back
[11:14:00 CDT(-0500)] <anastasiac> lahabana, yes.
[11:14:08 CDT(-0500)] <anastasiac> that error happens when the resource isn't ready yet
[11:14:23 CDT(-0500)] <lahabana> hmm
[11:14:29 CDT(-0500)] <anastasiac> you need to make sure that your controllers subcomponent doesn't instantiate until the resource has been fetched
[11:14:42 CDT(-0500)] <anastasiac> I'm just looking over your code to see what you do so far
[11:15:07 CDT(-0500)] <lahabana> ho ok
[11:15:21 CDT(-0500)] <lahabana> but right now they are commented no?
[11:15:44 CDT(-0500)] <anastasiac> what's commented, lahabana?
[11:15:58 CDT(-0500)] <lahabana> the controllers' subcomponent
[11:16:38 CDT(-0500)] <anastasiac> yes, but it's the controllers component itself that is a renderer component and has a resource: controller_template.html
[11:16:57 CDT(-0500)] <anastasiac> when fluid.videoPlayer.controllers instantiates, it will look for that html template
[11:17:04 CDT(-0500)] <lahabana> yes
[11:17:10 CDT(-0500)] <anastasiac> if it's not available, you'll see the error you saw
[11:17:20 CDT(-0500)] <lahabana> ok I see
[11:17:28 CDT(-0500)] <anastasiac> so one way to deal with this is this, lahabana:
[11:17:56 CDT(-0500)] <anastasiac> the controllers' parent component can load the resource and then fire an event when it's ready. controllers will wait for that event by using "createOnEvent"
[11:18:06 CDT(-0500)] * anastasiac is looking for docs to point you to
[11:18:30 CDT(-0500)] <lahabana> ho I see what you mean
[11:18:35 CDT(-0500)] <anastasiac> lahabana: info on "createOnEvent" : http://wiki.fluidproject.org/display/docs/Controlling+The+Timing+of+Subcomponent+Creation
[11:19:31 CDT(-0500)] <lahabana> this is done in UIOptions no
[11:19:42 CDT(-0500)] <anastasiac> lahabana, fluid.videoPlayer is the parent of fluid.videoPlayer.controllers, so fluid.videoPlayer could load the resources using fluid.fetchResources, and then fire an event
[11:19:44 CDT(-0500)] <lahabana> there's its own component to laod the templates
[11:19:47 CDT(-0500)] <anastasiac> yes, I think UIOptions does that
[11:19:56 CDT(-0500)] <lahabana> ho ok
[11:20:04 CDT(-0500)] <anastasiac> you don't necessarily need to create a whole separate component
[11:20:12 CDT(-0500)] <anastasiac> but UIOptions is a reasonable model to see how it's done
[11:20:45 CDT(-0500)] <lahabana> well I think I will in the end cause I'll have 3 different template in the end I think
[11:21:16 CDT(-0500)] <lahabana> 1 for the controllers 1 for the captionner and one for the whole videoPlayer
[11:21:20 CDT(-0500)] <lahabana> no?
[11:21:30 CDT(-0500)] <anastasiac> so the UI Options model might be the way to tgo
[11:21:32 CDT(-0500)] <anastasiac> to go
[11:21:37 CDT(-0500)] <lahabana> ok
[11:21:40 CDT(-0500)] <lahabana> thx
[11:21:59 CDT(-0500)] <lahabana> I really gtg now
[11:22:05 CDT(-0500)] <lahabana> thanks a lot for your help
[11:23:20 CDT(-0500)] <anastasiac> anytime, lahabana. Your questions are very helpful in identifying where our documentation is lacking, which is very useful for us
[13:00:43 CDT(-0500)] <Bosmon> Hi, cindyli - what's the "Mad Haps"?
[13:00:57 CDT(-0500)] <cindyli> Bosmon: still mad
[13:02:11 CDT(-0500)] <Bosmon> Did you manage to reorganise the components so that the component can load a 2nd time on Chrome?
[13:02:32 CDT(-0500)] <cindyli> Bosmon: reorganized but no luck
[13:02:39 CDT(-0500)] <cindyli> i'm trying a bit more. will let you know the result very soon
[13:02:45 CDT(-0500)] <Bosmon> Ok
[13:02:50 CDT(-0500)] <Bosmon> Do you want to show me what you've got so far?
[13:08:18 CDT(-0500)] <cindyli> sure, Bosmon. pushing into github. one sec
[13:10:37 CDT(-0500)] <cindyli> Bosmon: it's in - https://github.com/cindyli/infusion/tree/FLUID-4317
[13:11:38 CDT(-0500)] <cindyli> the loading issue at the 2nd round in chrome does get fixed in the latest commit. but it breaks the fat panel, which is what i'm working on
[13:16:43 CDT(-0500)] <Bosmon> ok, thanks
[13:17:20 CDT(-0500)] <cindyli> np
[13:20:40 CDT(-0500)] <Bosmon> cindyli - I notice that you still have the templateLoader registered as "first" in the tests
[13:21:28 CDT(-0500)] <Bosmon> And that the TemplateReady event is still held in the templateLoader
[13:21:29 CDT(-0500)] <cindyli> yes, Bosmon, i moved the fetchResources of all the templates from templateLoader into uiOptionsLoader
[13:21:36 CDT(-0500)] <Bosmon> I see
[13:22:18 CDT(-0500)] <cindyli> TemplateReady event in templateLoader can go. u will say it's not linked with TemplateReady event in uiOptionsLoader any more
[13:22:36 CDT(-0500)] <Bosmon> Hmm, I'm not seeing this in the branch....
[13:22:37 CDT(-0500)] <cindyli> see, not "say"
[13:23:00 CDT(-0500)] <cindyli> line 261: onUIOptionsTemplateReady: null,
[13:23:00 CDT(-0500)] <Bosmon> I am at b91167d
[13:23:28 CDT(-0500)] <cindyli> that's right. having a look
[13:25:10 CDT(-0500)] <cindyli> https://github.com/cindyli/infusion/blob/FLUID-4317/src/webapp/components/uiOptions/js/UIOptions.js#L264
[13:25:57 CDT(-0500)] <Bosmon> Yes, i see that.... on line 190, I still see templateLoader as fetching its own resources
[13:26:15 CDT(-0500)] <Bosmon> Ah, I see, it isn't
[13:26:21 CDT(-0500)] <Bosmon> It's just that the function still has its old name...
[13:26:47 CDT(-0500)] <cindyli> right. need a new name
[13:27:12 CDT(-0500)] <Bosmon> ok
[13:27:19 CDT(-0500)] <Bosmon> So I should just fire up the FatPanel tests?
[13:27:26 CDT(-0500)] <cindyli> no, fat panel demo
[13:27:28 CDT(-0500)] <Bosmon> Do they fail on FF too, or just on Chrome
[13:27:29 CDT(-0500)] <Bosmon> Ok
[13:27:35 CDT(-0500)] <cindyli> everywhere
[13:27:41 CDT(-0500)] <Bosmon> ah, good
[13:27:48 CDT(-0500)] <cindyli> yes, good
[13:28:07 CDT(-0500)] <Bosmon> Well, it's always easier to debug consistent issues
[13:28:16 CDT(-0500)] <cindyli> that's true
[13:30:25 CDT(-0500)]