From: Yaroslav S. <ya...@gm...> - 2009-09-17 15:37:35
|
Hi, I personally don't think it's a good idea to pass DBF instance everywhere. Let's add this knowledge only if it's really needed (you say that FPT MEMO looks like the case). I would expect some factory (which always accepts DBF instances as an argument) which knows if DBF instance should be passed to the Field or not. -- Regards, Yaroslav > Hi, > > I have implemented FPT memo fields, but have a question how you would > like it plugged into the core. (I haven't implemented DBT memo > fields, but > if FPT is done correctly, it should be easy to add more memo field > types. > > The problem is that currently Fields are entirely ignorant of the > dbf, and > this is fine, except with memos they will need this information. > > I think the preferred way would be to pass the dbf instance to all > fields, > and there be some magic to guess the location of the FPT file, which > is > overridable on dbf instantiation. > > Please advise, > > Ali |