string validation/ form validation

2006-08-20 Thread OriginalBrownster
Hi there: I just had a quick thought of something that might be useful to me when creating my web app and I wanted some help on the idea; since this group has been helpful in the past. in my app I have a few html forms that require the user to enter in data, in string form is it possible to vali

uploading files to file system/zipping/downloading problems

2006-08-20 Thread OriginalBrownster
I am currently uploading a file from a users computer to the file system on my server using python, just reading the file and writing the binaries. total_data=' ' while True: data = upload_file.file.read(8192) if not data: break t

Re: trouble using "\" as a string

2006-08-19 Thread OriginalBrownster
that stores tempname as "\\" .. Jim wrote: > Try using: tempname = "\\" > Jim > > > OriginalBrownster wrote: > > Hi there... > > > > I'm still pretty new to turbogears. but i have gotten pretty familiar > > with it > >

trouble using "\" as a string

2006-08-19 Thread OriginalBrownster
Hi there... I'm still pretty new to turbogears. but i have gotten pretty familiar with it i'm just trying to clear something up, i'm having a difficult time using \ when declaring a string expression such as tempname="\"..it says that the line is single qouted. i want this because using python

Re: text editor suggestion?

2006-08-18 Thread OriginalBrownster
John Salerno wrote: > Ok, I know it's been asked a million times, but I have a more specific > question so hopefully this won't be just the same old post. I've tried a > few different editors, and I really like UltraEdit, but it's > Windows-only and I'm working more on Linux nowadays. > > Here are

List match

2006-08-17 Thread OriginalBrownster
Hi there: I know this probably is a very easy thing to do in python, but i wanted to compare 2 lists and generate a new list that does not copy similar entries. An example below list= ["apple", "banana", "grape"] list2=["orange","banana", "pear"] now I want to compare these lits and generate a t

String Formatting

2006-08-10 Thread OriginalBrownster
Hi there: I was wondering if its at all possible to search through a string for a specific character. I want to search through a string backwords and find the last period/comma, then take everything after that period/comma Example If i had a list:bread, butter, milk I want to just take tha

Zipping files/zipfile module

2006-08-01 Thread OriginalBrownster
This will probably sound like a very dumb question. I am trying to zip some files within a directory. I want to zip all the files within a directory called "temp" and have the zip archive saved in a directory with temp called ziptemp I was trying to read up on how to use the zipfile module pytho

FOR LOOPS

2006-07-31 Thread OriginalBrownster
I am using a class called UploadedFile. I want to create a for loop to itterate through the objects within file name class UploadedFile(SQLObject): filename = StringCol(alternateID=True) abspath = StringCol() uniqueid = IntCol() I'll show you a snippit of the code I am try

Re: Zipping Files to user defined Directory

2006-07-28 Thread OriginalBrownster
Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, > OriginalBrownster wrote: > > > I'm very new to python, and I have been using the TurboGears Framework > > to use python to power my application. > > > > [...] > > > > my

Re: Zipping Files to user defined Directory

2006-07-28 Thread OriginalBrownster
Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, > OriginalBrownster wrote: > > > I'm very new to python, and I have been using the TurboGears Framework > > to use python to power my application. > > > > [...] > > > > my

Zipping Files to user defined Directory

2006-07-27 Thread OriginalBrownster
Hi There. I'm very new to python, and I have been using the TurboGears Framework to use python to power my application. I have a class which handles the upload of a file to a directory called "uploads", which is hosted on a server. my problems is that when I want to download that file from the s