IIRC You can import/call controllers if you treat them as modules. You
just need to drop a __init__py in the dir and that's it.

On Mar 19, 6:28 pm, Yarko Tymciurak <[email protected]> wrote:
> On Thu, Mar 19, 2009 at 7:31 AM, AchipA <[email protected]> wrote:
>
> > Keith,
>
> > WingIDE is cross platform, linux/windows/macos are all fine. It is a
> > fine balance between raw shell things (ipython is mighty good as a
> > development shell, but that depends on what you mean on debugging) and
> > monster IDE-s like Eclipse.
>
> > As for using the shell, it's pretty much the same as any python shell.
> > What I do when I don't have wing at my disposal is:
>
> > python -S myapp -M -N -D 0
>
> > and there you have all the controllers/functions at your disposal.
>
> That's not quite accurate:  gluon and model files load;  controllers are
> per-request, and with the shell you do not have this.
>
> Maybe someone can work out how you would setup to include controllers (so
> you could test)...  look at how web2py.py does it;
>
> As it is, you have gluon and anything in your models directory.
>
>
>
> > From there on you can use the same methods as on any other python
> > development, but that's more generic/ipython debug talk.
>
> > On Mar 19, 9:19 am, Keith Edmunds <[email protected]> wrote:
> > > On Wed, 18 Mar 2009 23:50:46 -0500, [email protected] said:
>
> > > > That's the basic Wing pattern.
>
> > > Hmmm. I've been following this thread with interest, hoping that maybe
> > > there would be a pointer to a guide to using the shell within web2py for
> > > debugging (is there?). The reference to WingIDE is disappointing: I don't
> > > use Windows, so that isn't an option. I don't see anything in the printed
> > > manual about using the shell, so is there somewhere I can go that will
> > > tell me how to use it to debug?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" 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/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to