Good point... You can subclass them. Problem is this is how they work:

Consider

db.table.field.something()

db.table.field is a Field with Extends expression

"something" is a method of Field or Expression and delegates to

self.table.field.db._adapter.SOMETHING(....)

which performs the action.

So adding a feature is not as easy as extending or subclassing a
class. Most actions involved two or more classes. Implementing a new
feature requires two steps:
- adding an API at the web2py layer (Field, Expression, Rows, etc).
- adding a translation for each supported adapter (they all extend
BaseAdapter).



On Aug 6, 12:41 am, pbreit <pbreitenb...@gmail.com> wrote:
> I'm taking a closer look at this again. Can I subclass or extend DAL or do I
> have to edit dal.py directly?
>
> I was trying to do this with executesql and one problem I ran into is that
> my virtualfields did not seem to be coming through. Is that expected?

Reply via email to