Re: Re: Delivery Status Notification (Failure)

"Joseph S. Tate" <[email protected]> Fri, 17 Mar 2017 16:27:44 +0000
Newsgroups gmane.comp.python.cherrypy
Message-ID <CA+WDQbE0-fr8xS1yr_ycMJ1QSx6Rr+DJjju55dyk8vvo-NDq6g@mail.gmail.com>
On Fri, Mar 17, 2017 at 9:32 AM Johan Hartzenberg <[email protected]>
wrote:

> @expose goes with the route handler function you want to expose, not with
> the class.  So that looks like a mistake in the example?
>
>
You can actually expose the whole class, if your python has the class
decorator syntax backported to it:
https://github.com/cherrypy/cherrypy/issues/1520

To the OP: which version of python are you using? You may need to decorate
each method instead of using a class expose decorator, or change from using

@expose
class Foo:
    ....

to

class Foo:
    ...
Foo.exposed=True

But you may be able to fix this by upgrading your python version.

-- 
You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cherrypy-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
To post to this group, send email to cherrypy-users-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.