Re: Python Django Latex Permissions Problem

2008-11-28 Thread I-T
for the help though On Nov 25, 2:30 pm, Nick Craig-Wood [EMAIL PROTECTED] wrote: I-T [EMAIL PROTECTED] wrote:  I have a python/django webapp running with apache2. It executes system  commands for getting a pdf generated by pdflatex from a .tex file and  a couple of image files which it also

Python Django Latex Permissions Problem

2008-11-24 Thread I-T
I have a python/django webapp running with apache2. It executes system commands for getting a pdf generated by pdflatex from a .tex file and a couple of image files which it also generates. The permssions from ls-l for all the created files is:- -rw-r--r-- 1 www-data www-data The files are being

Re: Making Variable Text Output More Pythonic?

2008-05-16 Thread I-T
A thousand apologies for my ignorance. I'll try not to get names mixed up again in the future. On May 16, 8:42 pm, Arnaud Delobelle [EMAIL PROTECTED] wrote: afrobeard [EMAIL PROTECTED] writes: Arnaud's code wont work if self.opt1 is None, an empty list, an empty tuple, False, etc, because

Re: write to specific line in file?

2008-05-16 Thread I-T
Open the file inside your script in append mode. open('filename', 'wa') On May 16, 11:41 pm, globalrev [EMAIL PROTECTED] wrote: i ahve a program that takes certain textsnippets out of one file and inserts them into another. problem is it jsut overwrites the first riow every time. i want