﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
10112	Python Crash with ORM Inheritance	peterbraden@…	nobody	"This bug causes a reproducible crash in the python interpreter [python issue5014] on my system, so I can't give a specific traceback, but I believe that an infinite recursion is generated when I try and use the db_column in a TextField.

Basically, I'm modifying one of my models to allow inheritance of a field so rather than keep the existing field which cannot be overridden with a function in the subclass, I'm creating a property to access the field - ie:
{{{
class Foo(model):
  _bar = TextField(db_column = 'bar')

  bar = property(lambda x: x.bar)

class Bla(Foo):
  @property
  def bar(self): whatever

}}}
I think the db_column = 'bar' causes problems as there is a Foo.bar attribute so somewhere in the model this is screwing things up by making an infinite loop which for some reason is breaking the python runtime.

Reproducible with revision 9787"		closed	Database layer (models, ORM)	1.0		worksforme			Unreviewed	0	0	0	0	0	0
