Page 1 of 1
I'm stuck...
Posted: March 18 08, 4:16 pm
by jim
Totally. All afternoon. Hitting my head into a brick wall. Someone help.
@#$(&*.
Half way down the stack trace I see this:
Code: Select all
File "....../webinterface/rh/base.py", line 318, in _processUnexpectedError
return p.display()
Why am I in _processUnexpectedError() ?????
Re: I'm stuck...
Posted: March 18 08, 6:12 pm
by InvincibleCakeEater
If you could give me a little more code I could take a look for you.
Re: I'm stuck...
Posted: March 19 08, 7:58 am
by jim
InvincibleCakeEater wrote:If you could give me a little more code I could take a look for you.
There is 200K lines of it, objects with 20+ levels of inheritance. I got a good nights rest and think I figured the problem out. But thanks for the offer.
edit - yup, got it. I upgraded packages and took the shortcut I normally take which mucked up a config file because some guy across the pond changed something I wasn't aware of.
This is a monster piece of code. A modpython based calendering/conference/meeting/agenda workflow package written at our sister lab that I have done alot of work on. It's a great but complicated project, and before I had gotten involved had not really exploited OO programming in Python before. I laughed out loud when I first saw this package was 200K+ lines and 400 modules, yet the entire program for running it consisted of this:
Code: Select all
import <packagename>.webinterface.rh.welcome as welcome
def index(req, **params):
return welcome.RHWelcome( req ).process( params )
That's it, that's the entire index.py program. But then you see what the process method does, and RHWelcome objects inherit from RH objects which inherit from .... literally 20+ levels deep.
And I realize only geeky computer people will care about this...
Re: I'm stuck...
Posted: March 19 08, 9:02 am
by Hudler
If all else fails,hit it with a hammer.
It won't fix the problem,but you'll feel better.
Re: I'm stuck...
Posted: March 19 08, 9:10 am
by jim
Hudler wrote:If all else fails,hit it with a hammer.
It won't fix the problem,but you'll feel better.
Apparently, the other thing that helps is a glass of wine (or two) with a nice dinner with the family, a Leffe Blond Ale while watching a little basketball, and a good nights sleep.
But I've hit things too, and yes you do feel better.
Re: I'm stuck...
Posted: March 19 08, 12:02 pm
by Hungary Jack
In situations like this, I call Geek Squad.
Re: I'm stuck...
Posted: March 19 08, 12:06 pm
by jim
Hungary Jack wrote:In situations like this, I call Geek Squad.
Ha - that's me. What happens when the geek can't figure it out? A good meal, a little alcohol, a good nights rest is the answer apparently.
My problem is I get stubborn. My wife needed me home by 6pm or I would have fought that thing until who knows when. At 5 I really thought I was too tired, but I kept trying this and that refusing to give up until I absolutely had to go home. I KNEW I would probably get it the next morning, but it ticks me off to the point where I just can't give up.
Re: I'm stuck...
Posted: March 19 08, 1:55 pm
by Arthur Dent
jim wrote:My problem is I get stubborn. My wife needed me home by 6pm or I would have fought that thing until who knows when. At 5 I really thought I was too tired, but I kept trying this and that refusing to give up until I absolutely had to go home. I KNEW I would probably get it the next morning, but it ticks me off to the point where I just can't give up.
I understand, jim. I hate walking away from a problem I'm stuck on even if that's actually the best way to find a solution. Unfortunately as I am single, there is nobody but my dog to motivate me to get home on time. Got in one of those ruts last night and ending up getting home at an ungodly hour. Just enough time to eat something, go to sleep, and come back here.

Re: I'm stuck...
Posted: March 19 08, 3:06 pm
by Swatcat27
jim wrote:There is 200K lines of it, objects with 20+ levels of inheritance. I got a good nights rest and think I figured the problem out. But thanks for the offer.
edit - yup, got it. I upgraded packages and took the shortcut I normally take which mucked up a config file because some guy across the pond changed something I wasn't aware of.
This is a monster piece of code. A modpython based calendering/conference/meeting/agenda workflow package written at our sister lab that I have done alot of work on. It's a great but complicated project, and before I had gotten involved had not really exploited OO programming in Python before. I laughed out loud when I first saw this package was 200K+ lines and 400 modules, yet the entire program for running it consisted of this:
Code: Select all
import <packagename>.webinterface.rh.welcome as welcome
def index(req, **params):
return welcome.RHWelcome( req ).process( params )
That's it, that's the entire index.py program. But then you see what the process method does, and RHWelcome objects inherit from RH objects which inherit from .... literally 20+ levels deep.
And I realize only geeky computer people will care about this...
You had me at inheritance...

Re: I'm stuck...
Posted: March 19 08, 3:08 pm
by jim
Arthur Dent wrote:jim wrote:My problem is I get stubborn. My wife needed me home by 6pm or I would have fought that thing until who knows when. At 5 I really thought I was too tired, but I kept trying this and that refusing to give up until I absolutely had to go home. I KNEW I would probably get it the next morning, but it ticks me off to the point where I just can't give up.
I understand, jim. I hate walking away from a problem I'm stuck on even if that's actually the best way to find a solution. Unfortunately as I am single, there is nobody but my dog to motivate me to get home on time. Got in one of those ruts last night and ending up getting home at an ungodly hour. Just enough time to eat something, go to sleep, and come back here.

I definitely get into what you would call "ruts". It gets to the point sometimes where I completely lose the big picture - I'm not staying late because it's important - I'm staying late because I have to solve the problem. It could just as easily be a Sudoku puzzle , it usually doesn't matter. Of course, there are those times where you are working on some urgent issue where you can't forget the big picture because people are breathing down your neck, but last nights issue was not like that.