os.system('a2ensite telecaster.conf')
os.system('/etc/init.d/apache2 reload')
+ dir = '/etc/pm/'
+ os.system('cp -r conf' + dir + '* ' + dir)
+
def install_init(self):
os.chdir(self.app_dir)
# Author: Guillaume Pellerin <yomguy@parisson.com>
"""
-version = '0.5.5'
+version = '0.5.6'
import os
import re
self.deefuzzer_path = '/usr/local/bin/deefuzzer'
elif os.path.exists('/usr/bin/deefuzzer'):
self.deefuzzer_path = '/usr/bin/deefuzzer'
-
+
def transition_head(self):
html_file = open('telecaster_starting_head.html', 'r')
html = html_file.read()
def main(self):
edcast_pid = get_pid('edcast_jack', self.uid)
-
+
deefuzzer_pid = get_pid(self.deefuzzer_path+' '+self.user_dir+os.sep+'deefuzzer.xml', self.uid)
writing = edcast_pid != []
casting = deefuzzer_pid != []
'session': '',
'professor': '',
'comment': ''}
-
+
for data in self.conference_dict:
if not form.has_key(data):
self.conference_dict[data] = 'Inconnu'
if '....' in value:
self.conference_dict[data] = 'Inconnu'
else:
- value = re.sub(r'\W+', '_', value)
+ value = re.sub(r'\W+', '_', value)
self.conference_dict[data] = value.decode('utf-8')
self.conference_dict['title'] = self.title