ret = subprocess.call(command, shell=True)
		if ret != 0:
			dialog_text = ('<br>sorry formating -  FAIL!!!, code:' + ret)
		return dialog_text

form = cgi.FieldStorage()
disk = form.getvalue('physical') or 'none'

if disk != 'none':
	result=install(disk) 

physical = disks.getPhysical()
logical =  disks.getLogical()
 
# make header
cfg.html_header()

print """
<script type="text/javascript">
$(function(){
	$("input:text, input:submit").button();
	$("div.set").buttonset();
});

$(window).load(function() {
    var iframe = $('#mainframe', parent.document.body);
	iframe.height($(document).outerHeight(true) ); 
});

$(function(){
	$("#dialog").dialog();
Beispiel #2
0
#!/usr/bin/python
# -*- coding:utf-8 -*-
import cfg, gettext
gettext.install('mod_mnger', './locale', unicode=True)

# этот файл нужен, чтоб не показывать пустую страницу во время чтения с фтп

cfg.html_header()
cfg.hide_div()

print """
<script type="text/javascript">
$('#loader').show();
$('#body').hide();
$('#loader').animate({opacity:0}, 3000);
$('#loader').animate({opacity:1}, 1000);
var deltime = setInterval('flash()', 5000)
window.location='/cgi-bin/repo.py'
</script>
</div>
</body>
</html>"""