How would you go about creating a heap of shortcuts to a batch file?

2006-09-17 Thread googleboy
apply the icon for an application at n:\path\to\application\app.exe At the moment I am looking like having to do this with VB, but I am trying hard to leave that behind for evermore. TIA googleboy -- http://mail.python.org/mailman/listinfo/python-list

A question about searching with multiple strings

2005-10-21 Thread googleboy
any number of parameters. Any assistance with these two questions will be greatly appreciated! Thanks! googleboy -- http://mail.python.org/mailman/listinfo/python-list

list.join()... re.join()...? Do they exist? (newbie questions...)

2005-10-01 Thread googleboy
having to go about it in such a laborious fashion Would someone be so kind as to fill me in? TIA! googleboy -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie regular expression and whitespace question

2005-09-22 Thread googleboy
Thanks for the great positive responses. I was close with what I was trying, I guess, but close only counts in horseshoes and um.. something else that close counts in. :-) googleboy -- http://mail.python.org/mailman/listinfo/python-list

Newbie regular expression and whitespace question

2005-09-22 Thread googleboy
r at the end of the next word after an arbitrary number of characters. I am reading in to a script a bunch of paragraphs formatted for a webpage, but they're all on one big long line and I would like to split them for readability. TIA Googleboy -- http://mail.python.org/mailman/listinfo/python-list

Python CSV writer confusion.

2005-09-15 Thread googleboy
t = csv.writer(t, dialect='excel', delimiter='|') output.writerows() #output.writerows(image) #output.writerow(image) t.close() This returns an error that says "Error: sequence expected" My understanding of this is that I am creatin

Confused newbie needs help with "__init__() takes exactly 11 arguments (1 given)"

2005-08-18 Thread googleboy
een that before. Thanks for the response. :-) Googleboy -- http://mail.python.org/mailman/listinfo/python-list

Confused newbie needs help with "__init__() takes exactly 11 arguments (1 given)"

2005-08-18 Thread googleboy
enBSD box running python 2.3, it just worked on the unix box. Find below an the code and an example of the csv file in question. TIA googleboy - param1,param2,param3,param4,param5,param6,param7,param8,param9,comments data1,data2,data3,data4,data5,data6,data7,data8,data9,Comments on the item r

Re: Parsing a log file

2005-08-14 Thread googleboy
.cx/publish/programming/regular_expressions.html HTH googleboy -- http://mail.python.org/mailman/listinfo/python-list

cgi form validation problems

2005-08-14 Thread googleboy
oks/cgi/form.py File "/var/www/users/senta/html/gobooks/cgi/form.py", line 99 msg = ("From: %s\r\nTo: %s\r\nSubject: %s\r\n\r\n Feedback: %s\r\n\r\n" % ^ SyntaxError: invalid syntax Just a simple assignation I did think it might have been an indentation error, but I changed that around and got a message telling me about an indentation problem, which this doesn't do. I have tried several different ways to assign the values, as you can see by the commented out lines. Tried getting the values directly from teh form, and also from the validated rev_fields dictionary. I'd be extremely grateful to anyone who helps me through this. TIA Googleboy -- http://mail.python.org/mailman/listinfo/python-list

Re: Some newbie cgi form questions...

2005-08-07 Thread googleboy
working and doing most of what I want. It is just the last bits that I can't figure out, and the tutes don't seem to cover the stuff I am trying to do. O well, I guess I will go bang my head against it or a few more days and then hopefully an answer will show up in my brain somewhere. Thanks for your help. Googleboy. -- http://mail.python.org/mailman/listinfo/python-list

Re: Some newbie cgi form questions...

2005-08-07 Thread googleboy
TypeError: list indices must be integers As you can see, I am using python 2.3 (my web service provider is responsible for this - I'd use 2.4.1 if I could) TIA googleboy -- http://mail.python.org/mailman/listinfo/python-list

Some newbie cgi form questions...

2005-08-07 Thread googleboy
idden" and fix the indentation this works pretty much as I expect. TIA Googleboy print 'Content-type: text/html\n\n' print htmlheader for key in form.keys(): if not form.has_key(key): print " ERROR! " print "Please go back and fill in all fie

Re: more newbie list questions

2005-07-14 Thread googleboy
uthor1 variable, which I was my problem. It is finding my search string at teh 47th character of the sTemplate string, which is great. But it doesn't seem to want to replace the search string with the value of the author1 variable. Is there something else I am missing here? Thanks for

Re: more newbie list questions

2005-07-14 Thread googleboy
re that the answer to that was something I found in the tute, or it will be in my deitel python book somewhere... The hard bit is part one (assigning the value of a field to a variable) Thanks for your help. Googleboy -- http://mail.python.org/mailman/listinfo/python-list

more newbie list questions

2005-07-13 Thread googleboy
the filename field for each book. Is it possible to do some sort of search and replace like that over a command within python? Or is there another way entirely different to accomplish such a task, like maybe assigning the path/filename to a variable... ? TIA! Googleboy -- http://mail.python.org/mailman/listinfo/python-list

Re: what is the best way to determine system OS?

2005-05-15 Thread googleboy
I did somethign that really seems far brighter... approaching it from a slightly different angle I just search through each line for the right field title, and then take that field's value from teh last line of output. Doesn't matter what OS, doesn't matter what format now. It can cope with it

Re: how can I sort a bunch of lists over multiple fields?

2005-04-28 Thread googleboy
erator.attrgetter("author", "title") but they both give errors. Is this where using cmd functions instead of keys becomes necessary? Thanks! googleboy -- http://mail.python.org/mailman/listinfo/python-list

how can I sort a bunch of lists over multiple fields?

2005-04-27 Thread googleboy
ort(key=lambda i:i[4]) Traceback (most recent call last): File "", line 1, in ? File "", line 1, in IndexError: string index out of range (I was hoping for similar things) would you be so kind as to point me in the right direction? THanks! googleboy -- http://mail.python.org/mailman/listinfo/python-list

Re: what is the best way to determine system OS?

2005-04-25 Thread googleboy
;t get an excuse to write code very often so it is probably quite lame. B) I will have a look at platform and see what I can come up with. Delving into libraries seems a little bit much for my current level (though lots of fun). Thanks for the responses! googleboy -- http://mail.python.org/mailman/listinfo/python-list

what is the best way to determine system OS?

2005-04-25 Thread googleboy
so I need to be able to determine not simply "Linux" but to know exactly what unix the script is being run on. What is the best way to determine this? Thanks! googleboy -- http://mail.python.org/mailman/listinfo/python-list