zip a created file

2008-12-13 Thread frendy zhang

if form.accepts(request.vars,session): for table in db.tables:  
   rows=db(db[table].id).select() print rows 
open(str(os.sep).join([os.getcwd(), 'applications', 
request.application, 'databases', 
table+'.csv']),'w').write(str(db(db[table].id).select ())) 
 
where and what should i put the zip code to zip the file created above? thanks 
in advance
_
Easily edit your photos like a pro with Photo Gallery.
http://get.live.com/photogallery/overview--
http://mail.python.org/mailman/listinfo/python-list


encrypt and descrypt a created file

2008-12-13 Thread frendy zhang

if form.accepts(request.vars,session): for table in db.tables:  
   rows=db(db[table].id).select() print rows 
open(str(os.sep).join([os.getcwd(), 'applications', 
request.application, 'databases', 
table+'.csv']),'w').write(str(db(db[table].id).select ())) 
 
 
How can i encrypt and descrypt the created file above??
 
thanks in advance...
_
NEW! Get Windows Live FREE.
http://www.get.live.com/wl/all--
http://mail.python.org/mailman/listinfo/python-list