Author: adrian
Date: 2007-01-14 14:03:28 -0600 (Sun, 14 Jan 2007)
New Revision: 4316
Modified:
django/branches/newforms-admin/django/contrib/admin/views/main.py
Log:
newforms-admin: Added docstrings to ModelAdminView methods
Modified: django/branches/newforms-admin/django/contrib/admin/views/main.py
===================================================================
--- django/branches/newforms-admin/django/contrib/admin/views/main.py
2007-01-14 20:00:11 UTC (rev 4315)
+++ django/branches/newforms-admin/django/contrib/admin/views/main.py
2007-01-14 20:03:28 UTC (rev 4316)
@@ -113,6 +113,7 @@
return mav(request, rest_of_url)
class ModelAdminView(object):
+ "Class that encapsulates all admin views for a given model."
def __init__(self, opts):
self.opts = opts
@@ -129,18 +130,23 @@
return self.change_view(request, url)
def add_view(self, request):
+ "The 'add' admin view for this model."
raise NotImplementedError('Add view')
def change_view(self, request, object_id):
+ "The 'change' admin view for this model."
raise NotImplementedError('Change view with object %r' % object_id)
def change_list_view(self, request):
+ "The 'change list' admin view for this model."
raise NotImplementedError('Change list view')
def delete_view(self, request, object_id):
+ "The 'delete' admin view for this model."
raise NotImplementedError('Delete view with object %r' % object_id)
def history_view(self, request, object_id):
+ "The 'history' admin view for this model."
raise NotImplementedError('History view with object %r' % object_id)
class AdminBoundField(object):
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Django
updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---