Skip to content

Instantly share code, notes, and snippets.

@krotscheck
Created October 28, 2014 22:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krotscheck/934e58dcf601ee5d0c80 to your computer and use it in GitHub Desktop.
Save krotscheck/934e58dcf601ee5d0c80 to your computer and use it in GitHub Desktop.
class VersionController(rest.RestController):
@secure(checks.guest)
@wsme_pecan.wsexpose(wmodels.MyNonDBVersionModel)
def get(self):
# Get version things.
return wmodels.MyNonDBVersionModel( foo=bar, omg=cat)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment