Esempio n. 1
0
    def get(self):    	  
    	self.response.out.write(
    		csshelper.content().get(
        """
	<form action="/qr" method="post">
	<div>Put what you want your qr code to be here: 
	<input type="text" name="content" cols="160" />
	<input type="submit" text="Go" /></div> </form>
	""" ))
Esempio n. 2
0
    def post(self):
	authtype = self.request.get('authtype')
	ssid = self.request.get('ssid')
	password = self.request.get('password')
	
	wifidata = 'WIFI:T:' + authtype + ';S:' + ssid + ';P:' + password + ';;'

        content = urllib.quote(wifidata)
	self.response.out.write( csshelper.content().get('<h1>Your QR code</h1><img src="https://chart.googleapis.com/chart?chs=200x200&cht=qr&chl=' + content + '"  alt="QR Code"/>' ))	
Esempio n. 3
0
    def post(self):
	recipient = self.request.get('recipient')
	subject = self.request.get('subject')
	body = self.request.get('body')

	email = 'MATMSG:TO:' + recipient + ';SUB:' + subject + ';BODY:' + body + ';;'

        content = urllib.quote(email)
	self.response.out.write( csshelper.content().get('<h1>Your QR code</h1><img src="https://chart.googleapis.com/chart?chs=200x200&cht=qr&chl=' + content + '"  alt="QR Code"/>' ))	
Esempio n. 4
0
    def get(self):
        self.response.out.write(
            csshelper.content().get(
                """
	     <div class="post">
	       <div class="header">Intro to app engine</div>
	       <div class="content">This walk-through should help you get off the ground with google app engine. Click on the QR Code menu to build your own QR Codes.</div>
	     </div>		  
	"""
            )
        )
Esempio n. 5
0
    def get(self):    	  
    	self.response.out.write(
    		csshelper.content().get('<form action="' + self.uri() + '" method="post">' +
        """
	<div>Please fill in your WIFI setup information: 
	<table>
	<tr><td>Authentication Type: (WEP/WPA)</td><td> <input type="text" name="authtype" cols="15" /></td></tr>
	<tr><td>SSID:</td><td> <input type="text" name="ssid" cols="20" /></td></tr>
	<tr><td>Password:</td><td> <input type="password" name="password" cols="20" /></td></tr>
	<tr><td colspan="2"> <input type="submit" text="Go" /> </td></tr>
	</table>
	</div> </form>
	""" ))
Esempio n. 6
0
    def get(self):    	  
    	self.response.out.write(
    		csshelper.content().get(
        """
	<form action="/emsg" method="post">
	<div>Please fill in your email template:
	<table>
	<tr><td>To:</td><td> <input type="text" name="recipient" cols="75" /></td></tr>
	<tr><td>Subject:</td><td> <input type="text" name="subject" cols="75" /></td></tr>
	<tr><td>Body:</td><td> <textarea name="body" cols="60" rows="10"> </textarea></td></tr>
	<tr><td colspan="2"> <input type="submit" text="Go" /> </td></tr>
	</table>
	</div> </form>
	""" ))
Esempio n. 7
0
    def get(self):    	  
    	self.response.out.write(
    		csshelper.content().get(
        """
	<form action="/vc" method="post">
	<div>Put what you want your qr code to be here: 
	<table>
	<tr><td>First:</td><td> <input type="text" name="fname" cols="75" /></td></tr>
	<tr><td>Last:</td><td> <input type="text" name="lname" cols="75" /></td></tr>
	<tr><td>Email:</td><td><input type="text" name="email" cols="75"/></td></tr>
	<tr><td>Mobile Phone:</td><td><input type="text" name="mphone" cols="75"/></td></tr>
	<tr><td>Address:</td><td><input type="text" name="address" cols="75"/></td></tr>
	<tr><td colspan="2"> <input type="submit" text="Go" /> </td></tr>
	</table>
	</div> </form>
	""" ))
Esempio n. 8
0
    def get(self):    	  
    	self.response.out.write(
    		csshelper.content().get(
        """
	<form action="/vc" method="post">
	<div>Please fill in your business card information:
	<table>
	<tr><td>First:</td><td> <input type="text" name="fname" cols="75" /></td></tr>
	<tr><td>Last:</td><td> <input type="text" name="lname" cols="75" /></td></tr>
	<tr><td>Title:</td><td> <input type="text" name="title" cols="75" /></td></tr>
	<tr><td>Email:</td><td><input type="text" name="email" cols="75"/></td></tr>
	<tr><td>Work Phone:</td><td><input type="text" name="wphone" cols="75"/></td></tr>
	<tr><td>Address:</td><td><input type="text" name="address" cols="75"/></td></tr>
	<tr><td colspan="2"> <input type="submit" text="Go" /> </td></tr>
	</table>
	</div> </form>
	""" ))
Esempio n. 9
0
    def post(self):
    	fname = self.request.get('fname')
    	lname = self.request.get('lname')
	email = self.request.get('email')
	mphone = self.request.get('mphone')
	address = self.request.get('address')

	vcard = 'BEGIN:VCARD'
	vcard = vcard + '\nVERSION:3.0' 
	vcard = vcard + '\nFN:' + fname + ' ' + lname
	vcard = vcard + '\nN:' + lname + ';' + fname 
	if len(email) > 0:
		vcard = vcard + '\nEMAIL;TYPE=PREF,INTERNET:' + email
	if len(mphone) > 0:
		vcard = vcard + '\nTEL;TYPE=CELL,VOICE:' + mphone
	if len(address) > 0:
		vcard = vcard + '\nADR;TYPE=HOME:' + address
	vcard = vcard + '\nEND:VCARD'

        content = urllib.quote(vcard)
	self.response.out.write( csshelper.content().get('<h1>Your QR code</h1><img src="https://chart.googleapis.com/chart?chs=200x200&cht=qr&chl=' + content + '"  alt="QR Code"/>' ))	
Esempio n. 10
0
    def post(self):
    	fname = self.request.get('fname')
    	lname = self.request.get('lname')
    	title = self.request.get('title')
	email = self.request.get('email')
	wphone = self.request.get('wphone')
	address = self.request.get('address')

	vcard = 'BIZCARD:'
	vcard += 'N:' + fname + ';'
	vcard += 'X:' + lname + ';'
	if len(title) > 0:
		vcard += 'T:' + title + ';'
	if len(email) > 0:
		vcard += 'E:' + email + ';'
	if len(wphone) > 0:
		vcard += 'B:+1' + wphone + ';'
	if len(address) > 0:
		vcard = vcard + 'A:' + address + ';'
	vcard += ';;'

        content = urllib.quote(vcard)
	self.response.out.write( csshelper.content().get('<h1>Your QR code</h1><img src="https://chart.googleapis.com/chart?chs=200x200&cht=qr&chl=' + content + '"  alt="QR Code"/>' ))	
Esempio n. 11
0
 def post(self):
     content = self.request.get('content')
 	self.response.out.write(    	
 		csshelper.content().get(
 		  '<h1>Your QR code</h1><img src="https://chart.googleapis.com/chart?chs=200x200&cht=qr&chl=' + content + '"  alt="QR Code"/>' ))	
Esempio n. 12
0
 def post(self):
     content = 'http://www.youtube.com/watch?v=oHg5SJYRHA0' 
 	self.response.out.write(    	
 		csshelper.content().get(
 		  '<h1>Your QR code</h1><img src="https://chart.googleapis.com/chart?chs=200x200&cht=qr&chl=' + content + '"  alt="QR Code"/>' ))