[CalendarServer-changes] [7955] 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:50:23 PDT 2011
Revision: 7955
http://trac.macosforge.org/projects/calendarserver/changeset/7955
Author: glyph at apple.com
Date: 2011-08-11 21:50:23 -0700 (Thu, 11 Aug 2011)
Log Message:
-----------
isAutoSchedule/isntAutoSchedule renderers
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:50:12 UTC (rev 7954)
+++ CalendarServer/branches/users/glyph/imip-and-admin-html/calendarserver/webadmin/resource.py 2011-08-12 04:50:23 UTC (rev 7955)
@@ -237,8 +237,9 @@
Renderer which sets the 'selected' attribute on its tag if the resource
is auto-schedule.
"""
- # FIXME IMPLEMENT
- return ''
+ if self.principalResource.getAutoSchedule():
+ tag(selected='selected')
+ return tag
@renderer
@@ -247,8 +248,9 @@
Renderer which sets the 'selected' attribute on its tag if the resource
is not auto-schedule.
"""
- # FIXME IMPLEMENT
- return ''
+ if not self.principalResource.getAutoSchedule():
+ tag(selected='selected')
+ return tag
@renderer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110811/4a86aa3f/attachment-0001.html>
More information about the calendarserver-changes
mailing list