Opened 18 years ago

Last modified 18 years ago

#2529 closed defect

[patch] admin/doc/views throws TypeError — at Version 3

Reported by: dummy@… Owned by: Adrian Holovaty
Component: contrib.admin Version: dev
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Adrian Holovaty)

Hi,

the admin/doc/views throws the following TypeError with Rev: 3570

Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/django/core/handlers/base.py" in get_response

  74. response = callback(request, *callback_args, **callback_kwargs) 

File "/usr/local/lib/python2.4/site-packages/django/contrib/admin/views/decorators.py" in _checklogin

  55. return view_func(request, *args, **kwargs) 

File "/usr/local/lib/python2.4/site-packages/django/contrib/admin/views/doc.py" in view_index

   1. view_functions = extract_views_from_urlpatterns(urlconf.urlpatterns) 

File "/usr/local/lib/python2.4/site-packages/django/contrib/admin/views/doc.py" in extract_views_from_urlpatterns

 337. views.extend(extract_views_from_urlpatterns(p.url_patterns, base + p.regex.pattern)) 

File "/usr/local/lib/python2.4/site-packages/django/contrib/admin/views/doc.py" in extract_views_from_urlpatterns

 339. raise TypeError?, _("%s does not appear to be a urlpattern object") % p 

    TypeError? at /admin/doc/views/ <django.core.urlresolvers.RegexURLPattern object at 0x40b4d9ac> does not appear to be a urlpattern object

Regards,
Dirk

Change History (4)

comment:1 by dummy@…, 18 years ago

I pasted incidently much more than the traceback, can you delete this private infos ?

Here is the correct traceback:

Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/django/core/handlers/base.py" in get_response

  1. response = callback(request, *callback_args, callback_kwargs)

File "/usr/local/lib/python2.4/site-packages/django/contrib/admin/views/decorators.py" in _checklogin

  1. return view_func(request, *args, kwargs)

File "/usr/local/lib/python2.4/site-packages/django/contrib/admin/views/doc.py" in view_index

  1. view_functions = extract_views_from_urlpatterns(urlconf.urlpatterns)

File "/usr/local/lib/python2.4/site-packages/django/contrib/admin/views/doc.py" in extract_views_from_urlpatterns

  1. views.extend(extract_views_from_urlpatterns(p.url_patterns, base + p.regex.pattern))

File "/usr/local/lib/python2.4/site-packages/django/contrib/admin/views/doc.py" in extract_views_from_urlpatterns

  1. raise TypeError, _("%s does not appear to be a urlpattern object") % p

TypeError at /admin/doc/views/
<django.core.urlresolvers.RegexURLPattern object at 0x40b4d9ac> does not appear to be a urlpattern object

Regards,
Dirk

by dummy@…, 18 years ago

Attachment: admin-doc.diff added

there seems a typo of _get_callback

comment:2 by anonymous, 18 years ago

Summary: admin/doc/views throws TypeError[patch] admin/doc/views throws TypeError

comment:3 by Adrian Holovaty, 18 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top