liuyang1520 / django-command-extensions

Automatically exported from code.google.com/p/django-command-extensions
MIT License
0 stars 0 forks source link

graph_models doesn't work on python 2.3 #30

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Using python 2.3, run ./manage.py graph_models -a

What is the expected output? What do you see instead?
16:30:09[wlcg]lxvm0304.c$./manage.py  graph_models -a
Traceback (most recent call last):
  File "./manage.py", line 11, in ?
    execute_manager(settings)
  File
"/usr/lib/python2.3/site-packages/django/core/management/__init__.py", line
272, in execute_manager
    utility.execute()
  File
"/usr/lib/python2.3/site-packages/django/core/management/__init__.py", line
219, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.3/site-packages/django/core/management/base.py",
line 72, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.3/site-packages/django/core/management/base.py",
line 86, in execute
    output = self.handle(*args, **options)
  File
"/usr/lib/python2.3/site-packages/extensions/management/commands/graph_models.py
",
line 30, in handle
    dotdata = generate_dot(args, **options)
  File
"/usr/lib/python2.3/site-packages/extensions/management/modelviz.py", line
163, in generate_dot
    graph = Context({
AttributeError: 'str' object has no attribute 'rsplit'

What version of the product are you using? On what operating system?
0.4_pre (svn revision 77)
Python 2.3.4 - Scientific Linux 4 (RHEL4 compatible)

Please provide any additional information below.

Patch attached.

Original issue reported on code.google.com by jamesc.000@gmail.com on 17 Jul 2008 at 2:41

Attachments:

GoogleCodeExporter commented 8 years ago
ai, good catch :)
thanks for the patch, i've committed it in svn

Original comment by v.oostv...@gmail.com on 17 Jul 2008 at 3:09