Exemplo n.º 1
0
	def _getSection(self, specific):
		if specific:
			if self._cfgClassSections:
				section = self._cfgClassSections[-1]
			else:
				section = SimpleConfigView._getSection(self, specific)
			if self._cfgNames:
				section += ' %s' % str.join(' ', self._cfgNames)
			if self._cfgTags:
				section += ' %s' % str.join(' ', imap(lambda t: '%s:%s' % t, self._cfgTags))
			return section
		elif self._cfgClassSections:
			return self._cfgClassSections[0]
		return SimpleConfigView._getSection(self, specific)
Exemplo n.º 2
0
 def _getSection(self, specific):
     if specific:
         if self._cfgClassSections:
             section = self._cfgClassSections[-1]
         else:
             section = SimpleConfigView._getSection(self, specific)
         if self._cfgNames:
             section += ' %s' % str.join(' ', self._cfgNames)
         if self._cfgTags:
             section += ' %s' % str.join(
                 ' ', imap(lambda t: '%s:%s' % t, self._cfgTags))
         return section
     elif self._cfgClassSections:
         return self._cfgClassSections[0]
     return SimpleConfigView._getSection(self, specific)