Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No idea what this package does #2

Open
abitrolly opened this issue Jul 22, 2018 · 2 comments
Open

No idea what this package does #2

abitrolly opened this issue Jul 22, 2018 · 2 comments

Comments

@abitrolly
Copy link

I am doing cleanup for fedora-packages project and I can not get what this project does. Description is too high level for my level, there are no examples in README.md and documentation link shows Permission denied page.

@amol-
Copy link
Member

amol- commented Jul 23, 2018

crank is the routing library of TurboGears, it implements the object dispatch routing system ( https://turbogears.readthedocs.io/en/latest/turbogears/objectdispatch.html?highlight=object%20dispatch ).

I'm not aware of projects using it outside of TurboGears itself, there was a plan to document it as a standalone library to allow third parties usage, but in the end no one ever invested the effort to do so.

@abitrolly
Copy link
Author

abitrolly commented Jul 23, 2018

routing is a clear term, thanks. I now recall there was a trend in MVC frameworks to have those dynamic rules to map URLs to object methods. However ObjectDispatching is still unclear, by the name it is not the request that is dispatched, but some object. Too abstract for beginners - not enough examples. Documentation says it is possible to "making possible for example to generate all the urls knowing where they are mounted", but doesn't show how.

Does that object traversal occurs on every request? Because that looks like a very costly operation for every request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants