Re: MR: Revision 2745 and up -- Syncdb breakage, and why

2006-04-25 Thread Ken Kennedy
I'd say put 'em there! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL

Re: SQL Debugging in MR

2006-04-25 Thread everes
'time' and 'sql' are set at CursorDebugWrapper(django.db.backends.util.py). I wrote debug middleware for MR(2509) and I think it works even now. http://www.everes.net/django-db-debug-out-middleware/ Attention, you must set settings.DEBUG to TRUE,not only this middleware but also using

simon's AbstractSearching still working with m-r branch?

2006-04-25 Thread nkeric
hi all, I would like to know if simon's AbstractSearching still working with the django m-r branch? https://simon.bofh.ms/cgi-bin/trac-django-projects.cgi/wiki/AbstractSearching Regards, - Eric --~--~-~--~~~---~--~~ You received this message because you are

Re: svn updated, demo

2006-04-25 Thread Michael
Yes, you are right, but I send the message here by mistake. SorryOn 4/26/06, Clint Ecker <[EMAIL PROTECTED] > wrote: On 4/25/06, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:Hi all,I've updated svn trunk, fix entries at demo shop so admin demo will work:http://dshop.mine.nu/shop/pages/Demo/Fill

Re: MR: Revision 2745 and up -- Syncdb breakage, and why

2006-04-25 Thread Clint Ecker
On 4/25/06, Rudolph <[EMAIL PROTECTED]> wrote: The above fixes the issue, but to completely remove all uppercasednames also do:BEGIN;UPDATE django_content_type set name='group' where model='group';UPDATE django_content_type set name='user' where model='user'; COMMIT;Thanks for putting those

Limit number of edit_inline results in admin?

2006-04-25 Thread SmileyChris
I have a model which will have a lot of related objects (one type of object). It would be cool to be able to use edit_inline and just show the last X objects or something, rather than 40+ inline objects. I see there is "max_num_in_admin", but that stops the ability to add in new ones once the

Re: Forking a new process

2006-04-25 Thread Steven Armstrong
On 04/25/06 13:56, tomass wrote: > Hi Folks, > > I'm trying to fork a new process using os.fork(), and everything seems > to be working well, except that I need to then reference django models > from the forked process. This seems to mean I need to reimport all the > relevant modules into the

svn updated, demo

2006-04-25 Thread [EMAIL PROTECTED]
Hi all, I've updated svn trunk, fix entries at demo shop so admin demo will work: http://dshop.mine.nu/shop/pages/Demo/ Fill free to play with admin add products,etc Regards, Michael --~--~-~--~~~---~--~~ You received this message because you are

Re: MR: Revision 2745 and up -- Syncdb breakage, and why

2006-04-25 Thread Rudolph
The above fixes the issue, but to completely remove all uppercased names also do: BEGIN; UPDATE django_content_type set name='group' where model='group'; UPDATE django_content_type set name='user' where model='user'; COMMIT; --~--~-~--~~~---~--~~ You received

Re: MR: Revision 2745 and up -- Syncdb breakage, and why

2006-04-25 Thread Rudolph
Fix this in PostgreSQL like this: BEGIN; UPDATE auth_permission set name='Can add group' where codename='add_group'; UPDATE auth_permission set name='Can change group' where codename='change_group'; UPDATE auth_permission set name='Can delete group' where codename='delete_group'; UPDATE

Re: M-R DB API Usage Question: How to order_by with extra field?

2006-04-25 Thread FX
Seems to me it looks like a bug in the m-r branch. django/db/models/query.py, line 430: was: if "." not in col_name and col_name not in [k[0] for k in (self._select or ())]: should be: if "." not in col_name and col_name not in [k for k in (self._select or ())]: for k[0] will be the first

Re: MR: Revision 2745 and up -- Syncdb breakage, and why

2006-04-25 Thread Rudolph
This should be on the Magic Removal wiki page, including SQL commands to update the records. I'll create the PostgreSQL commands within a few hours and post them here. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: maxlength in the Admin site

2006-04-25 Thread ChaosKCW
Sweet, thanks alot. A welcome addition. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send

M-R DB API Usage Question: How to order_by with extra field?

2006-04-25 Thread FX
Hi there! Finally got some part of the site working under M-R. It's a major edit due to our large code base, complex models and many custom template tags... :( I will try to post some of the things I learned along the way when I get this done... Here is the problem I'm having with right now: Old

Re: Forking a new process

2006-04-25 Thread Eric Walstad
On Tuesday 25 April 2006 06:52, tomass wrote: > Well, basically I have processes that could take minutes to > execute, and I'd like to background them, serve up a page showing > the status, and then allow users to view the output once they've > completed. > > Thanks, Tom mod_python has/had a

MR: Revision 2745 and up -- Syncdb breakage, and why

2006-04-25 Thread Clint Ecker
After updating to revision 2747 this morning I tried installing a new app in my project and found Django trying to reinstall permissions.  After a bit of digging I found out that my "names" in auth_permissions had uppercase chars in them instead of lowercase (ie. 'Can add Group' instead of 'Can

SQL Debugging in MR

2006-04-25 Thread Clint Ecker
I poked through the mailing list here and never saw a solution for digging through the SQL query stack in MR as you were able to do in old-world-django, ala: http://www.djangoproject.com/documentation/faq/#how-can-i-see-the-raw-sql-queries-django-is-runningI did some grepping and looked through

Re: Validators in a model's validator_list (m-r)

2006-04-25 Thread Christian Schneider
On 4/25/06, Michael Radziej <[EMAIL PROTECTED]> wrote: Christian Schneider wrote:> On 4/25/06, Michael Radziej <[EMAIL PROTECTED]> wrote: Christian Schneider wrote:>>> Michael,>>> >>> I'm still using a generic view. I played with some custom functions>> before>>> and they were called so I'd

Re: Validators in a model's validator_list (m-r)

2006-04-25 Thread Michael Radziej
Christian Schneider wrote: > On 4/25/06, Michael Radziej <[EMAIL PROTECTED]> wrote: >> >> Christian Schneider wrote: >>> Michael, >>> >>> I'm still using a generic view. I played with some custom functions >> before >>> and they were called so I'd hoped that it would work with the validator >>>

Re: Validators in a model's validator_list (m-r)

2006-04-25 Thread Christian Schneider
On 4/25/06, Michael Radziej <[EMAIL PROTECTED]> wrote: Christian Schneider wrote:> Michael,>> I'm still using a generic view. I played with some custom functions before> and they were called so I'd hoped that it would work with the validator > objects as well.I looked in the source. Aha! First

Re: Validators in a model's validator_list (m-r)

2006-04-25 Thread Michael Radziej
Christian Schneider wrote: > Michael, > > I'm still using a generic view. I played with some custom functions before > and they were called so I'd hoped that it would work with the validator > objects as well. I looked in the source. Aha! First parameter to RequiredIfOtherField is the *name* of

Re: Validators in a model's validator_list (m-r)

2006-04-25 Thread Christian Schneider
Michael,I'm still using a generic view. I played with some custom functions before and they were called so I'd hoped that it would work with the validator objects as well.Regardschris On 4/25/06, Michael Radziej <[EMAIL PROTECTED]> wrote: Christian Schneider wrote:> However, no matter what value

Re: Validators in a model's validator_list (m-r)

2006-04-25 Thread Michael Radziej
Christian Schneider wrote: > However, no matter what value recording_type has, the validator is not > called. What I find funny is that the validator's __call__ method takes > three values (self, field_data, all_data) while custom validator functions > specified with validator_list take only

Re: Forking a new process

2006-04-25 Thread Michael Radziej
tomass wrote: > Well, basically I have processes that could take minutes to execute, > and I'd like to background them, serve up a page showing the status, > and then allow users to view the output once they've completed. Hmm. I don't know what it takes to get a clean independent fork so that no

Re: Forking a new process

2006-04-25 Thread tomass
Well, basically I have processes that could take minutes to execute, and I'd like to background them, serve up a page showing the status, and then allow users to view the output once they've completed. Thanks, Tom --~--~-~--~~~---~--~~ You received this message

Validators in a model's validator_list (m-r)

2006-04-25 Thread Christian Schneider
Hi all,I want to specify some dependencies in my model (magic removal) and want to use django.core.validators.RequiredIfOtherFieldEquals for that.My model contains the following code:from django.core import validatorsrecording_type = models.IntegerField(    choices=RECORDING_TYPE_CHOICES, 

Re: Forking a new process

2006-04-25 Thread Michael Radziej
tomass wrote: > Hi Folks, > > I'm trying to fork a new process using os.fork(), and everything seems > to be working well, except that I need to then reference django models > from the forked process. This seems to mean I need to reimport all the > relevant modules into the function that's

Forking a new process

2006-04-25 Thread tomass
Hi Folks, I'm trying to fork a new process using os.fork(), and everything seems to be working well, except that I need to then reference django models from the forked process. This seems to mean I need to reimport all the relevant modules into the function that's running as a forked process,

Re: ImageField/FileField in M/R

2006-04-25 Thread Nebojsa Djordjevic
Denis wrote: > If so, then it (the file) shouldn't be deleted when you delete() > the object? Also, M/R branch seems has no methods like > _pre_save/_post_save, > instead you can subclass save/delete methods. There are some references > in db.models.signals, dont know how to use them though You

Re: Filtering ManyToManyFields

2006-04-25 Thread Christian Schneider
Malcolm,sorry for the late reply ...On 4/24/06, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: Ignore my previous mail and all the judgement values it contains. Gladyou solved your problem. anyway, thanks a lot. It's good to have a lively community. I hope I'll be in shape to contribute soon.chris