Re: [openwisp] Re: Cloudberry multi-device configuration and arbitrary config abstraction using templating
I can really recommend django-import-export, esp when using the json-format. It provides nice admin integration and it is fairly easy to customize the export rendering of models into e.g. json objects. I'm doing some small magic for m2m-fields to export the referred-to-objects together with the main object, and doing that wasn't much code at all... On Wednesday, May 2, 2018 at 10:08:55 AM UTC+2, Federico Capoano wrote: > > Interesting! > django-reversion is being used in a few places already, while we are > considering django-import-export for a couple new modules. > > Thank for the update > Fed > >> >> -- You received this message because you are subscribed to the Google Groups "OpenWISP" group. To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [openwisp] Re: Cloudberry multi-device configuration and arbitrary config abstraction using templating
Interesting! django-reversion is being used in a few places already, while we are considering django-import-export for a couple new modules. Thank for the update Fed On Wed, May 2, 2018 at 9:31 AM wrote: > Federico: I have now added support in > https://github.com/innovationgarage/cloudberry-djangoproject for > > * Import / export using http://django-import-export.readthedocs.io (only > json-format supported though) > * Access control using a basic object ownership by django auth group scheme > * Versioning using https://django-reversion.readthedocs.io > > -- > You received this message because you are subscribed to the Google Groups > "OpenWISP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to openwisp+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "OpenWISP" group. To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [openwisp] Re: Cloudberry multi-device configuration and arbitrary config abstraction using templating
Federico: I have now added support in https://github.com/innovationgarage/cloudberry-djangoproject for * Import / export using http://django-import-export.readthedocs.io (only json-format supported though) * Access control using a basic object ownership by django auth group scheme * Versioning using https://django-reversion.readthedocs.io -- You received this message because you are subscribed to the Google Groups "OpenWISP" group. To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [openwisp] Re: Cloudberry multi-device configuration and arbitrary config abstraction using templating
Ah, that's interesting! I'm going on vacation now, but I think my next steps after that will be to add import/export plus user access rights / ownership, and I'll give versioning a shot too! Do you guys already have a preference for access control? I'd very much like per-config / per-backend / per-device separate read and write permissions based on groups... -- You received this message because you are subscribed to the Google Groups "OpenWISP" group. To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [openwisp] Re: Cloudberry multi-device configuration and arbitrary config abstraction using templating
Ah, that's interesting! I'm going on vacation now, but I think my next steps after that will be to add import/export plus user access rights / ownership, and I'll give versioning a shot too! Do you guys already have a preference for access control? I'd very much like per-config / per-backend / per-device separate read and write permissions based on groups... -- You received this message because you are subscribed to the Google Groups "OpenWISP" group. To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [openwisp] Re: Cloudberry multi-device configuration and arbitrary config abstraction using templating
Cool! You can implement versoning in a very simple way by using django-reversion. OpenWISP 2 does that in some of its models already: https://github.com/openwisp/django-netjsonconfig/blob/master/django_netjsonconfig/base/admin.py#L25 F. On Thu, Apr 5, 2018 at 7:56 AM wrote: > So I'm working on a router-config-as-a-service kind of setup, where we > provide routers, and a central configuration website (possibly with > integration into config for other non-router systems too later on). The > main goal is to let them set up VPN based routing between their office > networks easily, but I don't want to limit what they can do with their > routers. At the same time, there is no way they'll get to be root on our > servers :) > > I do see the versioning issue - and have thought about letting you save > user-defined backends as json-files (with both the schema and transform) in > the source tree and have them appear next to the database backed ones, or > adding a generic import/export functionality. I just haven't gotten there > yet... > > I guess what's special about our set up is that the users of the config ui > are actually customers, not our technicians... But on the other hand, maybe > I'm over-engineering :P > > -- > You received this message because you are subscribed to the Google Groups > "OpenWISP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to openwisp+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "OpenWISP" group. To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.