Re: DRY - fixing some duplicate code

2009-03-20 Thread adelevie
I didn't take a detailed look at the code, but can't you just make a function that is called by both view functions? On Mar 20, 12:15 pm, nerdydork wrote: > I have the following two functions (not complete, but should give you > an idea of what I'm doing):http://dpaste.com/16964/ > > Lines 5-44

DRY - fixing some duplicate code

2009-03-20 Thread nerdydork
I have the following two functions (not complete, but should give you an idea of what I'm doing): http://dpaste.com/16964/ Lines 5-44 and 51-90 were a basic copy/paste job. How do I pull those out into a separate function, or have the first function call the other and still get the variables I ne