is there any way to set a kind of "autoreload" on devpi-server ? I'm currently working on a custom theme and a would avoid to start/stop the server on any change. Thanks in advance Stefano Il giorno sabato 1 agosto 2015 14:01:19 UTC+2, Florian Schulze ha scritto:
I made an example theme plugin which implements the hooks for everything you asked about: https://github.com/fschulze/devpi-example-theme
This shows all the advanced hooking techniques of devpi and pyramid I talked about.
I hope this helps.
Feel free to ask more if needed.
Regards, Florian Schulze
On 29 Jul 2015, at 11:08, Andrzej Ostrowski wrote:
Many thanks for the tips Florian!
There is one thing which is really hard for me to figure out: how do I use the devpiserver_pyramid_configure hook? The documentation is not that great in the devpi-server experimental hooks section.
My idea is: Create a python package named something like "company-internal-devpi-web-theme". The package contains python code snippets which are used in customized chameleon templates, all included in the package. The package could be installed with pip, together with devpi-server and devpi-web. And then the devpi server would be started with the --theme flag.
Perhaps I missed something obvious, but I don't really see where I could inject my own devpiserver_pyramid_configure hook in such scenario. I don't want to monkeypatch the devpi-web package.
With your previous answers, I was thinking about adding a new view with the route "/{user}/{index}/+inheritance_diagram". There are currently 112 indices within my company, I was thinking of adding a route "/+orgchart" which would point to a view with the inheritance graph of all indices. Additionally, I think it would be nice to store some statistics somewhere on the server side to get rid of old and unused indices. People here come and go, and I'm pretty sure that there are "dead" indices that contain packages that have not been used for quite some time. It's not burning, it would be just nice to clean up from time to time. But this is another topic.
Sorry if my questions are silly, but I'm new to web development in general. My lack of knowledge extends to pyramid, chameleon, javascript and all that stuff. I must say though, that I'm having a lot of fun with that. :-)
Cheers! Andrzej
-- You received this message because you are subscribed to the Google Groups "devpi-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to devpi-...@googlegroups.com javascript:. To post to this group, send email to dev...@googlegroups.com javascript:. Visit this group at http://groups.google.com/group/devpi-dev. For more options, visit https://groups.google.com/d/optout.