Re: Default/editable string to raw_input

2006-03-23 Thread Sybren Stuvel
Sion Arrowsmith enlightened us with: > You're assuming that the tester is already familiar with a text > editor. Indeed. Someone working on a test suite sounded like someone who knows how to work with a text editor. > And then they would have to learn the syntax of the configuration > file, and t

Re: Default/editable string to raw_input

2006-03-23 Thread Sion Arrowsmith
Sybren Stuvel <[EMAIL PROTECTED]> wrote: >Paraic Gallagher enlightened us with: >> While I agree in principal to your opinion, the idea is that an >> absolute moron would be able to configure a testcell with smallest >> amount of effort possible. >Then explain to me why learning how to use your pr

Re: Default/editable string to raw_input

2006-03-22 Thread Paraic Gallagher
David Wahler wrote: >With the disclaimer that, as others have said, this may not be the best >user-interface choice: > > import readline > readline.set_startup_hook(lambda: readline.insert_text(old_value)) > try: >new_value = raw_input() > finally: >readline.set_startup_hook(None) > >N

Re: Default/editable string to raw_input

2006-03-22 Thread David Wahler
Paraic Gallagher wrote: > Hi, > > This is my first post to the list, I hope somebody can help me with this > problem. Apologies if it has been posted before but I have been internet > searching to no avail. > > What I am trying to do is provide a simple method for a user to change a > config file,

Re: Default/editable string to raw_input

2006-03-22 Thread Sybren Stuvel
Paraic Gallagher enlightened us with: > While I agree in principal to your opinion, the idea is that an > absolute moron would be able to configure a testcell with smallest > amount of effort possible. Then explain to me why learning how to use your program to edit the file is easier than using an

Re: Default/editable string to raw_input

2006-03-22 Thread Paraic Gallagher
Sybren Stuvel wrote: >My opinion: let the user edit the configuration file using his/her >favourite text editor. Someone configuring a test suite should >certainly be able to edit a text file. > >Sybren > > While I agree in principal to your opinion, the idea is that an absolute moron would be

Re: Default/editable string to raw_input

2006-03-22 Thread Sybren Stuvel
Paraic Gallagher enlightened us with: > What I am trying to do is provide a simple method for a user to > change a config file, for a test suite. My opinion: let the user edit the configuration file using his/her favourite text editor. Someone configuring a test suite should certainly be able to e

Default/editable string to raw_input

2006-03-22 Thread Paraic Gallagher
Hi, This is my first post to the list, I hope somebody can help me with this problem. Apologies if it has been posted before but I have been internet searching to no avail. What I am trying to do is provide a simple method for a user to change a config file, for a test suite. The config file c