[Twisted-web] starting up with twisted.web2

Boh Yap bhyz00 at gmail.com
Wed Sep 21 11:38:59 MDT 2005


I apologise for replying directly to Jp Calderone <exarkun at divmod.com>
instead of to the mailing list... new to all this (&gmail) and just
clicked reply ;-)

I am re-posting this to the list, with the hope someone could shed
some light on this...

On 9/21/05, Boh Yap <bhyz00 at gmail.com> wrote:
> hi,
Thanks for the prompt reply, JP...
> On 9/21/05, Jp Calderone <exarkun at divmod.com> wrote:
> > On Wed, 21 Sep 2005 02:56:22 +0800, Boh Yap <bhyz00 at gmail.com> wrote:
> > >hi,
> > >
> > >I'm a newbie with Twisted, and having messed around a bit with
> > >Tisted-1.3.0, I recently moved over to Twisted Web2.
> >
> >   Sounds like there's some confusion here.  There's Twisted 2.0, the successor to Twisted 1.3.  Then there's Twisted Web2, the yet-unreleased successor to Twisted Web.  Twisted Web2 almost certainly will not work with Twisted 1.3.  If you want to try out Web2, you need to install Twisted 2.0.
> >

Yes, am aware of that, am using Web2 with Twisted2, cldnt install otherwise.

> > >
> > >a few things did'nt work (like they did in Twisted-1.3.0:
> > >
> > >1.   I can't seem to 'mktap web' anymore, the reply I get is
> > >       Unknown command: web
> > >
> > >       without web.tap, how do I run a .rpy resource?
> > >       I find this useful for testing and debugging.
> > >
> >
> >   Once you install the right version of various things, you should regain
> > the ability to make web taps.  However, these will not give you a Web2
> > server.  You may not even want a Web2 server, though.  It's not clear
> > whether you were attempting to experiment with Twisted 2.0 or Twisted
> > Web2.
> >
Well the Web server generated form mktap was useful for experimenting
and testing.

Assuming I got the right things insatlled and running, the previous
questions still apply. Wld still need and appreciate answers for
those.. ;-)

many thanks.
> > > [snip]
> >
> >   Jp
> >

 2.   I managed to build my resource apps. into python modules, but I
miss being able to get tracebacks on the browser for debugging. Can I
get the browser to display Tracebacks?

3.   What will be the root directory for the twisted web app, assuming
the app is in a dir. like:

           /var/www/html/,     and run with    twistd -ny someapp.py

      from that dir.

    I need this because my references to styles etc... no longer work.
I have tried defining
    first as relative, then as absolute paths, but it still dose'nt work.

4.  I can't seem to sepcifiy a path for the logfile, if I follow the
example given in the docs.
         site = server.Site(static.File(WWWROOT), logPath=LOGPATH)

     I get an error:
          Failed to load application: __init__() got an unexpected
keyword argument 'logPath'

Would appreciate it very much if soemone could shed some light on
this. Am starting on a new project and wld like to give twisted.web2 a

When I get all this to work.. will do up some docs and post this up...
perhaps it could contribute to TechnoTurkey
<http://twisted.paisite.com> which I came across on this list..



More information about the Twisted-web mailing list