Hi,

In a project, I am using MapperExtension this way:

class TaskExtension(MapperExtension):
    def populate_instance(self, mapper, selectcontext, row, instance,
**flags):
         mapper.populate_instance(selectcontext, row, instance,
**flags)
         instance.on_load() # does some custom initialization

It gives me the following exception:

TypeError: ("'Task' object is unsubscriptable"...

Needing help.

thanks
Sanjay
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to