def edit(self, *args, **kw): "Inline edit view" temp = [] typeformat = '<div>Id: %s Display:%s</div>' cdoc = self.getCompoundDoc() displays = [''] if cdoc.DisplayManager is not None: displays.extend(cdoc.DisplayManager.displayUsage(self.displayType)) if cdoc.displayMap is not None: displays.extend(cdoc.displayMap.keys()) tabOrder = self.tabOrder if tabOrder is None: tabOrder = [] neededEntries = len(tabOrder) + 1 temp.append(self.editSingleConfig('renderer')) temp.append(NestedListURL.editRenderer(self.renderer, self)) tabMapping = self.tabMapping if tabMapping is None: tabMapping = {} for index in xrange(neededEntries): try: nameValue = tabOrder[index] displayValue = tabMapping[nameValue] except (IndexError,KeyError): nameValue = '' displayValue = '' temp.append(typeformat % (self.input_text('name', nameValue, containers=('tabMapping', str(index))), self.option_select(displays, 'display', [displayValue], containers=('tabMapping', str(index))))) return ''.join(temp)
def edit(self, *args, **kw): "Inline edit view" temp = [] temp.append(self.editSingleConfig('renderer')) temp.append(NestedListURL.editRenderer(self.renderer, self)) temp.append(self.editSingleConfig('baseURL')) temp.append(self.editSingleConfig('depth')) temp.append(self.editSingleConfig('sortOn')) temp.append(self.editSingleConfig('folderSortOn')) temp.append(self.editSingleConfig('showCompoundDocs')) temp.append(self.editSingleConfig('restrictedMode')) temp.append(self.editSingleConfig('renderScriptPath')) temp.append(self.editSingleConfig('mergeScriptName')) temp.append(self.editSingleConfig('docsAsNodes')) profiles = [''] profiles.extend(utility.getStoredProfileNames()) selected = self.getSelected() temp.append('<p>%s</p>' % self.create_button('clear', 'Clear Selected Profile')) temp.append('<p>Profiles that are allowed:%s</p>' % self.multiselect('selected', profiles, selected, size=10)) return ''.join(temp)
def edit(self, *args, **kw): "Inline edit view" temp = [] typeformat = '<div>Id: %s Display:%s</div>' cdoc = self.getCompoundDoc() displays = [''] if cdoc.DisplayManager is not None: displays.extend(cdoc.DisplayManager.displayUsage(self.displayType)) if cdoc.displayMap is not None: displays.extend(cdoc.displayMap.keys()) tabOrder = self.tabOrder if tabOrder is None: tabOrder = [] neededEntries = len(tabOrder) + 1 temp.append(self.editSingleConfig('renderer')) temp.append(NestedListURL.editRenderer(self.renderer, self)) tabMapping = self.tabMapping if tabMapping is None: tabMapping = {} for index in xrange(neededEntries): try: nameValue = tabOrder[index] displayValue = tabMapping[nameValue] except (IndexError, KeyError): nameValue = '' displayValue = '' temp.append( typeformat % (self.input_text( 'name', nameValue, containers=('tabMapping', str(index))), self.option_select(displays, 'display', [displayValue], containers=('tabMapping', str(index))))) return ''.join(temp)