Are Aspects (simple solution in CherryPy) something people would like to see integrated in Webware?
I don't like aspects; I'm not sure they exist anymore in CherryPy 2?
There is a file CherryPy-2.0.0b/cherrypy/lib/aspect.py, so yes, it is still there.
What I like in CherryPy is
# Of course we can also mount request handler objects right here! cpg.root = HomePage() cpg.root.joke = JokePage() cpg.root.links = LinksPage()
Is there something analogous in Webware: I do not rememeber?
Not really, but Winston asked about that sort of functionality a week or two ago, you can look in the archives for my response then; mostly you'd have to code it yourself.
Maybe using generators and annotations could make Webware much more
sophisticated
There's some ideas here. I'm very interested in using decorators instead of subclassing, for instance. And there's other ways of making things more functional. I've been using Component and LoginKit in the w4py.org repository, and I find them useful. But I don't think anyone else uses them.
Hmm, you remind me to dig around there ;-)
In CherryPy index.exposed = True
could be done like
@exposed def index(self):
At one point I made a subclass of Page where you didn't have to use .actions() to give the function names that are exposed, instead you can set an attribute function.action = True, or a decorator like:
def action(func): func.action = True return func
Which I think is exactly the same as exposed(). I thought I put that in Component.CPage, but I can't find it now, so maybe I left it out.
-- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Webware-discuss mailing list Webware-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/webware-discuss