[CalendarServer-changes] [7932] CalendarServer/branches/users/glyph/imip-and-admin-html/ calendarserver/webadmin/resource.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Aug 11 21:46:08 PDT 2011


Revision: 7932
          http://trac.macosforge.org/projects/calendarserver/changeset/7932
Author:   glyph at apple.com
Date:     2011-08-11 21:46:07 -0700 (Thu, 11 Aug 2011)
Log Message:
-----------
stub implementations of all renderers, enough to get a clean test failure

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/imip-and-admin-html/calendarserver/webadmin/resource.py

Modified: CalendarServer/branches/users/glyph/imip-and-admin-html/calendarserver/webadmin/resource.py
===================================================================
--- CalendarServer/branches/users/glyph/imip-and-admin-html/calendarserver/webadmin/resource.py	2011-08-12 04:45:56 UTC (rev 7931)
+++ CalendarServer/branches/users/glyph/imip-and-admin-html/calendarserver/webadmin/resource.py	2011-08-12 04:46:07 UTC (rev 7932)
@@ -146,10 +146,59 @@
         Renderer which fills slots for details of the resource selected by
         the resourceId request parameter.
         """
-        return ""
+        # FIXME IMPLEMENT
+        return tag.fillSlots(resourceTitle="",
+                             resourceId="",
+                             davPropertyName="")
 
+    @renderer
+    def propertyParseError(self, request, tag):
+        """
+        Renderer to display an error when the user specifies an invalid property
+        name.
+        """
+        # FIXME IMPLEMENT
+        return tag
 
 
+    @renderer
+    def davProperty(self, request, tag):
+        """
+        Renderer to display an error when the user specifies an invalid property
+        name.
+        """
+        # FIXME IMPLEMENT
+        return tag.fillSlots(name="sample property", value="sample value")
+
+
+    @renderer
+    def isAutoSchedule(self, request, tag):
+        """
+        Renderer which returns its tag if the resource is auto-schedule.
+        """
+        # FIXME IMPLEMENT
+        return ''
+
+
+    @renderer
+    def isntAutoSchedule(self, request, tag):
+        """
+        Renderer which returns its tag if the resource is not auto-schedule.
+        """
+        # FIXME IMPLEMENT
+        return ''
+
+
+    @renderer
+    def proxyRows(self, request, tag):
+        """
+        Renderer which does zipping logic to render read-only and read-write
+        rows of existing proxies for the currently-viewed resource.
+        """
+        # FIXME IMPLEMENT
+        return ''
+
+
 class WebAdminResource (ReadOnlyResourceMixIn, DAVFile):
     """
     Web administration HTTP resource.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110811/fdbe7f27/attachment.html>


More information about the calendarserver-changes mailing list