Noah Slater wrote: > Hello, > > When creating a configuration file, the documentation gives this as an > example: > use = egg:Paste#urlmap > > > What does egg:Paste#urlmap point to? From the documentation it says: > > "egg:Paste#urlmap means to use the composite application named urlmap > from the Paste package" > > What is the "Paste" package, on my system there is a "paste" python > package - so there seems to be a difference in capitalisation here. > > Also, later it gives this an example: > > paste.app_factory = myapp.modulename:app_factory > > How is this different from the above example? Why does this require > what looks like a app_factory method when the above doesn't. Are the > two examples interchangeable? > > Why use eggs explicitly at all when you can just use python import paths?
Paste Deploy supports several different APIs -- they aren't that different, but they are different enough that they aren't interchangeable. For instance, paste.filter_factory and paste.filter_app_factory. When you use egg:Paste#urlmap, it looks in entry_points, which explicitly indicate the API of the object they point to. I'd prefer if there was some more standard convention for this stuff, and maybe slightly different than what Paste Deploy uses. But there isn't really any agreement. I'd probably prefer "use = python:module [api name]", where the api name would be optional (it would default to something reasonable). Or something like that. I'm going mostly offline for the next week or so, so I'm afraid I won't be able to follow up. Ian _______________________________________________ Paste-users mailing list [email protected] http://webwareforpython.org/cgi-bin/mailman/listinfo/paste-users
