def getLayoutOptions(self):
     """
     Populate selection list vocabulary for the edit page.
     """
     layouts = Layout.getLayouts(self, self.REQUEST)
     dl = atapi.DisplayList()
     for l in layouts:
         dl.add(l.view_name, l.title)
         
     return dl
 def getActiveBlockLayout(self):
     """
     @return: msd.landingpage.layout.Layout object
     """
     return Layout.getLayoutByViewName(self, self.REQUEST, self.getBlockLayout())
 def getLayoutImageSource(self, context, item):
     layout = Layout.getLayoutByViewName(context, context.REQUEST, item)
     if layout.icon:
         return context.portal_url() + "/" + layout.icon 
     else:
         return None