def _computeAllowedMethods(resource):
 allowedMethods = []
 for name in prefixedMethodNames(resource.__class__, 'render_'):
  allowedMethods.append(name)
 return allowedMethods

def _computeAllowedMethods ( resource ) : allowedMethods = [ ] for name in prefixedMethodNames ( resource . __class__ , 'render_' ) : allowedMethods . append ( name ) return allowedMethods
compute the allowed methods on a c{resource} based on defined render_foo methods .