On Aug19, 7:24pm, rev <reneversch...@gmail.com> wrote: > I tried the reload() trick in the past but it kept complaining: > TypeError: reload() argument must be module > > Got it working now :) > > import sys > utilsmodule = 'applications.%s.modules.utils' % request.application > from utilsmodule import doit > reload(sys.modules[utilsmodule]) #@@@ Development only, remove for > production > > Enjoy, > rev
Mmmm, somehow, I still can't get it work, even though I already change your: from utilsmodule import MyClass into: exec("from %s import MyClass"%utilsmodule) Later a ticket is issued, complaining: TypeError: super(type, obj): obj must be an instance or subtype of type when I try to do: class SubClass(MyClass): def __init__(self,blah): super(SubClass,self).__init__(blah) Well, let it be. I can live with my previous imperfect trick. Sincerely, Iceberg --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---