#musicbrainz

/

      • aCiD2
        I know, but you wanted to be able to specify th efield type and classes - I would rather merge the new form system, then add macros
      • 2009-01-26 02642, 2009

      • aCiD2
      • 2009-01-26 02603, 2009

      • aCiD2
        generic/row.tt defaults to text if you don't specify what you need
      • 2009-01-26 02620, 2009

      • brianfreud
        yes, but anywhere make_widget is used, it's being used for text-based fields, not buttons, not checkboxes, only labels/inputs
      • 2009-01-26 02631, 2009

      • aCiD2
        that's a bit inconsistant
      • 2009-01-26 02651, 2009

      • brianfreud
        only time you actually used the [%- INCLUDE "forms/widget.tt" widget=form.field("artist_type") label="Type" -%] syntax in the templates I've edited so far
      • 2009-01-26 02613, 2009

      • aCiD2
        widget.tt will give you all sorts of field types
      • 2009-01-26 02631, 2009

      • aCiD2
        anyway, I think the new form system will better address your original concerns:
      • 2009-01-26 02633, 2009

      • brianfreud
        I know, but I mean, nothing I've worked on actually used that syntax for a non label/input
      • 2009-01-26 02636, 2009

      • aCiD2
      • 2009-01-26 02603, 2009

      • aCiD2
        brianfreud: oh right, yea - I don't mind making it a macro, but I want to bring in the new forms *first* then lay macros over the top
      • 2009-01-26 02613, 2009

      • aCiD2
        rather than the other way round, if you get me
      • 2009-01-26 02625, 2009

      • brianfreud
        yes, I like those better - my point is, I think we can do it cleaner by keeping the macros now, rather than having to redo all that work again later.
      • 2009-01-26 02627, 2009

      • aCiD2
        so is it ok if I leave that out for now?
      • 2009-01-26 02632, 2009

      • aCiD2
        hrm
      • 2009-01-26 02636, 2009

      • brianfreud
        the interface won't likely change, only perhaps the macro's name
      • 2009-01-26 02645, 2009

      • aCiD2
        well, i think it will change
      • 2009-01-26 02602, 2009

      • brianfreud
        make_foo(id, text)?
      • 2009-01-26 02603, 2009

      • aCiD2
        the thing with macros is they are positional
      • 2009-01-26 02615, 2009

      • aCiD2
        whereas include is name based arguments
      • 2009-01-26 02631, 2009

      • aCiD2
        what this means is make_foo might need support for passing classes, or the field type
      • 2009-01-26 02645, 2009

      • aCiD2
        what if I want to make a field with a class, but no field type -- or the other way round?
      • 2009-01-26 02616, 2009

      • brianfreud
        ok; just a lot of work to convert all those, really would rather not have to do them all over again - exp including the l() enclosing for the text within them...
      • 2009-01-26 02632, 2009

      • aCiD2 looks again
      • 2009-01-26 02659, 2009

      • brianfreud
        seems easier to me to adapt an extant macro, rather than re-convert them all over again when your bit changes
      • 2009-01-26 02607, 2009

      • brianfreud
        *s/seems/just seems
      • 2009-01-26 02623, 2009

      • aCiD2
        hmm
      • 2009-01-26 02648, 2009

      • brianfreud
        like I say, it's this difference, already, and a pita to selectively merge:
      • 2009-01-26 02656, 2009

      • aCiD2
        i'll merge it
      • 2009-01-26 02603, 2009

      • brianfreud
        original [%- INCLUDE "forms/widget.tt" widget=form.field("artist_type") label="Type" -%]
      • 2009-01-26 02605, 2009

      • brianfreud
        now: [%- make_required_widget('artist_type', l('Type:')) -%]
      • 2009-01-26 02630, 2009

      • aCiD2
        yes, I'm not against macros
      • 2009-01-26 02634, 2009

      • aCiD2
        i get /that/ point :)
      • 2009-01-26 02640, 2009

      • brianfreud
        oh, make_widget = non required fields, make_required_widget = bolded required ones... totally a hack atm :P
      • 2009-01-26 02657, 2009

      • aCiD2
        widget.tt already works out what's required and not
      • 2009-01-26 02603, 2009

      • brianfreud
        it wasn't, though
      • 2009-01-26 02608, 2009

      • aCiD2
        we shouldn't be specifying what's required or not in the templates
      • 2009-01-26 02614, 2009

      • brianfreud
        ???
      • 2009-01-26 02636, 2009

      • aCiD2
        that's a constraint at the code level
      • 2009-01-26 02640, 2009

      • brianfreud
        the templates *should* be defining the context, not the component-making templates...
      • 2009-01-26 02646, 2009

      • aCiD2
        [% field.required %]
      • 2009-01-26 02602, 2009

      • brianfreud
        here, try this (1sec)
      • 2009-01-26 02658, 2009

      • aCiD2
        make_input(label, field) should look at field and decide if it's required or not (by doing field.required) -- we specify what's required in the form itself
      • 2009-01-26 02617, 2009

      • aCiD2
        so there are no make_input_optional and make_input_required macros, just one
      • 2009-01-26 02633, 2009

      • aCiD2
        and please don't leave [%# TODO %] comments... esp. when they relate to Perl code, not that template
      • 2009-01-26 02636, 2009

      • aCiD2
        that's what the bug tracker is for
      • 2009-01-26 02639, 2009

      • aCiD2
        ok, I've gotta be up in 4 hours, I need to sleep
      • 2009-01-26 02648, 2009

      • aCiD2
        I'll work through your merge tomorrow more
      • 2009-01-26 02656, 2009

      • brianfreud
        here, I just turned off forced bolding on that macro. look at http://brianfreud.info:3001/artist/create
      • 2009-01-26 02612, 2009

      • aCiD2
        right, then that's a bug - but we shouldn't be hacking around it
      • 2009-01-26 02630, 2009

      • brianfreud
        ok
      • 2009-01-26 02651, 2009

      • brianfreud
        well, easy enough to change the required ones out. :)
      • 2009-01-26 02659, 2009

      • aCiD2
        sure
      • 2009-01-26 02608, 2009

      • aCiD2
        feel free to keep working and commiting etc :)
      • 2009-01-26 02636, 2009

      • aCiD2
        i'll let you know when to stop when I merge (because this merge will require you to reset the HEAD of your branch - more on that tomorrow)
      • 2009-01-26 02642, 2009

      • brianfreud
        np
      • 2009-01-26 02607, 2009

      • aCiD2
        glad we got a collaboration solution sorted though!
      • 2009-01-26 02610, 2009

      • aCiD2
        nn!
      • 2009-01-26 02613, 2009

      • brianfreud
        cya
      • 2009-01-26 02652, 2009

      • Wizzcat dreads getting up in two hours :(
      • 2009-01-26 02609, 2009

      • Wizzcat
        nothing like an early-morning monday lecture
      • 2009-01-26 02620, 2009

      • brianfreud
        aCiD2: for when you read scrollback, actually, prob easier, unless you plan on messing with the templates in the next day or so, if you wait a couple of days; I'm working all evening Tues and all day Weds, so will be around to work on the rest of the templates tomorrow-Tues AM, let you have all Tues PM-Weds all day to merge
      • 2009-01-26 02621, 2009

      • brianfreud
        rather than us in a race condition tomorrow (unless, as I say, you plan to mess with templates, then np :P)
      • 2009-01-26 02614, 2009

      • mikemorr
        alastairp: great link. I like the Oasis and Van Halen ones the best.
      • 2009-01-26 02629, 2009

      • brianfreud has quit
      • 2009-01-26 02602, 2009

      • brianfreud joined the channel
      • 2009-01-26 02651, 2009

      • xlotlu has quit
      • 2009-01-26 02602, 2009

      • xlotlu joined the channel
      • 2009-01-26 02659, 2009

      • zeno joined the channel
      • 2009-01-26 02627, 2009

      • Knio joined the channel
      • 2009-01-26 02623, 2009

      • brianfreud has quit
      • 2009-01-26 02647, 2009

      • v6lur joined the channel
      • 2009-01-26 02651, 2009

      • ivankara has quit
      • 2009-01-26 02623, 2009

      • brianfreud joined the channel
      • 2009-01-26 02626, 2009

      • v6lur has quit
      • 2009-01-26 02650, 2009

      • brianfreud
      • 2009-01-26 02630, 2009

      • alastairp
        brianfreud: yeah, see my post earlier this morning :)
      • 2009-01-26 02636, 2009

      • alastairp
        it's great :)
      • 2009-01-26 02609, 2009

      • MClemo
        this really is awful :D
      • 2009-01-26 02606, 2009

      • ruaok
        just think -- its *this* crap that comes out of m$ research.
      • 2009-01-26 02620, 2009

      • ruaok
        how many researchers worked on the crap that underlies this?
      • 2009-01-26 02626, 2009

      • alastairp
        ruaok: it's actually amazing research
      • 2009-01-26 02631, 2009

      • alastairp
        I was reading the paper
      • 2009-01-26 02635, 2009

      • srotta
        Just wait a few months and it's in use in studios.
      • 2009-01-26 02637, 2009

      • alastairp
        I'm keen on doing similar
      • 2009-01-26 02645, 2009

      • ruaok
        it very well may be.
      • 2009-01-26 02604, 2009

      • ruaok
        but why have a research division if your product teams butcher clever tech like this?
      • 2009-01-26 02608, 2009

      • alastairp
        well
      • 2009-01-26 02624, 2009

      • srotta
        Use that and autotune, and you don't need to know how to sing, play or write songs.
      • 2009-01-26 02627, 2009

      • MBChatLogger
        I hate the evil empire
      • 2009-01-26 02627, 2009

      • alastairp
        as I understand it, ms research shares the name, and lots of money with microsoft
      • 2009-01-26 02642, 2009

      • alastairp
        it's more like a university with no teaching
      • 2009-01-26 02656, 2009

      • alastairp
        so it's unfair to compare them to product devisions
      • 2009-01-26 02639, 2009

      • ruaok
        but M$ research doesn;t put out products.
      • 2009-01-26 02651, 2009

      • ruaok
        m$ engineers take the research and crap it into products.
      • 2009-01-26 02655, 2009

      • ruaok
        and those products suck.
      • 2009-01-26 02600, 2009

      • alastairp
        but why not?
      • 2009-01-26 02614, 2009

      • alastairp
        songsmith is quite clearly branded as an ,s research product
      • 2009-01-26 02617, 2009

      • alastairp
        not ms
      • 2009-01-26 02629, 2009

      • ruaok
        oh. I didn't realize that.
      • 2009-01-26 02633, 2009

      • ruaok
        in a sense, that's even worse.
      • 2009-01-26 02642, 2009

      • srotta
        So if it was actually designed by somebody who knows the stuff, it might be useful M;)
      • 2009-01-26 02620, 2009

      • ruaok
        I guess the moral is that researchers shouldn't be creating products.
      • 2009-01-26 02623, 2009

      • alastairp
        their viewpoint is, it may be crap and trashy, but if they didn't commercialise it, it would never see the light of day
      • 2009-01-26 02630, 2009

      • alastairp
        and it's some pretty neat tech
      • 2009-01-26 02636, 2009

      • alastairp
        so good on them for getting it out there
      • 2009-01-26 02644, 2009

      • alastairp
        having said that, I wouldn't buy it
      • 2009-01-26 02650, 2009

      • Tykling joined the channel
      • 2009-01-26 02655, 2009

      • ruaok
        cept its a public perception nightmare.
      • 2009-01-26 02602, 2009

      • alastairp
        but now that i've been exposed to it, i'm keen on recreating some of their results
      • 2009-01-26 02606, 2009

      • MClemo
        all I hear is awful tunes, but maybe someone hears the good in it ;)
      • 2009-01-26 02608, 2009

      • alastairp
        time will tell, I suppose
      • 2009-01-26 02628, 2009

      • the_p joined the channel
      • 2009-01-26 02650, 2009

      • srotta
        On the other hand, you can go to any gas station and buy a CD full of those tunes - and it's people who actually try to make music.
      • 2009-01-26 02602, 2009

      • MClemo
        that's sad :(
      • 2009-01-26 02605, 2009

      • the_p has quit
      • 2009-01-26 02612, 2009

      • the_p joined the channel
      • 2009-01-26 02645, 2009

      • srotta
        It would be pretty fantastic if the application actually created something unique based on kid yodling.
      • 2009-01-26 02621, 2009

      • alastairp
        how do you mean?
      • 2009-01-26 02654, 2009

      • srotta
        Meaning that it's not a six-man band, it's a toy application.
      • 2009-01-26 02647, 2009

      • alastairp
        but it's not intended to be anything else
      • 2009-01-26 02603, 2009

      • srotta
        If it recreated E Street Band based on someone's wavering vocals, we'd be a leap closer to end of humanity.
      • 2009-01-26 02607, 2009

      • srotta
        alastairp: Exactly my point.
      • 2009-01-26 02641, 2009

      • alastairp
        so you want something that will? :-/
      • 2009-01-26 02654, 2009

      • srotta
        No, but some others seem to.
      • 2009-01-26 02613, 2009

      • alastairp
        let's be thankful for small miracles :)
      • 2009-01-26 02658, 2009

      • srotta
        So it may be "awful tunes", but what the hell do you expect? It's not meant to create commercial quality music. Most composers don't manage that.
      • 2009-01-26 02628, 2009

      • alastairp
        yeah
      • 2009-01-26 02636, 2009

      • alastairp
        and they pretty much say that
      • 2009-01-26 02653, 2009

      • srotta
        The only problem I see is that awful ad.
      • 2009-01-26 02659, 2009

      • srotta
        8)
      • 2009-01-26 02605, 2009

      • alastairp
        haha, yeah
      • 2009-01-26 02615, 2009

      • outsidecontext joined the channel
      • 2009-01-26 02631, 2009

      • CStan joined the channel
      • 2009-01-26 02638, 2009

      • CStan has left the channel
      • 2009-01-26 02625, 2009

      • ruaok
        aCiD2: you around?
      • 2009-01-26 02644, 2009

      • FauxFaux
        So totally not an aCiD2 friendly time.
      • 2009-01-26 02604, 2009

      • ruaok
        figured as much. 8am. certain to be asleep.
      • 2009-01-26 02617, 2009

      • FauxFaux
        Bastard.
      • 2009-01-26 02630, 2009

      • FauxFaux
        I mean, uh, "Indeed."
      • 2009-01-26 02650, 2009

      • Om joined the channel
      • 2009-01-26 02615, 2009

      • brianfreud
        ruaok: did you see in scrollback the git thing aCiD2 set up for tracking his and my work (or whoever else is also working on tt)?
      • 2009-01-26 02602, 2009

      • brianfreud
      • 2009-01-26 02626, 2009

      • catgroove joined the channel
      • 2009-01-26 02600, 2009

      • catgroove has quit
      • 2009-01-26 02656, 2009

      • ruaok
        cool. what is your current workflow?
      • 2009-01-26 02659, 2009

      • brianfreud
        I've been working on the template rewrites, to clean them up so js can much more easily tie in, and to better move towards separation of content, presentation, and function
      • 2009-01-26 02612, 2009

      • brianfreud
        working alphabetically, for the most part, though the /root subdir
      • 2009-01-26 02630, 2009

      • ruaok
        ok.
      • 2009-01-26 02657, 2009

      • brianfreud
        hoping to mostly have that wrapped up by end of week.