Re: GSoC - Class based serializers

2010-03-10 Thread Russell Keith-Magee
On Wed, Mar 10, 2010 at 7:56 AM, Renato Garcia Pedigoni wrote: > Hi folks > My name is Renato, I'm currently studying Biomedical Informatics at the > University of Sao Paulo, in Brazil. > Last year I tried a GSoC slot with a declarative syntax serializer project > for Django. Reading the 2010's id

Re: dbsettings, and user configurable app settings

2010-03-10 Thread Joan Miller
Whatever configuration system using variables of a language is a disaster and it's going not maintainable as has been showed in Django. My solution was to use YAML, and then to use a class to convert it to Python. Features: * The python configuration is only re-built if yaml config. has been chan

Re: dbsettings, and user configurable app settings

2010-03-10 Thread Russell Keith-Magee
On Wed, Mar 10, 2010 at 6:18 PM, Joan Miller wrote: > Whatever configuration system using variables of a language is a > disaster and it's going not maintainable as has been showed in Django. That's a pretty wild assertion to make without any evidence, and it's completely contrary to my personal

Re: dbsettings, and user configurable app settings

2010-03-10 Thread Joan Miller
It's a disaster from the maintenance view point. If it were not so, then people would not be proposing to refactor the settings as has been made in Pinax, or from multiple posts so many times. This is nothing new. Many people dislikes that kind of configuration, of the same that many people hates

Re: dbsettings, and user configurable app settings

2010-03-10 Thread Gary Reynolds
I really don't see how your YAML file is any more maintainable than Django's settings.py approach? If anything, I would argue that it is less maintainable, as you would have to maintain not only your YAML files moving forward, but also the code which transposes it into a settings.py. On Wed, Mar 1

Re: dbsettings, and user configurable app settings

2010-03-10 Thread Chuck Harmston
1) In implementation, how is a YAML configuration file any different than the Java/XML example that you offered? Syntactical differences between XML and YAML aside, both systems define settings in markup languages (which by definition have minimal capability for logic) that are eventually parsed (b

Re: dbsettings, and user configurable app settings

2010-03-10 Thread Russell Keith-Magee
On Wed, Mar 10, 2010 at 10:16 PM, Joan Miller wrote: > It's a disaster from the maintenance view point. If it were not so, > then people would not be proposing to refactor the settings as has > been made in Pinax, or from multiple posts so many times. > > This is nothing new. Many people dislikes

Re: dbsettings, and user configurable app settings

2010-03-10 Thread Brian Rosner
On Mar 10, 2010, at 7:16 AM, Joan Miller wrote: > It's a disaster from the maintenance view point. If it were not so, > then people would not be proposing to refactor the settings as has > been made in Pinax, or from multiple posts so many times. Like I mentioned in the post you made to the pina

Re: dbsettings, and user configurable app settings

2010-03-10 Thread Jared Forsyth
As far as a solution that "magically solves everyone's problem nicely", that's what django-appsettingsis trying to be :). It handles quite nicely the issues of scoping and maintainability that you discussed, organizing everything in a pythonic manner.

Re: dbsettings, and user configurable app settings

2010-03-10 Thread Matt Boersma
On Wed, Mar 10, 2010 at 7:51 AM, Brian Rosner wrote: > > On Mar 10, 2010, at 7:16 AM, Joan Miller wrote: > >> It's a disaster from the maintenance view point. If it were not so, >> then people would not be proposing to refactor the settings as has >> been made in Pinax, or from multiple posts so m

Porting _django_bash_completion to Windows Powershell

2010-03-10 Thread guillermooo
** I might be posting in the wrong place. Apologies if I do, but this felt like the right place to ask! ** Hi! I'm trying to port Django's django_bash_completion script to Windows Powershell, but I only know so much bash, so I'd need a little help in understanding what's going on. As far as I un

Porting _django_bash_completion to Windows Powershell

2010-03-10 Thread guillermooo
** I might be posting in the wrong place. Apologies if I do, but this felt like the right place to ask! ** Hi! I'm trying to port Django's django_bash_completion script to Windows Powershell, but I only know so much bash, so I'd need a little help in understanding what's going on. As far as I un

Problems with DatabaseCreation, table names, and index names

2010-03-10 Thread Andrew Godwin
Hi all, I'm posting this here, not as a ticket, as I'm not entirely sure it's Django's problem, and so would like some input*. [Base]DatabaseCreation has a method sql_indexes_for_field, which, handily, returns the SQL indexes for a field. Less usefully, both PostgreSQL and MySQL have limits

Re: Problems with DatabaseCreation, table names, and index names

2010-03-10 Thread James Bennett
On Wed, Mar 10, 2010 at 4:55 PM, Andrew Godwin wrote: > The question is, is it even worth fixing? I'm tempted to conclude that > you're limited to shorter model/field names by your database (or use > db_table/db_column), but there's also the possibility of that method using a > much shorter way of

Re: Porting _django_bash_completion to Windows Powershell

2010-03-10 Thread Russell Keith-Magee
On Thu, Mar 11, 2010 at 4:12 AM, guillermooo wrote: > ** I might be posting in the wrong place. Apologies if I do, but this > felt like the right place to ask! ** > > Hi! > > I'm trying to port Django's django_bash_completion script to Windows > Powershell, but I only know so much bash, so I'd nee

Re: Problems with DatabaseCreation, table names, and index names

2010-03-10 Thread Russell Keith-Magee
On Thu, Mar 11, 2010 at 7:13 AM, James Bennett wrote: > On Wed, Mar 10, 2010 at 4:55 PM, Andrew Godwin wrote: >> The question is, is it even worth fixing? I'm tempted to conclude that >> you're limited to shorter model/field names by your database (or use >> db_table/db_column), but there's also

Proposal - hook to modify links in object-tools

2010-03-10 Thread George Karpenkov
Currently to add a link to object-tools one has to modify a template. I think that in most cases it would be much easier to do that through python - if admin actions have a mechanism for removing existing ones/ adding new ones why object-tools does not? Sometimes it's impossible to modify an admi