Michele Simionato wrote: > But now, where do I put the call to this server factory in the > configuration file? > I feel pretty stupid, but after various attemps I am stuck. > I am using Pylons and the configuration file is the following: > > [server:main] > > use = egg:Paste#http > > host = 0.0.0.0 > > port = 5000 > >
You could either add your server factory as an entry-point in your setup.py file, and then use the egg: notation (maybe you don't have one of those), or on http://pythonpaste.org/deploy/ scroll down to "Applications" section, I think this is what you want (replace myapp with whatever it takes to reach your usesimplerserver.py file as if you were importing it) [server:main] use = myapp.usesimpleserver:server_factory host = 0.0.0.0 port = 5000 -- Brad Clements, [EMAIL PROTECTED] (315)268-1000 http://www.murkworks.com AOL-IM: BKClements _______________________________________________ Paste-users mailing list [email protected] http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users
