I solved my problem. I found that if I put the route right above the decorated function the routes worked. My theory is that the build error I was getting was the router function couldn't find the http methods. Now that the routes are right above the function the decorator can see the route. Thanks everyone for your help advise and patience with me. Next time I will post to the python list. On Aug 29, 2014 10:13 PM, "Michael Torrie" <[email protected]> wrote:
> On 08/29/2014 08:23 PM, Daniel wrote: > > Here is what I found. If I switch line 43 with line 44 my corrected code > > works. If I switch them back I get the build error. The error message > > mentioned method was None. I think what was happening was when I wrapped > > the function it didn't wrap the route. I could be wrong with this, but > > with my limited knowledge of this language and library it seems logical. > > Always post the traceback. Otherwise you're just having people guess at > things. > > Also, there is an official python mailing list/nntp list that you can > post to as well if you want. Though just a tip before posting there: > have a small example of the problem that is run-able standalone, and > always post the traceback. > > > /* > PLUG: http://plug.org, #utah on irc.freenode.net > Unsubscribe: http://plug.org/mailman/options/plug > Don't fear the penguin. > */ > /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
