Re: [Tutor] Send attachment

2005-07-23 Thread Martin Walsh
Jorge Louis De Castro wrote: > Hello, > > Any ideas how I can use Python and the Windows API to open a PC's mail > client and send an attachment? > The idea is saving some data onto a file and then invoke the email > client (OE or Outlook or whatever is the default on the machine) with > the r

Re: [Tutor] Parsing problem

2005-07-23 Thread Paul McGuire
Liam - Glad you are sticking with pyparsing through some of these idiosyncracies! One thing that might simplify your life is if you are a bit more strict on specifying your grammar, especially using pp.printables as the character set for your various words and values. Is this statement really va

Re: [Tutor] Tkinter event for changing OptionMenu items

2005-07-23 Thread Michael Lange
On Thu, 21 Jul 2005 14:16:05 -0400 Bernard Lebel <[EMAIL PROTECTED]> wrote: > Hi Michael, > > Let say I have a MenuOption, that consists of 3 items. This MenuOption > sits on top of the Tkinter window. > > In the lower part, I have a bunch of widgets (text fields). When the > choose a different

Re: [Tutor] Parsing problem

2005-07-23 Thread Liam Clarke
*sigh* I just read the documentation more carefully and found the difference between the | operator and the ^ operator. Input - j = { line = { foo = 10 bar = 20 } } New code sel = pp.Forward() values = ((pp.Word(pp.printables) + pp.Suppress("=") + pp.Word(pp.printables)) ^ sel) sel << (pp.Wo

Re: [Tutor] Parsing problem

2005-07-23 Thread Liam Clarke
Hmmm... just a quick update, I've been poking around and I'm obviously making some error of logic. Given a line -  f = "j = { line = { foo = 10 bar = 20 } }" And given the following code - select = pp.Forward()select << pp.Word(pp.printables) + pp.Suppress("=") + pp.Suppress("{") + pp.OneO

Re: [Tutor] redirecting output to logfile and logrotate

2005-07-23 Thread Winfried Tilanus
On Fri, 22 Jul 2005 11:46:09 -0700 (PDT), Danny Yoo wrote: Thanks Danny, (snip) >So if it's possible, I'd recommend using the RotatingFileHandler logger >from Python's 'logging' Standard Library module instead of 'logrotate'. That is the way I will go, the library (although not standard in Pyth

Re: [Tutor] Parsing problem

2005-07-23 Thread Liam Clarke
Howdy, I've attempted to follow your lead and have started from scratch, I could just copy and paste your solution (which works pretty well), but I want to understand what I'm doing *grin* However, I've been hitting a couple of ruts in the path to enlightenment. Is there a way to tell pyparsing

Re: [Tutor] HELP ME DUDE

2005-07-23 Thread Liam Clarke
Also, please use punctuation and paragraphs. I'm not a grammar Nazi per se, but sheesh, that stuff is unreadable. And, as a general rule, a 56 kilobits pers second will download at 5.6 Kilobytes per second at the very best. You're lucky to get 4 Kilobytes per second. Hence, ADSL is good. On 7/23