@#$(&*.
Half way down the stack trace I see this:
Code: Select all
File "....../webinterface/rh/base.py", line 318, in _processUnexpectedError
return p.display()Code: Select all
File "....../webinterface/rh/base.py", line 318, in _processUnexpectedError
return p.display()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.InvincibleCakeEater wrote:If you could give me a little more code I could take a look for you.
Code: Select all
import <packagename>.webinterface.rh.welcome as welcome
def index(req, **params):
return welcome.RHWelcome( req ).process( params )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.Hudler wrote:If all else fails,hit it with a hammer.
It won't fix the problem,but you'll feel better.
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.Hungary Jack wrote:In situations like this, I call Geek Squad.
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.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.
You had me at inheritance...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:
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.Code: Select all
import <packagename>.webinterface.rh.welcome as welcome def index(req, **params): return welcome.RHWelcome( req ).process( params )
And I realize only geeky computer people will care about this...
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.Arthur Dent wrote: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.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.