From: <bms...@us...> - 2007-10-30 23:44:31
|
Revision: 2578 http://morphix.svn.sourceforge.net/morphix/?rev=2578&view=rev Author: bmsleight Date: 2007-10-30 16:44:27 -0700 (Tue, 30 Oct 2007) Log Message: ----------- Any testers ? Modified Paths: -------------- trunk/morphixlivekiosk/scripts/index.pl trunk/morphixlivekiosk/scripts/kabt.sh Modified: trunk/morphixlivekiosk/scripts/index.pl =================================================================== --- trunk/morphixlivekiosk/scripts/index.pl 2007-10-30 22:19:33 UTC (rev 2577) +++ trunk/morphixlivekiosk/scripts/index.pl 2007-10-30 23:44:27 UTC (rev 2578) @@ -20,22 +20,7 @@ close(OUT); } - -if (param("queue")) { - print "Content-type: text/html\n\n"; - - open(DAT, $templatequeue) || die("Could not open file!"); - @raw_data=<DAT>; - close(DAT); - - foreach $queue (@raw_data) - { - chop($queue); - ($urls,$emails)=split(/\|/,$queue); - print "$urls\n"; - } -} -elsif (param("built")) { +if (param("built")) { print header, start_html("Custom Built Kiosk LiveCD"), h1("Custom Built Kiosk LiveCD"); $built = param("built"); $video = param("v"); @@ -43,11 +28,11 @@ print p("$built/$video \n"); print p("$built/$iso \n"); $message = "Your custom built Kiosk LiveCD is ready. \n" - . "Please download and view the AutoTesting video first. \n " + . "Please download and view the AutoTesting video first. \n" . "The video will show how successful the build was and can save " . "vital bandwidth if the build did not go well. \n\n" - . "Video - http://$built/$video \n" - . "ISO - http://$built/$iso \n" + . "Video - $built/$video \n" + . "ISO - $built/$iso \n" . "\n" . "Enjoy Your Kiosk - kiosk.liveCD.org"; open(DAT, $templatequeue) || die("Could not open file!"); @@ -64,6 +49,20 @@ system "echo \"$message\" | mail -s 'Custom Built Kiosk LiveCD' $emails -- -r bu...@li... -"; system "cat $templatequeue | tail -n+2 >$templatequeue "; } +elsif (param("queue")) { + print "Content-type: text/html\n\n"; + + open(DAT, $templatequeue) || die("Could not open file!"); + @raw_data=<DAT>; + close(DAT); + + foreach $queue (@raw_data) + { + chop($queue); + ($urls,$emails)=split(/\|/,$queue); + print "$urls\n"; + } +} else { # # Start by printing the content-type, the title of the web page and a heading. @@ -169,15 +168,16 @@ print p("Templates successfully created : <a href='$templateurl" . ">" . "$brand" . "</a>"); print start_form(); print p("Template will be added to the queue to be built."); - print p("Once built, we will email the links contain the AutoTest Video and the iso to download"); + print p("Once built, we will email the links containing the AutoTest Video and the iso to download"); print p("Email Address: ", textfield(-name=>"email", -size=>30), hidden(-name=>'url', -default=> $templateurl ) ); print p(submit("Build!")); + print p("Builds are run from the queue of builds at 1500, 1800 and 2100 GMT daily"); print end_form(); } else { # Else, first time through so present form. print start_form(); print p("What is the Brand Name (e.g. MorphixLiveKiosk) ? ", textfield("brand")); - print p("Graphics file used from logo and backgrounds ? ", filefield(-name=>'graphic', + print p("Graphics file used for logo and backgrounds ? ", filefield(-name=>'graphic', -size=>30, -maxlength=>80)); print p("What is the Homepage URL (e.g. www.morphix.org) ? ", textfield("homepage")); Modified: trunk/morphixlivekiosk/scripts/kabt.sh =================================================================== --- trunk/morphixlivekiosk/scripts/kabt.sh 2007-10-30 22:19:33 UTC (rev 2577) +++ trunk/morphixlivekiosk/scripts/kabt.sh 2007-10-30 23:44:27 UTC (rev 2578) @@ -234,8 +234,8 @@ CALLWLOGG=$(cut -d\ -f2 $TMP_DIR/build-list.txt) CALLWLISOBN=$(basename $CALLWLISO) CALLWLOGGBN=$(basename $CALLWLOGG) - CALLWL="${EXTERNALURL}&b=${CALLWLISOBN}&v=${CALLWLOGGBN}" - echo wget --tries=3 --timeout=60 -nv --output-document=$TMP_DIR/call.txt $CALLWL + CALLWL="${QUEUEURL}&built=${EXTERNALURL}&v=${CALLWLOGGBN}&i=${CALLWLISOBN}" + wget --tries=3 --timeout=60 -nv --output-document=$TMP_DIR/call.txt $CALLWL fi } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gan...@us...> - 2007-11-02 22:14:50
|
Revision: 2582 http://morphix.svn.sourceforge.net/morphix/?rev=2582&view=rev Author: gandalfar Date: 2007-11-02 15:14:44 -0700 (Fri, 02 Nov 2007) Log Message: ----------- initial mbuild commit Added Paths: ----------- trunk/morphixlivekiosk/scripts/mbuild/ trunk/morphixlivekiosk/scripts/mbuild/__init__.py trunk/morphixlivekiosk/scripts/mbuild/incoming/ trunk/morphixlivekiosk/scripts/mbuild/manage.py trunk/morphixlivekiosk/scripts/mbuild/media/ trunk/morphixlivekiosk/scripts/mbuild/settings.py trunk/morphixlivekiosk/scripts/mbuild/templates/ trunk/morphixlivekiosk/scripts/mbuild/templates/index.html trunk/morphixlivekiosk/scripts/mbuild/urls.py trunk/morphixlivekiosk/scripts/mbuild/web/ trunk/morphixlivekiosk/scripts/mbuild/web/__init__.py trunk/morphixlivekiosk/scripts/mbuild/web/models.py trunk/morphixlivekiosk/scripts/mbuild/web/views.py Added: trunk/morphixlivekiosk/scripts/mbuild/__init__.py =================================================================== Added: trunk/morphixlivekiosk/scripts/mbuild/manage.py =================================================================== --- trunk/morphixlivekiosk/scripts/mbuild/manage.py (rev 0) +++ trunk/morphixlivekiosk/scripts/mbuild/manage.py 2007-11-02 22:14:44 UTC (rev 2582) @@ -0,0 +1,11 @@ +#!/usr/bin/env python +from django.core.management import execute_manager +try: + import settings # Assumed to be in the same directory. +except ImportError: + import sys + sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n(If the file settings.py does indeed exist, it's causing an ImportError somehow.)\n" % __file__) + sys.exit(1) + +if __name__ == "__main__": + execute_manager(settings) Property changes on: trunk/morphixlivekiosk/scripts/mbuild/manage.py ___________________________________________________________________ Name: svn:executable + * Added: trunk/morphixlivekiosk/scripts/mbuild/settings.py =================================================================== --- trunk/morphixlivekiosk/scripts/mbuild/settings.py (rev 0) +++ trunk/morphixlivekiosk/scripts/mbuild/settings.py 2007-11-02 22:14:44 UTC (rev 2582) @@ -0,0 +1,84 @@ +# Django settings for mbuild project. +import os +here = lambda x: os.path.join(os.path.dirname(__file__),x) + +DEBUG = True +TEMPLATE_DEBUG = DEBUG + +ADMINS = ( + # ('Your Name', 'you...@do...'), +) + +MANAGERS = ADMINS + +DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. +DATABASE_NAME = here('mbuild.db') # Or path to database file if using sqlite3. +DATABASE_USER = '' # Not used with sqlite3. +DATABASE_PASSWORD = '' # Not used with sqlite3. +DATABASE_HOST = '' # Set to empty string for localhost. Not used with sqlite3. +DATABASE_PORT = '' # Set to empty string for default. Not used with sqlite3. + +# Local time zone for this installation. Choices can be found here: +# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name +# although not all choices may be avilable on all operating systems. +# If running in a Windows environment this must be set to the same as your +# system time zone. +TIME_ZONE = 'Europe/London' + +# Language code for this installation. All choices can be found here: +# http://www.i18nguy.com/unicode/language-identifiers.html +LANGUAGE_CODE = 'en-us' + +SITE_ID = 1 + +# If you set this to False, Django will make some optimizations so as not +# to load the internationalization machinery. +USE_I18N = True + +# Absolute path to the directory that holds media. +# Example: "/home/media/media.lawrence.com/" +MEDIA_ROOT = here('media/') + +# URL that handles the media served from MEDIA_ROOT. Make sure to use a +# trailing slash if there is a path component (optional in other cases). +# Examples: "http://media.lawrence.com", "http://example.com/media/" +MEDIA_URL = '' + +# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a +# trailing slash. +# Examples: "http://foo.com/media/", "/media/". +ADMIN_MEDIA_PREFIX = '/media/' + +# Make this unique, and don't share it with anybody. +SECRET_KEY = 'r%v55owvj@9mn-3zj+8f5&an)b1d+7pzd(im=vf+^bij+*1cpk' + +# List of callables that know how to import templates from various sources. +TEMPLATE_LOADERS = ( + 'django.template.loaders.filesystem.load_template_source', + 'django.template.loaders.app_directories.load_template_source', +# 'django.template.loaders.eggs.load_template_source', +) + +MIDDLEWARE_CLASSES = ( + 'django.middleware.common.CommonMiddleware', + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.contrib.auth.middleware.AuthenticationMiddleware', + 'django.middleware.doc.XViewMiddleware', +) + +ROOT_URLCONF = 'mbuild.urls' + +TEMPLATE_DIRS = ( + # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates". + # Always use forward slashes, even on Windows. + # Don't forget to use absolute paths, not relative paths. + here('templates'), +) + +INSTALLED_APPS = ( + 'django.contrib.auth', + 'django.contrib.contenttypes', + 'django.contrib.sessions', + 'django.contrib.sites', + 'mbuild.web', +) Added: trunk/morphixlivekiosk/scripts/mbuild/templates/index.html =================================================================== --- trunk/morphixlivekiosk/scripts/mbuild/templates/index.html (rev 0) +++ trunk/morphixlivekiosk/scripts/mbuild/templates/index.html 2007-11-02 22:14:44 UTC (rev 2582) @@ -0,0 +1,5 @@ +<form action="." method="post" accept-charset="utf-8"> + {{ form.as_p }} + + <p><input type="submit" value="Continue →"></p> +</form> Added: trunk/morphixlivekiosk/scripts/mbuild/urls.py =================================================================== --- trunk/morphixlivekiosk/scripts/mbuild/urls.py (rev 0) +++ trunk/morphixlivekiosk/scripts/mbuild/urls.py 2007-11-02 22:14:44 UTC (rev 2582) @@ -0,0 +1,9 @@ +from django.conf.urls.defaults import * + +urlpatterns = patterns('', + (r'^$', 'mbuild.web.views.index'), + + # Uncomment this for admin: +# (r'^admin/', include('django.contrib.admin.urls')), + +) Added: trunk/morphixlivekiosk/scripts/mbuild/web/__init__.py =================================================================== Added: trunk/morphixlivekiosk/scripts/mbuild/web/models.py =================================================================== --- trunk/morphixlivekiosk/scripts/mbuild/web/models.py (rev 0) +++ trunk/morphixlivekiosk/scripts/mbuild/web/models.py 2007-11-02 22:14:44 UTC (rev 2582) @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. Added: trunk/morphixlivekiosk/scripts/mbuild/web/views.py =================================================================== --- trunk/morphixlivekiosk/scripts/mbuild/web/views.py (rev 0) +++ trunk/morphixlivekiosk/scripts/mbuild/web/views.py 2007-11-02 22:14:44 UTC (rev 2582) @@ -0,0 +1,29 @@ +from django.shortcuts import render_to_response +from django.template import RequestContext +from django import newforms as forms + +def index(request): + class BuildForm(forms.Form): + brand_name = forms.CharField(max_length=150, required=True) + graphics = forms.ImageField(required=False) + homepage = forms.CharField(max_length=150, required=True) + nav_bar = forms.BooleanField(widget=forms.RadioSelect(choices=[(True, 'Yes'), (False, 'No')]), + initial=True) + dhcp = forms.BooleanField(widget=forms.RadioSelect(choices=[(True, 'Yes'), (False, 'No')]), + initial=True) + flash = forms.BooleanField(widget=forms.RadioSelect(choices=[(True, 'Yes'), (False, 'No')]), + label="Include Flash?", initial=False) + java = forms.BooleanField(widget=forms.RadioSelect(choices=[(True, 'Yes'), (False, 'No')]), + label="Include Java?", initial=False) + + + if request.POST: + form = BuildForm(request.POST.copy()) + if form.is_valid(): + pass + else: + form = BuildForm() + + context = {'form': form} + return render_to_response('index.html', context, + context_instance=RequestContext(request)) \ No newline at end of file This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <bms...@us...> - 2007-11-11 23:26:20
|
Revision: 2595 http://morphix.svn.sourceforge.net/morphix/?rev=2595&view=rev Author: bmsleight Date: 2007-11-11 15:26:16 -0800 (Sun, 11 Nov 2007) Log Message: ----------- mbuild is moving along Modified Paths: -------------- trunk/morphixlivekiosk/scripts/index.pl trunk/morphixlivekiosk/scripts/kabt.sh trunk/morphixlivekiosk/scripts/mbuild/settings.py trunk/morphixlivekiosk/scripts/mbuild/templates/delete-queue.html trunk/morphixlivekiosk/scripts/mbuild/templates/emailnotify.html trunk/morphixlivekiosk/scripts/mbuild/templates/index.html trunk/morphixlivekiosk/scripts/mbuild/templates/java-terms-accept.html trunk/morphixlivekiosk/scripts/mbuild/templates/kabt-queue.html trunk/morphixlivekiosk/scripts/mbuild/templates/status.html trunk/morphixlivekiosk/scripts/mbuild/templates/template.html trunk/morphixlivekiosk/scripts/mbuild/templates/view-queue.html trunk/morphixlivekiosk/scripts/mbuild/urls.py trunk/morphixlivekiosk/scripts/mbuild/web/views.py Added Paths: ----------- trunk/morphixlivekiosk/scripts/mbuild/media/logo.gif trunk/morphixlivekiosk/scripts/mbuild/media/style.css trunk/morphixlivekiosk/scripts/mbuild/media/tableftE.gif trunk/morphixlivekiosk/scripts/mbuild/media/tabrightE.gif trunk/morphixlivekiosk/scripts/mbuild/templates/email-build.txt trunk/morphixlivekiosk/scripts/mbuild/templates/html-master.html trunk/morphixlivekiosk/scripts/mbuild/templates/mbuild-status.html trunk/morphixlivekiosk/scripts/mbuild/templates/mbuild.html trunk/morphixlivekiosk/scripts/mbuild/templates/step-1.html Modified: trunk/morphixlivekiosk/scripts/index.pl =================================================================== --- trunk/morphixlivekiosk/scripts/index.pl 2007-11-11 00:08:41 UTC (rev 2594) +++ trunk/morphixlivekiosk/scripts/index.pl 2007-11-11 23:26:16 UTC (rev 2595) @@ -31,8 +31,9 @@ . "Please download and view the AutoTesting video first. \n" . "The video will show how successful the build was and can save " . "vital bandwidth if the build did not go well. \n\n" - . "Video - $built/$video \n" - . "ISO - $built/$iso \n" + . "Preview - $built/$video.jpg \n" + . "Video - $built/$video \n" + . "ISO - $built/$iso \n" . "\n" . "Enjoy Your Kiosk - kiosk.liveCD.org"; open(DAT, $templatequeue) || die("Could not open file!"); @@ -46,7 +47,7 @@ # There might be a nice perl way - but some times bash is nice print p("Removed $urls from queue"); - system "echo \"$message\" | mail -s 'Custom Built Kiosk LiveCD' $emails -b bm...@ba... -- -r bu...@li... -"; + system "echo \"$message\" | mail -s 'Custom Built Kiosk LiveCD' $emails -b bm...@ba... -- -r bu...@li... -"; system "cat $templatequeue | tail -n+2 >$templatequeue "; } elsif (param("queue")) { Modified: trunk/morphixlivekiosk/scripts/kabt.sh =================================================================== --- trunk/morphixlivekiosk/scripts/kabt.sh 2007-11-11 00:08:41 UTC (rev 2594) +++ trunk/morphixlivekiosk/scripts/kabt.sh 2007-11-11 23:26:16 UTC (rev 2595) @@ -182,7 +182,8 @@ if [ "$NOTESTING" = "true" ]; then echo "Not testing the built iso" else - video-qemu-booting-iso.sh -q qemu_0.8.4-etch1 -t 800 -g 1024x768 -s "spc,spc,kp_enter" $OUTPUT.iso $OUTPUT.ogg + # Short term hack - su morph -c + su morph -c "video-qemu-booting-iso.sh -q qemu_0.8.4-etch1 -t 1200 -g 1024x768 -s \"spc,spc,kp_enter\" $OUTPUT.iso $OUTPUT.ogg" fi } @@ -234,7 +235,7 @@ CALLWLOGG=$(cut -d\ -f2 $TMP_DIR/build-list.txt) CALLWLISOBN=$(basename $CALLWLISO) CALLWLOGGBN=$(basename $CALLWLOGG) - CALLWL="${QUEUEURL}&built=${EXTERNALURL}&v=${CALLWLOGGBN}&i=${CALLWLISOBN}" + CALLWL="${QUEUEURL}?built=${EXTERNALURL}&v=${CALLWLOGGBN}&i=${CALLWLISOBN}" wget --tries=3 --timeout=60 -nv --output-document=$TMP_DIR/call.txt $CALLWL fi } Added: trunk/morphixlivekiosk/scripts/mbuild/media/logo.gif =================================================================== (Binary files differ) Property changes on: trunk/morphixlivekiosk/scripts/mbuild/media/logo.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/morphixlivekiosk/scripts/mbuild/media/style.css =================================================================== --- trunk/morphixlivekiosk/scripts/mbuild/media/style.css (rev 0) +++ trunk/morphixlivekiosk/scripts/mbuild/media/style.css 2007-11-11 23:26:16 UTC (rev 2595) @@ -0,0 +1,176 @@ +#footer { + color:#D51308; + font-size: 8px; + text-align: right; + background:#000; + } + +body { + margin:0px; + padding:0px; + font-family:verdana, arial, helvetica, sans-serif; + color:#333; + background-color:white; + } +h1 { + margin:0px 0px 15px 0px; + padding:0px; + font-size:28px; + line-height:28px; + font-weight:900; + color:#D51308; + } + +h2 { + margin:0px 0px 0px 0px; + padding:0px; + font-size:14px; + line-height:28px; + font-weight:900; + color:#D51308; + } + +h3 { + margin:0px 0px 15px 0px; + padding:0px; + font-size:10px; + line-height:28px; + font-weight:900; + color:#D51308; + } + + +p { + font:11px/20px verdana, arial, helvetica, sans-serif; + margin:0px 0px 16px 0px; + padding:0px; + } + #Content>p {margin:0px;} +/* #Content>p+p {text-indent:30px;} */ + +a { + color:#D51308; + font-size:11px; + text-decoration:none; + font-weight:600; + font-family:verdana, arial, helvetica, sans-serif; + } + +:link { color:#D51308) } /* for unvisited links */ +:visited { color:#480000 } /* for visited links */ +a:active { color:#480000 } /* when link is clicked */ +a:hover { color:#780000 } /* when mouse is over link */ + +/*- Menu Tabs--------------------------- */ + + #tabs { + float:left; + width:100%; + font-size:93%; + line-height:normal; + } + #tabs ul { + margin:0; + padding:10px 10px 0 50px; + list-style:none; + } + #tabs li { + display:inline; + margin:0; + padding:0; + } + #tabs a { + float:left; + background:url("tableft.gif") no-repeat left top; + margin:0; + padding:0 0 0 4px; + text-decoration:none; + } + #tabs a span { + float:left; + display:block; + background:url("tabright.gif") no-repeat right top; + padding:5px 15px 4px 6px; + color:#666; + } + /* Commented Backslash Hack hides rule from IE5-Mac \*/ + #tabs a span {float:none;} + /* End IE5-Mac hack */ + #tabs a:hover span { + color:#FF9834; + } + #tabs a:hover { + background-position:0% -42px; + } + #tabs a:hover span { + background-position:100% -42px; + } + + +/*- Menu Tabs E--------------------------- */ + + #tabsE { + float:left; + width:100%; + background:#000; + font-size:93%; + line-height:normal; + + } + #tabsE ul { + margin:0; + padding:10px 10px 0 50px; + list-style:none; + } + #tabsE li { + display:inline; + margin:0; + padding:0; + } + #tabsE a { + float:left; + background:url("tableftE.gif") no-repeat left top; + margin:0; + padding:0 0 0 4px; + text-decoration:none; + } + #tabsE a span { + float:left; + display:block; + background:url("tabrightE.gif") no-repeat right top; + padding:5px 15px 4px 6px; + color:#FFF; + } + /* Commented Backslash Hack hides rule from IE5-Mac \*/ + #tabsE a span {float:none;} + /* End IE5-Mac hack */ + #tabsE a:hover span { + color:#FFF; + } + #tabsE a:hover { + background-position:0% -42px; + } + #tabsE a:hover span { + background-position:100% -42px; + } + +/* Images */ +/*img { +/* display: block;*/ +/* margin-left: auto; */ +/* margin-right: auto */ + } + + + +label,input { + font:11px/20px verdana, arial, helvetica, sans-serif; +} + +label { + font:11px/20px verdana, arial, helvetica, sans-serif; +} + +ul { + font:11px/20px verdana, arial, helvetica, sans-serif; +} \ No newline at end of file Added: trunk/morphixlivekiosk/scripts/mbuild/media/tableftE.gif =================================================================== (Binary files differ) Property changes on: trunk/morphixlivekiosk/scripts/mbuild/media/tableftE.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Added: trunk/morphixlivekiosk/scripts/mbuild/media/tabrightE.gif =================================================================== (Binary files differ) Property changes on: trunk/morphixlivekiosk/scripts/mbuild/media/tabrightE.gif ___________________________________________________________________ Name: svn:mime-type + application/octet-stream Modified: trunk/morphixlivekiosk/scripts/mbuild/settings.py =================================================================== --- trunk/morphixlivekiosk/scripts/mbuild/settings.py 2007-11-11 00:08:41 UTC (rev 2594) +++ trunk/morphixlivekiosk/scripts/mbuild/settings.py 2007-11-11 23:26:16 UTC (rev 2595) @@ -87,5 +87,4 @@ EMAIL_USE_TLS = True EMAIL_HOST = 'smtp.gmail.com' EMAIL_HOST_USER = 'liv...@go...' -EMAIL_HOST_PASSWORD = '' EMAIL_PORT = 587 Modified: trunk/morphixlivekiosk/scripts/mbuild/templates/delete-queue.html =================================================================== --- trunk/morphixlivekiosk/scripts/mbuild/templates/delete-queue.html 2007-11-11 00:08:41 UTC (rev 2594) +++ trunk/morphixlivekiosk/scripts/mbuild/templates/delete-queue.html 2007-11-11 23:26:16 UTC (rev 2595) @@ -1,8 +1,11 @@ -<h1>Custom Built Kiosk LiveCD</h1> +{% extends "html-master.html" %} +{% block content %} {% if queue_list %} <p><a href=/mbuild/status/{{ queue_list.template }}/>{{ queue_list.template }}</a> <a href=http://{{ queue_list.homepage }}>{{ queue_list.brand }}</a> - Has been built ? {{ queue_list.built }} </p> <p>{{ queue_list.builtdomain }}, {{ queue_list.builtiso }}, {{ queue_list.builtjpg }}, {{ queue_list.builtogg}} {% else %} <p>No template in current queue.</p> -{% endif %} \ No newline at end of file +{% endif %} + +{% endblock %} Added: trunk/morphixlivekiosk/scripts/mbuild/templates/email-build.txt =================================================================== --- trunk/morphixlivekiosk/scripts/mbuild/templates/email-build.txt (rev 0) +++ trunk/morphixlivekiosk/scripts/mbuild/templates/email-build.txt 2007-11-11 23:26:16 UTC (rev 2595) @@ -0,0 +1,15 @@ +Custom Built Kiosk LiveCD - Build is complete! + +The {{queue_list.brand}}-LiveCD has been tested, There are screenshots of the {{queue_list.brand}}-LiveCD booting.[1]. There is also video [2] of the {{queue_list.brand}}-LiveCD booting. Having a look at the screenshots and video could save time and avoid you downloading an iso that will not boot. + +Of course {{queue_list.brand}}-Kiosk is available for download [3]. + +Hope you enjoy your {{queue_list.brand}}-Kiosk! We welcome your feedback either by email or by visiting mbuild.livecd.org. + +Regards, +mbuild.livecd.org + + +[1] - http://{{queue_list.builtdomain}}/{{queue_list.builtjpg}} +[2] - http://{{queue_list.builtdomain}}/{{queue_list.builtogg}} +[3] - http://{{queue_list.builtdomain}}/{{queue_list.builtiso}} \ No newline at end of file Modified: trunk/morphixlivekiosk/scripts/mbuild/templates/emailnotify.html =================================================================== --- trunk/morphixlivekiosk/scripts/mbuild/templates/emailnotify.html 2007-11-11 00:08:41 UTC (rev 2594) +++ trunk/morphixlivekiosk/scripts/mbuild/templates/emailnotify.html 2007-11-11 23:26:16 UTC (rev 2595) @@ -1,7 +1,10 @@ -<h1>Custom Built Kiosk LiveCD</h1> +{% extends "html-master.html" %} + +{% block content %} <p>Template is added to the queue to be built<p> <p>We can email you when the Kiosk has been built.<p> <form enctype="multipart/form-data" method="post" action="."> {{ form.as_p }} <p><input type="submit" value="Notify →"></p> </form> +{% endblock %} Added: trunk/morphixlivekiosk/scripts/mbuild/templates/html-master.html =================================================================== --- trunk/morphixlivekiosk/scripts/mbuild/templates/html-master.html (rev 0) +++ trunk/morphixlivekiosk/scripts/mbuild/templates/html-master.html 2007-11-11 23:26:16 UTC (rev 2595) @@ -0,0 +1,31 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <link rel="stylesheet" href="/css/style.css" /> + <title>Custom Kiosk LiveCD</title> +</head> +<h1><img src="/img/logo.gif" id="logo" alt="mbuild.livecd.net logo" > Build Kiosks - on the web for the web.</h1> +<div id="tabsE"> + <ul> + <li><a href="/download/mlk/" title="Download MorphixLiveKiosk"><span>Download MorphixLiveKiosk</span></a></li> + <li><a href="/start/" title="Start a New Build"><span>Start a New Build</span></a></li> + <li><a href="/view-queue/" title="View Build Queue"><span>View Build Queue</span></a></li> + <li><a href="/" title="Leave Comments"><span>Leave Comments</span></a></li> + <li><a href="/" title="mbuilder.blog"><span>mbuilder.blog</span></a></li> + </ul> +</div> +<br /><br /> + + + <div id="Content"> + {% block content %}{% endblock %} + </div> +</body> +<p> </p> +<p> </p> +<p> </p> +<div id="footer"> + <p>mbuild - <a href=/credits/>Credits</a></p> +</div> +</html> \ No newline at end of file Modified: trunk/morphixlivekiosk/scripts/mbuild/templates/index.html =================================================================== --- trunk/morphixlivekiosk/scripts/mbuild/templates/index.html 2007-11-11 00:08:41 UTC (rev 2594) +++ trunk/morphixlivekiosk/scripts/mbuild/templates/index.html 2007-11-11 23:26:16 UTC (rev 2595) @@ -1,6 +1,17 @@ -<h1>Custom Built Kiosk LiveCD</h1> +{% extends "html-master.html" %} -<form enctype="multipart/form-data" method="post" action="."> - {{ form.as_p }} - <p><input type="submit" value="Continue →"></p> -</form> +{% block content %} +<p>This is a new Morphix CD, based on the previous LiveCDs released by <a href="http://livecd.net" class="external text" title="http://livecd.net">LiveCD.net</a>. The <i><a href="http://livecd.net" class="external text" title="http://livecd.net">LiveCD.net</a> stuff was create by Dusan Smolnikar (art), Gasper Koren (coding), Jure Cuhalev (coding), Ales Kristof (coding)</i>. Alot of the code has been reused. Thanks to all at liveCD.net</p> + +<p>It is a LiveCD that contains a locked down version of firefox-browser. It was built using <a href=/>mbuild</a> + +<p>MorphixLiveKiosk uses the <a href="http://projects.o-hand.com/matchbox/">Matchbox window manager</a>.For licensing reasons it does not contain Java or Flash. However, <a href=/>mbuild</a> has an option when building MorphixLiveKiosk to build a kiosk containing java and flash.</p> + +<p>It is designed to be easy to build, see the <a hre="http://www.morphix.org>Morphix</a> Manual<a href="http://www.morphix.org/doc/how_tos/docbook_html/ar01s05.html" class="external text" title="http://www.morphix.org/doc/how tos/docbook html/ar01s05.html">HowTo - Build a LiveCD in two commands</a> + +<p>Mention Debian and Morphix</p> + +<p>What is mbuild......<p> + +<p>Current queue status<p> +{% endblock %} Modified: trunk/morphixlivekiosk/scripts/mbuild/templates/java-terms-accept.html =================================================================== --- trunk/morphixlivekiosk/scripts/mbuild/templates/java-terms-accept.html 2007-11-11 00:08:41 UTC (rev 2594) +++ trunk/morphixlivekiosk/scripts/mbuild/templates/java-terms-accept.html 2007-11-11 23:26:16 UTC (rev 2595) @@ -1,16 +1,17 @@ -<h1>Custom Built Kiosk LiveCD</h1> +{% extends "html-master.html" %} + +{% block content %} <h2>Java Terms and conditons</h2> -Below is a note <a href=http://download.java.net/dlj/DLJ-FAQ.html#q17>extracted from Java.net</a>:- +<p>Below is a note <a href=http://download.java.net/dlj/DLJ-FAQ.html#q17>extracted from Java.net</a>:-</p> <blockquote> -17. What do you mean by "Present for acceptance end user licenses" (from #8 above)? Do I have to create a click-through license display when a user first installs or runs the JDK? Must my users accept the license? - -Your users must agree to the license terms for the JDK before installing it. While you aren't required to show the DLJ on first use or installation, you must inform them that the JDK is licensed software and that they must agree to the license before using it. A click-through mechanism is the preferred way to do this, but at a minimum you must present the license by some appropriate means for acceptance. For example, your OS download procedure could show the user a page that informs him or her that software packages included in the download may contain software licenses to which the user must agree before installation, and allow the user to review them before download. - -You can leverage your distribution's packaging technology to ensure that the license terms have been accepted. For instance, on Debian and derivative distributions, you could configure the package so that if the debconf key for accepting the DLJ has not been pre-accepted, the installation will be canceled if the license cannot be presented. The point of presenting the license is that an individual, corporation, non-profit or entity which will be an end user of the JRE or JDK has had a chance to review and agree to the DLJ. If the user or administrator pre-accepts the key for DLJ agreement on behalf of herself or her group then it is perfectly acceptable to silently install Sun Java on one or many computers. This is an excellent example of how you can leverage packaging infrastructure to comply with the terms of the DLJ in ways that are convenient and expected for your users. +<p>17. What do you mean by "Present for acceptance end user licenses" (from #8 above)? Do I have to create a click-through license display when a user first installs or runs the JDK? Must my users accept the license?<p> +<p>Your users must agree to the license terms for the JDK before installing it. While you aren't required to show the DLJ on first use or installation, you must inform them that the JDK is licensed software and that they must agree to the license before using it. A click-through mechanism is the preferred way to do this, but at a minimum you must present the license by some appropriate means for acceptance. For example, your OS download procedure could show the user a page that informs him or her that software packages included in the download may contain software licenses to which the user must agree before installation, and allow the user to review them before download.</p> +<p>You can leverage your distribution's packaging technology to ensure that the license terms have been accepted. For instance, on Debian and derivative distributions, you could configure the package so that if the debconf key for accepting the DLJ has not been pre-accepted, the installation will be canceled if the license cannot be presented. The point of presenting the license is that an individual, corporation, non-profit or entity which will be an end user of the JRE or JDK has had a chance to review and agree to the DLJ. If the user or administrator pre-accepts the key for DLJ agreement on behalf of herself or her group then it is perfectly acceptable to silently install Sun Java on one or many computers. This is an excellent example of how you can leverage packaging infrastructure to comply with the terms of the DLJ in ways that are convenient and expected for your users.</p> </blockquote> <p>Please read the following terms downloaded from <a href=http://download.java.net/dlj/DLJ-v1.1.txt>http://download.java.net/dlj/DLJ-v1.1.txt</a>:-<p> <blockquote> +<PRE> Operating System Distributor License for Java version 1.1 SUN MICROSYSTEMS, INC. ("SUN") IS WILLING TO LICENSE THE JAVA PLATFORM @@ -209,11 +210,11 @@ Santa Clara, California 95054, U.S.A. DLJ v1.1 27APR2006ANS - +</PRE> </blockquote> -<p>We can email you when the Kiosk has been built.<p> <form enctype="multipart/form-data" method="post" action="."> -{{ form.as_p }} +<p>{{ form.as_p }}</p> <p><input type="submit" value="Notify →"></p> </form> +{% endblock %} Modified: trunk/morphixlivekiosk/scripts/mbuild/templates/kabt-queue.html =================================================================== --- trunk/morphixlivekiosk/scripts/mbuild/templates/kabt-queue.html 2007-11-11 00:08:41 UTC (rev 2594) +++ trunk/morphixlivekiosk/scripts/mbuild/templates/kabt-queue.html 2007-11-11 23:26:16 UTC (rev 2595) @@ -1,2 +1,2 @@ -{% if queue_list %}{% for queue in queue_list %}http://mbuild.livecd.org/mbuild/morphix.xml/{{ queue.template }}/ +{% if queue_list %}{% for queue in queue_list %}http://mbuild.livecd.org/xml/morphix/{{ queue.template }}/ {% endfor %}{% endif %} \ No newline at end of file Added: trunk/morphixlivekiosk/scripts/mbuild/templates/mbuild-status.html =================================================================== --- trunk/morphixlivekiosk/scripts/mbuild/templates/mbuild-status.html (rev 0) +++ trunk/morphixlivekiosk/scripts/mbuild/templates/mbuild-status.html 2007-11-11 23:26:16 UTC (rev 2595) @@ -0,0 +1,7 @@ +<h1>Custom Built Kiosk LiveCD</h1> + +{% if newtemplate %} + <p>Will email you when Kiosk has been built.<p> +{% else %} + <p>We can email you when the Kiosk has been built.<p> +{% endif %} Added: trunk/morphixlivekiosk/scripts/mbuild/templates/mbuild.html =================================================================== --- trunk/morphixlivekiosk/scripts/mbuild/templates/mbuild.html (rev 0) +++ trunk/morphixlivekiosk/scripts/mbuild/templates/mbuild.html 2007-11-11 23:26:16 UTC (rev 2595) @@ -0,0 +1,11 @@ +{% extends "html-master.html" %} + +{% block content %} +<p>Template {{ template_name }} has been added to the <a href=/view-queue>queue of kiosks</a> to be built<p> +<p>We can email you when the Kiosk has been built.<p> +<form enctype="multipart/form-data" method="post" action="."> +{{ form.as_p }} + <p><input type="submit" value="Notify →"></p> +{% endif %} +</form> +{% endblock %} Modified: trunk/morphixlivekiosk/scripts/mbuild/templates/status.html =================================================================== --- trunk/morphixlivekiosk/scripts/mbuild/templates/status.html 2007-11-11 00:08:41 UTC (rev 2594) +++ trunk/morphixlivekiosk/scripts/mbuild/templates/status.html 2007-11-11 23:26:16 UTC (rev 2595) @@ -1,17 +1,21 @@ -<h1>Custom Built Kiosk LiveCD</h1> -<h2>Status</h2> +{% extends "html-master.html" %} + +{% block content %} + {% if newtemplate.built %} - <h3>Built!</h3> + <h3>Status of {{newtemplate.brand}} - Built!</h3> <p>Email has been sent, build is complete. It is listed in the <a href=/view-queue/>hall of fame</a> of built and yet to be build kiosks<p> <p>The LiveCD has been tested - there is a <a href=http://{{newtemplate.builtdomain}}/{{newtemplate.builtogg}}>video of the {{newtemplate.brand}} LiveCD booting</a>. Having a look at the video could save time downloading an iso that will not boot</a>. Below are frames captured from the video.</p> <img src=http://{{newtemplate.builtdomain}}/{{newtemplate.builtjpg}}> <p>The <a href=http://{{newtemplate.builtdomain}}/{{newtemplate.builtiso}}>{{newtemplate.brand}} Kiosk</a> is available for download.</p> + <p>You can cheak the status of your build request at anytime by visiting this page<p> {% else %} - <h3>Queued For Building</h3> - <p>You build request has joined the <a href=/view-queue/>queue.</a><p> - <p>Will send an email when the elves have built the kiosk.<p> + <h3>Status of {{newtemplate.brand}} - Queued For Building</h3> + <p>You build request has joined the <a href=/view-queue/>queue</a>. Will send an email when the elves have built the kiosk.<p> <p>You can cheak the status of your build request at anytime by visiting this page<p> {% endif %} -<p><a href=/templates/{{newtemplate.template}}>Raw Template.xml</a><p> -<p><a href=/xml/morphix/{{newtemplate.template}}/>Morphix Style template.xml</a><p> -<p>You can cheak the status of your build request at anytime by visiting this page<p> +<small> + <p><a href=/templates/{{newtemplate.template}}>Raw Template.xml</a> - <a href=/xml/morphix/{{newtemplate.template}}/>Morphix Style template.xml</a><p> +</small> + +{% endblock %} Added: trunk/morphixlivekiosk/scripts/mbuild/templates/step-1.html =================================================================== --- trunk/morphixlivekiosk/scripts/mbuild/templates/step-1.html (rev 0) +++ trunk/morphixlivekiosk/scripts/mbuild/templates/step-1.html 2007-11-11 23:26:16 UTC (rev 2595) @@ -0,0 +1,8 @@ +{% extends "html-master.html" %} + +{% block content %} +<form enctype="multipart/form-data" method="post" action="."> + {{ form.as_p }} + <p><input type="submit" value="Continue →"></p> +</form> +{% endblock %} Modified: trunk/morphixlivekiosk/scripts/mbuild/templates/template.html =================================================================== --- trunk/morphixlivekiosk/scripts/mbuild/templates/template.html 2007-11-11 00:08:41 UTC (rev 2594) +++ trunk/morphixlivekiosk/scripts/mbuild/templates/template.html 2007-11-11 23:26:16 UTC (rev 2595) @@ -1,4 +1,6 @@ -<h1>Custom Built Kiosk LiveCD</h1> +{% extends "html-master.html" %} + +{% block content %} <p>Template {{ template_name }} is added to the queue to be built<p> <p>We can email you when the Kiosk has been built.<p> @@ -6,3 +8,4 @@ {{ form.as_p }} <p><input type="submit" value="Notify →"></p> </form> +{% endblock %} \ No newline at end of file Modified: trunk/morphixlivekiosk/scripts/mbuild/templates/view-queue.html =================================================================== --- trunk/morphixlivekiosk/scripts/mbuild/templates/view-queue.html 2007-11-11 00:08:41 UTC (rev 2594) +++ trunk/morphixlivekiosk/scripts/mbuild/templates/view-queue.html 2007-11-11 23:26:16 UTC (rev 2595) @@ -1,11 +1,18 @@ -<h1>Custom Built Kiosk LiveCD</h1> +{% extends "html-master.html" %} +{% block content %} + {% if queue_list %} <ul> {% for queue in queue_list %} - <li><a href=/mbuild/status/{{ queue.template }}/>{{ queue.template }}</a> <a href=http://{{ queue.homepage }}>{{ queue.brand }}</a> - Has been built ? {{ queue.built }} </li> + {% if queue.built %} + <li><a href=/mbuild/status/{{ queue.template }}/>{{ queue.template }}</a> <a href=http://{{ queue.homepage }}>{{ queue.brand }}</a> - Has been built ? Yep </li> + {% else %} + <li><a href=/mbuild/status/{{ queue.template }}/>{{ queue.template }}</a> <a href=http://{{ queue.homepage }}>{{ queue.brand }}</a> - Has been built ? Not Yet </li> + {% endif %} {% endfor %} </ul> {% else %} <p>No template in current queue.</p> -{% endif %} \ No newline at end of file +{% endif %} +{% endblock %} Modified: trunk/morphixlivekiosk/scripts/mbuild/urls.py =================================================================== --- trunk/morphixlivekiosk/scripts/mbuild/urls.py 2007-11-11 00:08:41 UTC (rev 2594) +++ trunk/morphixlivekiosk/scripts/mbuild/urls.py 2007-11-11 23:26:16 UTC (rev 2595) @@ -2,6 +2,7 @@ urlpatterns = patterns('', (r'^$', 'mbuild.web.views.index'), + (r'^start/', 'mbuild.web.views.step1'), (r'^mbuild/terms/(?P<template>[^/]+)/', 'mbuild.web.views.acceptterms'), (r'^mbuild/status/(?P<template>[^/]+)/', 'mbuild.web.views.mbuildstatus'), (r'^xml/morphix/(?P<template>[^/]+)/', 'mbuild.web.views.converttokabtxml'), Modified: trunk/morphixlivekiosk/scripts/mbuild/web/views.py =================================================================== --- trunk/morphixlivekiosk/scripts/mbuild/web/views.py 2007-11-11 00:08:41 UTC (rev 2594) +++ trunk/morphixlivekiosk/scripts/mbuild/web/views.py 2007-11-11 23:26:16 UTC (rev 2595) @@ -10,8 +10,11 @@ import datetime, time import elementtree.ElementTree as ET +def index(request): + return render_to_response('index.html') -def index(request): + +def step1(request): class BuildForm(forms.Form): brand_name = forms.CharField(max_length=150, required=True, label="What Brand name would you like to use? (No spaces or dashes e.g. MorphixLiveKiosk)", initial="MorphixLiveKiosk") graphics = forms.ImageField(required=False, label="Graphics file (1024x768, 32pps, any format works best)") @@ -54,11 +57,13 @@ if template.java: return HttpResponseRedirect("/mbuild/terms/%s/" % template_name ) else: + template.oktobuild = "1" + template.save() return HttpResponseRedirect('/mbuild/%s/' % template_name ) else: form = BuildForm() context = {'form': form} - return render_to_response('index.html', context, + return render_to_response('step-1.html', context, context_instance=RequestContext(request)) @@ -116,13 +121,25 @@ return HttpResponse("Template does not exist") def kabtqueue(request): +# queue_list = Queue.objects.filter(built=False, oktobuild=True).order_by('template')[0] + if request.GET: + queue_list = Queue.objects.filter(built=False, oktobuild=True).order_by('template')[0] + queue_list.built = True + queue_list.builtdomain = request.GET["built"] + queue_list.builtiso = request.GET["i"] + queue_list.builtogg = request.GET["v"] + queue_list.builtjpg = request.GET["v"] + ".jpg" + queue_list.save() + body = loader.get_template('email-build.txt') + c = Context({'queue_list': queue_list}) + email = EmailMessage(queue_list.brand, body.render(c), 'liv...@go...', + [queue_list.notifybyemail]) + email.send() + return render_to_response('delete-queue.html', {'queue_list': queue_list}) + else: queue_list = Queue.objects.filter(built=False, oktobuild=True).order_by('template') return render_to_response('kabt-queue.html', {'queue_list': queue_list}) -def viewqueue(request): - queue_list = Queue.objects.all().order_by('template') - return render_to_response('view-queue.html', {'queue_list': queue_list}) - def sucessfulbuild(request): # class BuildForm(forms.Form): # maindomain = forms.CharField(max_length=150) @@ -143,6 +160,10 @@ else: return HttpResponse("Could not determine the successful builds - see kabt.sh documentation") +def viewqueue(request): + queue_list = Queue.objects.filter(oktobuild=True).order_by('template') + return render_to_response('view-queue.html', {'queue_list': queue_list}) + def delall(request): # Will disable when running live Queue.objects.all().delete() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |