help with twisted webserver and rpy script
hi there ppl :) i have a question, twisted is very new to me, i'm using the twisted webserver to control my tvcard, i wrote several scripts and got it all working, i also use a rpy script to switch stations from the website, only that it seems that i need to create for each station a rpy script, i'd rather have all stations in once rpy file and do it that way, i got it working in php, but is it possible to write php in rpy? here is an example of one of my rpy scripts to switch stations: #!/usr/bin/python import sys import os from www.web_types import HTMLResource, FreevoResource class TestResource(FreevoResource): def _render(self, request): fv = HTMLResource() fv.printHeader(_('LiveTV'), 'styles/main.css',selected=_('Test')) form = request.args command = "v4lctl setstation MTV" os.system(command) fv.res += "<html>