from common.apiversion import APIVersion
from common.application import Application

class VersionsApp(Application):

	def APIVersionList(self, req, args):
		return ( [ version._api_version_detail(req) for version in APIVersion.version_classes ], None )

	def APIVersionDetails(self, req, params):
		return ( self._api_version_detail(req), None )

def factory(global_config, **settings):
	return VersionsApp()

from common.apiversion import APIVersion
from common.application import Application

class VersionsApp(Application):

	def APIVersionList(self, req, args):
		return ( [ version._api_version_detail(req) for version in APIVersion.version_classes ], None )

	def APIVersionDetails(self, req, params):
		return ( APIVersion._api_version_detail(req), None )

def factory(global_config, **settings):
	return VersionsApp()

Call APIVersion._api_version_detail not nonexistent self._api_version_detail.
Call APIVersion._api_version_detail not nonexistent self._api_version_detail.
