What's a IM field?
On Sep 22, 10:13 pm, Robin B <robi...@gmail.com> wrote:
> You can edit app.yaml to dispatch requests to those xmpp handlers
> based on prefix (/_ah/*), and let web2py handle everything that's left
> (/*)
>
> Or you can rewrite those handlers as web2py controller/functions and
> use routes.py to map the specific urls to app/controller/function
>
> Robin
>
> On Sep 22, 5:44 pm, murray3 <ch...@murraypost.net> wrote:
>
> > I am interested in the way we can convert GAE sample web apps to
> > web2py, in particular the xmpp tutorial
> > :http://code.google.com/appengine/articles/using_xmpp.html
>
> > Seems straight forward to import the modules etc.
>
> > How should the following be ported to web2py to handle the xmpp stuff?
> > def main():
> > app = webapp.WSGIApplication([
> > ('/', LatestHandler),
> > ('/_ah/xmpp/message/chat/', XmppHandler),
> > ], debug=True)
> > wsgiref.handlers.CGIHandler().run(app)
>
> > the tutorial states the following:
>
> > " There's one last thing we need to do to get this all working, of
> > course - hook it up to the serving infrastructure so it can serve
> > requests. Fortunately, a CommandHandler is a standard webapp
> > RequestHandler subclass, so we can set it up as we would any other
> > handler. Modify the lines where the application variable is defined to
> > read like this:
>
> > application = webapp.WSGIApplication([
> > ('/_ah/xmpp/message/chat/', XmppHandler)], debug=True)
>
> > The URL path here - /_ah/xmpp/message/chat - is a 'reserved' one that
> > all XMPP messages get sent to. "
>
> > any pointers to get me started.
> > regards
> > chrism
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---