Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How do I alter the behavior of django.db.models.Options.contr ibute_to_class when testing
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
crippledcanary  
View profile  
 More options Aug 21 2008, 12:39 pm
From: crippledcanary <crippledcan...@gmail.com>
Date: Thu, 21 Aug 2008 09:39:08 -0700 (PDT)
Local: Thurs, Aug 21 2008 12:39 pm
Subject: How do I alter the behavior of django.db.models.Options.contribute_to_c lass when testing
I am working on http://code.djangoproject.com/ticket/6148.
This includes a new option "db_schema" that's been added to a models
meta class.
It involves using a custom schema for any model that has this
attribute set.
The problem comes when testing.
In postgres a test database is created and inside that one this or
these new schemas are created. Works fine when creating and dropping
the test database.
In mysql schemas are treated as ordinary databases. So a test database
gets created. I can even create the "databases" that correspond to
db_schema but these will be the same as when running "live". Not
created INSIDE the test database but in parallel to the test database
and with the same name as when running normally.

What I want to do is to alter/patch the value in db_schema with
something when create_test_db is used but not else.
This db_schema attribute has to be set at the time contribute_to_class
method of django.db.models.Options is called or before because it is
used there.

Any hints or ideas are most welcome...

//Peter Magnusson


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Russell Keith-Magee  
View profile  
 More options Aug 21 2008, 7:38 pm
From: "Russell Keith-Magee" <freakboy3...@gmail.com>
Date: Fri, 22 Aug 2008 07:38:51 +0800
Local: Thurs, Aug 21 2008 7:38 pm
Subject: Re: How do I alter the behavior of django.db.models.Options.contribute_to_c lass when testing
On Fri, Aug 22, 2008 at 12:39 AM, crippledcanary

My hint would be wait. We are currently in the crunch right before our
v1.0 release. Developer attention is currently focussed on  fixing
existing bugs and getting v1.0 out the door; I can't speak for the
other developers, but at the moment, I simply don't have the spare
cycles to dedicate to guiding a new feature.

This doesn't mean the feature isn't worthwhile - it just means we have
slightly different priorities at the moment. If you wait about a month
(2 weeks to the release, and a few extra weeks to let us recover from
the hangover), you'll get a lot more attention for your design issues.

Yours,
Russ Magee %-)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Peter Magnusson  
View profile  
 More options Aug 22 2008, 1:32 am
From: "Peter Magnusson" <crippledcan...@gmail.com>
Date: Fri, 22 Aug 2008 07:32:13 +0200
Local: Fri, Aug 22 2008 1:32 am
Subject: Re: How do I alter the behavior of django.db.models.Options.contribute_to_c lass when testing
Quite understandable. I'll drop it for the moment as I have what I
need to get my project going but as Arnold said- I'll be back..

2008/8/22, Russell Keith-Magee <freakboy3...@gmail.com>:

--
Peter Magnusson
crippledcan...@gmail.com | http://crippledcanary.se

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »