What is this about?
Is this something about web.py and python 3?

-- Alexey

On Sep 23, 1:17 pm, Babbu Pehlwan <[email protected]> wrote:
> *serverModule*.py
> import web
> import threading
>
> class webServer(threading.Thread):
>        port = "1234"
>        event_logging_enabled  = "True"
>
>        def getlogEnabled(self):
>                print "Stub getlogEnabled(): ",self.event_logging_enabled
>
>        def __init__(self):
>                threading.Thread.__init__(
> self)
>                """ Logging """
>                print
> "Init------------------------",self.event_logging_enabled
>                self.event_logging_filename = "ueLogs.log"
>
>        def run(self):
>                urls = (
>                '/','webServer',
>                )
>                app = web.application(urls,globals())
>                sys.argv.append(webServer.port)
>                app.run()
>
>        def POST(self):
>                print "in POST"
>                print "Stub POST(): Logging Enabled :
> ",self.event_logging_enabled
>
> *TestingScript.py*
>
> from serverModule import *
> u = webServer()
> u.setDaemon(True)
> u.start()
> time.sleep(1)
>
> u.event_logging_enabled = "True"
> u.getlogEnabled()
> time.sleep(20)
>
> On Thu, Sep 22, 2011 at 8:07 PM, Anand Chitipothu <[email protected]>wrote:
>
>
>
>
>
>
>
> > 2011/9/22 NilColor <[email protected]>:
> > > Hello!
> > > OK, currently there is uWSGI (http://projects.unbit.it/uwsgi/wiki/
> > > RunOnPython3k) and CherryPy (http://www.cherrypy.org/) that supports
> > > Python3. And i gave them a try.
> > > I've used 2to3 tool plus some manual tricks and "Hello, world!"
> > > application works. But I'm not sure i done transition right...
> > > Is there any plans to update web.py to use it with Python?
>
> > Can you share your code?
>
> > Anand
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "web.py" 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/webpy?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en.

Reply via email to