Re: How can I add the Openid session data to the Django test client Client.post() ?

2010-02-25 Thread br...@instantdirectmarketing.com
response = c.post('/account/register/', {u'username': [u'john'], u'email': [u'j...@beatles.com'], u'bnewaccount': [u'Signup']}) self.assertEqual(response.status_code, 200) user = User.objects.get( username =&#x

How can I add the Openid session data to the Django test client Client.post() ?

2010-02-24 Thread br...@instantdirectmarketing.com
I'm trying to test that a UserProfile model is created as a new User is registered in django_authopenid. I don't understand how to add the Openid session data to the POST. class UserTestCase(TestCase): def test_register_should_create_UserProfile(self): from django.test.client imp

How can _meta.local_fields not match the table schema in the database?

2010-02-07 Thread br...@instantdirectmarketing.com
I'm completely confused about why _meta.local_fields returns more fields than the database table contains. The User model inherits from contrib.auth.models.User. $ mysql -u user -p database Enter password: Reading table information for completion of table and column names You can

Re: Amazon Product Advertising API

2009-08-01 Thread br...@instantdirectmarketing.com
Luke, I was curious how this was going. I did find this: http://jjinux.blogspot.com/2009/06/python-amazon-product-advertising-api.html import time import urllib from boto.connection import AWSQueryConnection AWS_ACCESS_KEY_ID = '...' AWS_ASSOCIATE_TAG = '...' AWS_SECRET_ACCESS_KEY = '...' se