Closed mfrasca closed 8 years ago
what I would think of, no, you cannot do that in a google group. what I think of is that
and we either have a smart repository (that needs programming and hosting) so that Bauble can stay dumb, or we have all smartness in Bauble (and we need programming) so we ca use something like google code or github.
I don't see how to do it in an easy way.
A good way to do this is to host report files in a Git repository. That's how homebrew (the mac package manager) does it. What's nice about it is long as there's a common interface for the report files then an organization could even create a private git repo for shared report files and just change the location of the repo in a config. For example here's a third party homebrew repo for python related files packages that aren't in the core Homebrew repo: https://github.com/Homebrew/homebrew-python
Homebrew uses a ruby script as the package definition. Bauble could easily use python files or json might be more secure than running unknown scripts.
could do as @brettatoms says, and we could have authenticated users writing to the repo and non authenticated just downloading.
just a quick look into PyGithub...
pip install pygithub
>>> import github
>>> client = github.Github()
>>> bb = client.get_organization('Bauble')
>>> rep = bb.get_repo('bauble.classic-reports')
>>> fc = rep.get_file_contents('README.rst')
>>> import base64
>>> base64.decodestring(fc.raw_data['content'])
how to organize files... maybe too simple, but what about we
reports
?), .rst
describes the report.https://developer.github.com/v3/ (PyGithub is only offering the api in pythonic way)
the repository: Bauble/bauble.classic-reports
This issue was moved to Ghini/ghini.desktop#108
Ross Demuth writes: