SF.net SVN: morphix: [2583] trunk/morphixlivekiosk/scripts/mbuild
[email protected] Fri, 02 Nov 2007 15:28:45 -0700
| Newsgroups | gmane.linux.morphix.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 2583
http://morphix.svn.sourceforge.net/morphix/?rev=2583&view=rev
Author: gandalfar
Date: 2007-11-02 15:28:44 -0700 (Fri, 02 Nov 2007)
Log Message:
-----------
README and some more code
Modified Paths:
--------------
trunk/morphixlivekiosk/scripts/mbuild/templates/index.html
trunk/morphixlivekiosk/scripts/mbuild/web/views.py
Added Paths:
-----------
trunk/morphixlivekiosk/scripts/mbuild/README
Added: trunk/morphixlivekiosk/scripts/mbuild/README
===================================================================
--- trunk/morphixlivekiosk/scripts/mbuild/README (rev 0)
+++ trunk/morphixlivekiosk/scripts/mbuild/README 2007-11-02 22:28:44 UTC (rev 2583)
@@ -0,0 +1,3 @@
+You need python2.4+ and Django trunk to run this.
+
+Run `python manage.py syncdb` to generate the .db file
\ No newline at end of file
Modified: trunk/morphixlivekiosk/scripts/mbuild/templates/index.html
===================================================================
--- trunk/morphixlivekiosk/scripts/mbuild/templates/index.html 2007-11-02 22:14:44 UTC (rev 2582)
+++ trunk/morphixlivekiosk/scripts/mbuild/templates/index.html 2007-11-02 22:28:44 UTC (rev 2583)
@@ -1,3 +1,5 @@
+<h1>Custom Built Kiosk LiveCD</h1>
+
<form action="." method="post" accept-charset="utf-8">
{{ form.as_p }}
Modified: trunk/morphixlivekiosk/scripts/mbuild/web/views.py
===================================================================
--- trunk/morphixlivekiosk/scripts/mbuild/web/views.py 2007-11-02 22:14:44 UTC (rev 2582)
+++ trunk/morphixlivekiosk/scripts/mbuild/web/views.py 2007-11-02 22:28:44 UTC (rev 2583)
@@ -2,25 +2,31 @@
from django.template import RequestContext
from django import newforms as forms
+import datetime, time
+import elementtree.ElementTree as ET
+
+
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)
+ initial=True, label="Should the Navigation Bar be visable?")
dhcp = forms.BooleanField(widget=forms.RadioSelect(choices=[(True, 'Yes'), (False, 'No')]),
- initial=True)
+ initial=True, label="Use DHCP?")
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
+ dt = datetime.datetime.now()
+ uniq = time.mktime(dt.timetuple()) + dt.microsecond/1e6
+
+ print uniq
else:
form = BuildForm()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/