Showing posts with label class. Show all posts
Showing posts with label class. Show all posts

Monday, September 16, 2013

Class Inheritance Problems In Python

I was trying to play around with classes a little the other day I ran into some problems.

I tried to call a function on a child, that calls the parent and uses the self attribute. It wasn't having it.
I got the error
AttributeError: Class Instance has no Attribute ''

After some searching I came across this post, it was a little confusing but I think I finally got it.

http://stackoverflow.com/questions/16528171/attributeerror-child-object-has-no-attribute-name

Here is an example of the result in action:


*Notice I had to do Animal.__init__(self) for the function to work. It took me quite a while to figure this one out.

Thursday, July 30, 2009

Class Search

I have been mulling over the idea of trying to improve the class search process where I go to school, I currently work a full time job, and am trying to go to school. Needless to say trying to schedule classes and work hours can be a bit of a bear.

Along came the idea of "class search", I'll give you a bit of a hint of what it's got, and as I continue working on it I'll bring it up a little more.

Right now my goal is to have a particular user login, and once they're logged in it will display classes that are relevant to their particular declared degree. The basic site I've currently made is an Comp Engineering Major related list of classes.

There are alot of "enhancements" that I am working on and have ideas for quite a few more.

You can check out the "mobile" version (updated most recently) here

If anyone knows any good "how to's" on using Google Calendar on their site, let me know!

Hope you like it.