View Single Post
Old 03-11-2011, 04:13 PM   #5
kiwidude
Calibre Plugins Developer
kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.kiwidude ought to be getting tired of karma fortunes by now.
 
Posts: 4,732
Karma: 2197770
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
Ok, we are getting OT with my original problem. I still don't get how you can downcast a class though? If I was doing nothing but creating books, I would have no problem with what you suggest, but I just don't get how when my starting point is a list of Metadata objects retrieved like this:
mi = db.get_metadata(row.row())

that I can somehow downcast that Metadata object returned from that function into a SeriesBook class? I apologise if this is Python ignorance here, its just something you can't do in C# when an object has been created as the base class?
kiwidude is offline   Reply With Quote