Opened 9 years ago

Closed 9 years ago

#2529 closed defect (fixed)

[patch] admin/doc/views throws TypeError

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

Description (last modified by adrian)

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

Attachments (1)

admin-doc.diff (647 bytes) - added by dummy@… 9 years ago.
there seems a typo of _get_callback

Download all attachments as: .zip

Change History (5)

comment:1 Changed 9 years ago by dummy@…

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

Changed 9 years ago by dummy@…

there seems a typo of _get_callback

comment:2 Changed 9 years ago by anonymous

  • Summary changed from admin/doc/views throws TypeError to [patch] admin/doc/views throws TypeError

comment:3 Changed 9 years ago by adrian

  • Description modified (diff)

comment:4 Changed 9 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(In [3690]) Fixed #2529 -- Fixed TypeError in admin/doc/views. Thanks for the report and patch, dummy@…

Note: See TracTickets for help on using tickets.
Back to Top