Re: How about converting python config files to text config files

2006-02-12 Thread limodou
On 2/13/06, Tom Tobin <[EMAIL PROTECTED]> wrote: > > On 2/12/06, limodou <[EMAIL PROTECTED]> wrote: > > > > I don't want to touch this subject more. If you don't understand I'll > > explain it again: > > I think we understand what you're saying; the problem is that we don't > agree. ;-) > > As ot

Re: How about converting python config files to text config files

2006-02-12 Thread Tom Tobin
On 2/12/06, limodou <[EMAIL PROTECTED]> wrote: > > I don't want to touch this subject more. If you don't understand I'll > explain it again: I think we understand what you're saying; the problem is that we don't agree. ;-) As others have pointed out, it is perfectly acceptable to create your ow

Re: How about converting python config files to text config files

2006-02-12 Thread limodou
On 2/13/06, Bill de hÓra <[EMAIL PROTECTED]> wrote: > > limodou wrote: > > > You may not understand what I want. For example: > > > > [...] > > > > So I think .py configuration file is not user friendly to a IDE. > > I read this, and don't understand how not using Python solves your problem. > > -

Re: How about converting python config files to text config files

2006-02-12 Thread Bill de hÓra
limodou wrote: > You may not understand what I want. For example: > > [...] > > So I think .py configuration file is not user friendly to a IDE. I read this, and don't understand how not using Python solves your problem. -1 from me. cheers Bill

Re: "Need automatic process support,(Re: How about converting python config files to text config files)

2006-02-12 Thread limodou
On 2/12/06, Tim Keating <[EMAIL PROTECTED]> wrote: > > Then don't use comments. Use docstrings. > > The contents in settings.py is not functions but variables, so it cannot use docstrings. -- I like python! My Blog: http://www.donews.net/limodou NewEdit Maillist: http://groups.google.com/group/Ne

Re: "Need automatic process support,(Re: How about converting python config files to text config files)

2006-02-11 Thread Tim Keating
Then don't use comments. Use docstrings.

Re: How about converting python config files to text config files

2006-02-10 Thread hugo
>You mean that you'll never want to change them. And I also made a >seconad topic about this, it's seem that you didn't notice it. What I >want just want to make django more easiler for installation, >deployment, or somethings. Have you some good suggestions about how to >simplify the changing of

Re: How about converting python config files to text config files

2006-02-10 Thread limodou
On 2/10/06, Adrian Holovaty <[EMAIL PROTECTED]> wrote: > > On 2/9/06, limodou <[EMAIL PROTECTED]> wrote: > > I'v summited a ticket http://code.djangoproject.com/ticket/1337 for this. > > > > What do you think about? > > I marked that ticket as a wontfix yesterday. Respectfully, let me just > say t

Re: How about converting python config files to text config files

2006-02-10 Thread Adrian Holovaty
On 2/9/06, limodou <[EMAIL PROTECTED]> wrote: > I'v summited a ticket http://code.djangoproject.com/ticket/1337 for this. > > What do you think about? I marked that ticket as a wontfix yesterday. Respectfully, let me just say that it's not going to happen. As I implied in the ticket, there's noth

Re: How about converting python config files to text config files

2006-02-10 Thread limodou
On 2/10/06, Maniac <[EMAIL PROTECTED]> wrote: > > limodou wrote: > > >please see another thread to see what I really want, what I want not > >just READ but WRITE and SAVING. > > > > > This is exactly what I meant. You can use your own config format, read > it, write it and save it. Settings.py wou

Re: How about converting python config files to text config files

2006-02-10 Thread limodou
On 2/10/06, hugo <[EMAIL PROTECTED]> wrote: > > >I'v summited a ticket http://code.djangoproject.com/ticket/1337 for this. > >What do you think about? > > Nope, a big -1 from me. Really - full-python configs is one of the > things I really liked in Django the first time I looked at it. Just try >

Re: How about converting python config files to text config files

2006-02-10 Thread Maniac
limodou wrote: >please see another thread to see what I really want, what I want not >just READ but WRITE and SAVING. > > This is exactly what I meant. You can use your own config format, read it, write it and save it. Settings.py would just import its data for the rest of the Django. --~--~

Re: How about converting python config files to text config files

2006-02-10 Thread hugo
>I'v summited a ticket http://code.djangoproject.com/ticket/1337 for this. >What do you think about? Nope, a big -1 from me. Really - full-python configs is one of the things I really liked in Django the first time I looked at it. Just try to drop the idea that configuration is something static -

Re: How about converting python config files to text config files

2006-02-10 Thread limodou
On 2/10/06, Max Battcher <[EMAIL PROTECTED]> wrote: > > limodou wrote: > > Using pickle is more harder to modify by hand. > > You can always Python shell, load pickle, change, save pickle. Not that > much more different than load text editor, change, save and quit text > editor. django donot sup

Re: How about converting python config files to text config files

2006-02-10 Thread Max Battcher
limodou wrote: > Using pickle is more harder to modify by hand. You can always Python shell, load pickle, change, save pickle. Not that much more different than load text editor, change, save and quit text editor. Or you could load the pickle and then check for changes in the text file. Or y

Re: How about converting python config files to text config files

2006-02-10 Thread Amit Upadhyay
On 2/10/06, Sean Perry <[EMAIL PROTECTED]> wrote: Russell Keith-Magee wrote:> I fail to see what problem would be solved or made easier by introducing a> new syntax.>sometimes people like to use a language other than python but share some data.Parsing XML is trivial in python, check out ElementTree

Re: How about converting python config files to text config files

2006-02-10 Thread limodou
On 2/10/06, Max Battcher <[EMAIL PROTECTED]> wrote: > > limodou wrote: > >> The addition of an extra line in the installed application list of > >> settings.py is only a one line change - so again, I would argue effort > > >> need. > > > > Maybe it's simple, but what about install an app? You shou

Re: How about converting python config files to text config files

2006-02-10 Thread Max Battcher
limodou wrote: >> The addition of an extra line in the installed application list of >> settings.py is only a one line change - so again, I would argue effort > >> need. > > Maybe it's simple, but what about install an app? You should modify: > > settings.py > urls.py > copy media files to speci

Re: "Need automatic process support,(Re: How about converting python config files to text config files)

2006-02-10 Thread limodou
On 2/10/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 2/10/06, limodou <[EMAIL PROTECTED]> wrote: > > So what I mean not about HOW TO READ settings from settings.py, but > > HOW TO MODIFY settings.py and urls.py. > > Well, one way would be to import the settings module of the project > under

Re: "Need automatic process support,(Re: How about converting python config files to text config files)

2006-02-10 Thread James Bennett
On 2/10/06, limodou <[EMAIL PROTECTED]> wrote: > So what I mean not about HOW TO READ settings from settings.py, but > HOW TO MODIFY settings.py and urls.py. Well, one way would be to import the settings module of the project under a name like 'mysettings' (e.g., 'import myproject.settings as mys

Re: "Need automatic process support,(Re: How about converting python config files to text config files)

2006-02-10 Thread limodou
More clearly: 1. Need READ, WRITE, SAVE settings.py and urls.py easily If it can remain the content structure is better, just like comments. 2. Need install and deploy app easily It's not very import than the first point. If the first point can be simplified, so the second point may not very imp

Re: How about converting python config files to text config files

2006-02-09 Thread limodou
On 2/10/06, Maniac <[EMAIL PROTECTED]> wrote: > > limodou wrote: > > >I'v summited a ticket http://code.djangoproject.com/ticket/1337 for this. > > > >What do you think about? > > > > > You can store settings in any format right now and use settings.py as a > parser: > > from my_parser import

"Need automatic process support,(Re: How about converting python config files to text config files)

2006-02-09 Thread limodou
On 2/10/06, James Bennett <[EMAIL PROTECTED]> wrote: > > On 2/10/06, limodou <[EMAIL PROTECTED]> wrote: > > Maybe you consider that it's nothing, so I think you also don't want a > > tool to do that for you automatically. But I want, and I think maybe > > someone else want also. > > What, exactly,

Re: How about converting python config files to text config files

2006-02-09 Thread Maniac
limodou wrote: >I'v summited a ticket http://code.djangoproject.com/ticket/1337 for this. > >What do you think about? > > You can store settings in any format right now and use settings.py as a parser: from my_parser import my_parse values=my_parse('my_config.ini') locals().up

Re: How about converting python config files to text config files

2006-02-09 Thread James Bennett
On 2/10/06, limodou <[EMAIL PROTECTED]> wrote: > Maybe you consider that it's nothing, so I think you also don't want a > tool to do that for you automatically. But I want, and I think maybe > someone else want also. What, exactly, is it about Python files which make it, in your view, unreasonabl

Re: How about converting python config files to text config files

2006-02-09 Thread limodou
On 2/10/06, Jonathan Daugherty <[EMAIL PROTECTED]> wrote: > > # I have a app name address, now, I want to install it in django. How > # to do that? > # > # 1. modifying settings.py to add INSTALLED_APPS > # 2. modifying usrl.py to add urlpatterns > # 3. run install address command > > I see what

Re: How about converting python config files to text config files

2006-02-09 Thread limodou
On 2/10/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > On 2/10/06, limodou <[EMAIL PROTECTED]> wrote: > > > > On 2/10/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > > > > > The existing syntax is text-based, clear, concise, expressive, and > pythonic > > > (since it actually _is_ p

Re: How about converting python config files to text config files

2006-02-09 Thread Jonathan Daugherty
# I have a app name address, now, I want to install it in django. How # to do that? # # 1. modifying settings.py to add INSTALLED_APPS # 2. modifying usrl.py to add urlpatterns # 3. run install address command I see what you mean, but this is a one-time task, done at development time. I don't

Re: How about converting python config files to text config files

2006-02-09 Thread Tom Tobin
On 2/9/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > On 2/10/06, limodou <[EMAIL PROTECTED]> wrote: > > > > I'v summited a ticket > http://code.djangoproject.com/ticket/1337 for this. > > > > What do you think about? > > -1 from me. I second that -1; by the logic in that ticket, we migh

Re: How about converting python config files to text config files

2006-02-09 Thread limodou
On 2/10/06, Jonathan Daugherty <[EMAIL PROTECTED]> wrote: > > # But automatically installing an app is not a simple thing, the big > # problem is : how to modify the settings.py and urls.py. > > I think the answer is writing code in settings.py and urls.py that > looks elsewhere for specific confi

Re: How about converting python config files to text config files

2006-02-09 Thread Russell Keith-Magee
On 2/10/06, limodou <[EMAIL PROTECTED]> wrote: On 2/10/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote:>> The existing syntax is text-based, clear, concise, expressive, and pythonic > (since it actually _is_ python). I agree, but not very suit for automaticl tools. Do you like manuallymodifying

Re: How about converting python config files to text config files

2006-02-09 Thread Jonathan Daugherty
# But automatically installing an app is not a simple thing, the big # problem is : how to modify the settings.py and urls.py. I think the answer is writing code in settings.py and urls.py that looks elsewhere for specific config information, rather than making settings.py and urls.py text files.

Re: How about converting python config files to text config files

2006-02-09 Thread limodou
On 2/10/06, limodou <[EMAIL PROTECTED]> wrote: > On 2/10/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > > > On 2/10/06, limodou <[EMAIL PROTECTED]> wrote: > > > > > > I'v summited a ticket > > http://code.djangoproject.com/ticket/1337 for this. > > > > > > What do you think about? > > > >

Re: How about converting python config files to text config files

2006-02-09 Thread limodou
On 2/10/06, Russell Keith-Magee <[EMAIL PROTECTED]> wrote: > > On 2/10/06, limodou <[EMAIL PROTECTED]> wrote: > > > > I'v summited a ticket > http://code.djangoproject.com/ticket/1337 for this. > > > > What do you think about? > > -1 from me. > > The existing syntax is text-based, clear, concise,

Re: How about converting python config files to text config files

2006-02-09 Thread Sean Perry
Russell Keith-Magee wrote: I fail to see what problem would be solved or made easier by introducing a new syntax. sometimes people like to use a language other than python but share some data.

Re: How about converting python config files to text config files

2006-02-09 Thread Russell Keith-Magee
On 2/10/06, limodou <[EMAIL PROTECTED]> wrote: I'v summited a ticket http://code.djangoproject.com/ticket/1337 for this.What do you think about?-1  from me. The existing syntax is text-based, clear, concise, expressive, and pythonic (since it actually _is_ python). If we introduce a new syntax fo

How about converting python config files to text config files

2006-02-09 Thread limodou
I'v summited a ticket http://code.djangoproject.com/ticket/1337 for this. What do you think about? -- I like python! My Blog: http://www.donews.net/limodou NewEdit Maillist: http://groups.google.com/group/NewEdit