<telecaster>
<url>http://localhost</url>
- <title>Pre-Barreau - Telecaster 1</title>
+ <title>Pre-Barreau</title>
<port>8000</port>
<format>mp3</format>
<telecaster>
<infos>
- <short_name>Pre-Barreau - ICP</short_name>
- <name>Pre-Barreau - ICP</name>
+ <short_name>Pre-Barreau</short_name>
+ <name>Pre-Barreau</name>
<description>La preparation au Barreau de Paris</description>
- <url>http://pre-barreau.com</url>
+ <url>http://augustins.pre-barreau.com</url>
<genre>Other</genre>
<channels>1</channels>
</infos>
self.lock_file = self.root_dir + os.sep + self.conf['server']['lock_file']
self.title = self.conf['infos']['name']
self.uid = os.getuid()
+ self.url = self.conf['infos']['url']
def main(self):
odd_pid = get_pid('^oddcastv3\ -n', self.uid)
casting = False
writing = rip_pid != []
casting = odd_pid != []
- form = WebView(self.school_file, version)
+ form = WebView(self.school_file, self.url, version)
if odd_pid == [] and form.has_key("action") and \
form.has_key("department") and form.has_key("conference") and \
class WebView(FieldStorage):
"""Gives the web CGI frontend"""
- def __init__(self, school_file, version):
+ def __init__(self, school_file, url, version):
FieldStorage.__init__(self)
self.version = version
self.conf = xml2dict(school_file)
break
except:
self.ip = 'localhost'
- self.url = 'http://' + self.ip
+ self.url = url
self.port = self.conf['port']
self.acpi = acpi.Acpi()
self.format = self.conf['format']