I'm using WebConsole widgit from toolbox.shell. For providing local
scope i changed a little new_console function like:
    def new_console(self):
        locs =
dict(__name__='tg-admin',__doc__=None,reload_console=self.new_console)
inserted>>>>>        locs.update(self.locs)
        mod = turbogears.util.get_model()
        if mod:
            locs.update(mod.__dict__)
        self.console = InteractiveConsole(locals=locs)

So it's easy to attach into necessory place by making console.locs =
locals().


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

Reply via email to