To add pictures during chat session, just Type Unique id or Username between [[ ]] .
[[unique id or Username ]]
for example : [[1758955254]]

[[unique id or Username ]]
for example : [[1758955254]]
if request.method == ‘POST’ :will be valid and data from HTML form will be stored in variables:
sender=request.POST['user']These variables are argumets of the function
message=request.POST['content']
receiver=request.POST['receiver']
subject=request.POST['subject']
send_email(sender,message,receiver,subject)send_email function use python packages smtplib , email.mime.text to configure messagre and send it.
python setup.py installThis command will run setup.py script which will add xlwt to your python
from xlwt import ** import all functions from xlwt . Xlwt offer functions for writing data in excel files, adding sheets and similar…
import glob
import os
def excel_fun(data):After that define your wokrbook and styles:
wbook = Workbook()Add sheet name with :
style1 = easyxf(
‘font: name Arial, bold yes, colour black, italic yes, height 180;’
‘alignment: vertical center, horizontal center, wrap yes;’
‘borders: left medium, right medium, top medium, bottom medium;’
‘pattern: pattern solid, fore_colour light_orange;’)
style2 = easyxf(
‘font: name Arial, colour black, height 180;’
‘alignment: vertical center, horizontal center, wrap yes;’)
sheetName=”My Sheet”You can define width of column, for example I define first column width with:
wsheet = wbook.add_sheet(sheetName)
wsheet.col(0).width = 10000To write data in Excel file use xlwt function called write, for example
wsheet.write(0, 0, “Website”, style1)It writes string Website in column 0 and row 0 with style1.
websites=[{"web":"http://najponude.com/","visits":10000},This function will export data from variable websites to excel file that looks like:
{"web":"http://kako-napraviti.geek.hr/","visits":5000},
{"web":"http://hackspc.com","visits":8000}]


Copyright © 2014 Entertainment Meela All Rights Reserved By. Armaan Khan.