Ticket #863 (defect)
Opened 2 months ago
Last modified 2 months ago
Cannot use classmethod as an exposed url
Status: closed (worksforme)
| Reported by: | nicoe@no-log.org | Assigned to: | fumanchu |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | CherryPy code | Keywords: | |
| Cc: |
I created this simple class and expected it to work:
class Menu(object): @classmethod @cherrypy.expose def index(cls): return 'Hello World!'
But it didn't ..
Attachments
Change History
10/02/08 05:01:52: Modified by nicoe@no-log.org
- attachment classmethod.diff added.
10/02/08 07:26:02: Modified by dowski
This worked for me without modification in 3.1. What version were you using?
10/06/08 08:44:14: Modified by nicoe@no-log.org
I am also using 3.1.0 at least that's what cherrypy.version is telling me.
10/06/08 09:01:56: Modified by nicoe@no-log
Indeed I re-checked out the cherrypy source and I can not reproduce the problem anymore. Please ignore this bug.
10/06/08 09:10:09: Modified by dowski
- status changed from new to closed.
- resolution set to worksforme.
Thanks for the update.


A patch for this ticket