#6160 (Replace SiteConfig.site_company by contacts.site_owner)
by Luc Saffre · in Developers · assigned to Luc Saffre
Kurzbeschreibung
Kinder
Kommentare
- 1 Jahr, 3 Monate ago von Luc Saffre about #6160 (Replace SiteConfig.site_company by contacts.site_owner) : This is now done by contacts.Plugin.get_site_info().
- 1 Jahr, 4 Monate ago von Luc Saffre about #6160 (Replace SiteConfig.site_company by contacts.site_owner) : todo: now that there is no longer a field "Site owner" in SiteConfig, there's no way to see in the web interface who the site owner actually is. It should be visible in the About dialog.
- 1 Jahr, 4 Monate ago von Luc Saffre about #6160 (Replace SiteConfig.site_company by contacts.site_owner) : I added a property SiteConfig.sit_company for backwards compatibility because it is used in miscellaneous templates in Lino Welfare, maybe some of them are even locally modified.
- 1 Jahr, 4 Monate ago von Luc Saffre about #6160 (Replace SiteConfig.site_company by contacts.site_owner) : As a first step I did an intermediate solution that keeps help.SiteContacts unchanged: a plugin setting contacts.site_owner_lookup and contacts.site_owner property.
- 1 Jahr, 4 Monate ago von Luc Saffre about #6160 (Replace SiteConfig.site_company by contacts.site_owner) : While we are there, I could move SiteContacts from help to contacts and replace settings.SITE.site_config.site_company by SiteContacts.owner.get_object(). And in get_plugin_configs(), instead of saying
yield ('vat', 'my_vat_id', "EE123456")
we would say:
yield 'contacts', 'site_contacts', {'... - 1 Jahr, 4 Monate ago von Luc Saffre about #6160 (Replace SiteConfig.site_company by contacts.site_owner) : Created new Ticket #6160 (Replace SiteConfig.site_company by contacts.site_owner).