Re: Mysterious problem with pydoc

2009-05-13 Thread aaronelliotross

On May 12, 7:18 pm, Karen Tracey  wrote:
> On Mon, May 11, 2009 at 7:02 PM, aaronelliotross  wrote:
>
> > Ah ha! It's triggered by ForeignKey columns, creating a super simple
> > project ( no db data, no nothin' ) with this models.py shows the
> > problem.
>
> This sounds like:
>
> http://code.djangoproject.com/ticket/8248
>
> which was fixed a few months ago.  The fix will be in both 1.1 and the next
> 1.0.X bugfix release.

Great.

It works for me with a dev checkout too.

Thanks,
--
Aaron
--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Mysterious problem with pydoc

2009-05-12 Thread Karen Tracey
On Mon, May 11, 2009 at 7:02 PM, aaronelliotross  wrote:

>
> Ah ha! It's triggered by ForeignKey columns, creating a super simple
> project ( no db data, no nothin' ) with this models.py shows the
> problem.
>

This sounds like:

http://code.djangoproject.com/ticket/8248

which was fixed a few months ago.  The fix will be in both 1.1 and the next
1.0.X bugfix release.

Karen


> $ django-admin.py startproject docstring
> $ cd docstring/
> $ django-admin.py startapp users
>
> Edit users/models.py to be:
>
> from django.db import models
>
> class User(models.Model):
>   """ This is my user class. """
>
>   name = models.CharField()
>
> class Address(models.Model):
>   """ This is my address class. """
>
>   user = models.ForeignKey(User)
>   city = models.CharField()
>
> $ python manage.py shell
> >>> import users.models
> >>> help(users.models.User)
> Help on class User in module users.models:
>
> User = 
>
> Talk to you soon,
>
>
> On May 11, 8:02 pm, aaronelliotross  wrote:
> > Hi all,
> >
> > I'm trying to track down a confusing problem with pydoc and my Django
> > models. I'm hoping it's something obvious that I'm overlooking.
> >
> > The problem is that pydoc and friends simply return the default Django
> > docstring, e.g.
> >
> > [aaron]$ DJANGO_SETTINGS_MODULE=settings pydoc
> > core.subscriptions.Subscription
> >
> > Help on class Subscription in core.subscriptions:
> >
> > core.subscriptions.Subscription =  > 'core.subscriptions.Subscription'>
> >
> > While core/subscriptions.py has, among other things:
> >
> > class Subscription(models.Model):
> > """
> > Each subscription is a user and a list, indicating a user's
> > subscription
> > to that list.
> > """
> >
> > I've tried to recreate with a simple example, but haven't been able to
> > do so yet. The list archives reveal little ( though this was
> > tantalizingly closehttp://
> groups.google.com/group/django-users/browse_thread/thread/7c35...
> > ).
> >
> > Anybody have any ideas on debugging this little problem?
> >
> > Thanks,
> >
> > Aaron
> >
>

--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Mysterious problem with pydoc

2009-05-11 Thread aaronelliotross

Ah ha! It's triggered by ForeignKey columns, creating a super simple
project ( no db data, no nothin' ) with this models.py shows the
problem.

$ django-admin.py startproject docstring
$ cd docstring/
$ django-admin.py startapp users

Edit users/models.py to be:

from django.db import models

class User(models.Model):
   """ This is my user class. """

   name = models.CharField()

class Address(models.Model):
   """ This is my address class. """

   user = models.ForeignKey(User)
   city = models.CharField()

$ python manage.py shell
>>> import users.models
>>> help(users.models.User)
Help on class User in module users.models:

User = 

Talk to you soon,


On May 11, 8:02 pm, aaronelliotross  wrote:
> Hi all,
>
> I'm trying to track down a confusing problem with pydoc and my Django
> models. I'm hoping it's something obvious that I'm overlooking.
>
> The problem is that pydoc and friends simply return the default Django
> docstring, e.g.
>
> [aaron]$ DJANGO_SETTINGS_MODULE=settings pydoc
> core.subscriptions.Subscription
>
> Help on class Subscription in core.subscriptions:
>
> core.subscriptions.Subscription =  'core.subscriptions.Subscription'>
>
> While core/subscriptions.py has, among other things:
>
> class Subscription(models.Model):
>     """
>     Each subscription is a user and a list, indicating a user's
> subscription
>     to that list.
>     """
>
> I've tried to recreate with a simple example, but haven't been able to
> do so yet. The list archives reveal little ( though this was
> tantalizingly 
> closehttp://groups.google.com/group/django-users/browse_thread/thread/7c35...
> ).
>
> Anybody have any ideas on debugging this little problem?
>
> Thanks,
>
> Aaron
--~--~-~--~~~---~--~~
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 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---