Thank you for the reports! On Wednesday, August 9, 2017 at 8:36:42 AM UTC-4, LeVon Smoker wrote: > > Thank you very much. Your support of Mayan is awesome. > > On Wednesday, August 9, 2017 at 1:39:10 AM UTC-4, Roberto Rosario wrote: >> >> Support added ( >> https://gitlab.com/mayan-edms/mayan-edms/commit/0efbf79fa18bb35407b0c71013810489c2f44b04). >> >> Thanks for the report. >> >> On Wednesday, August 9, 2017 at 1:21:17 AM UTC-4, Roberto Rosario wrote: >>> >>> The issue has two factors: >>> >>> Version 2.2 introduced support for sub-menus and the "Tag" entry in the >>> main menu is now a sub menu and no longer a link. The new code to remove >>> the entry would be: >>> >>> from tags.menus import menu_tags >>> menu_main.unbind_links( >>> links=(menu_tags,), >>> ) >>> >>> The second issue is that there is no support for unbinding sub-menus. >>> Working on adding this now. >>> >>> On Wednesday, August 9, 2017 at 12:59:40 AM UTC-4, Roberto Rosario wrote: >>>> >>>> There were updates in the link unbinding code: >>>> >>>> >>>> https://gitlab.com/mayan-edms/mayan-edms/commit/e5685eee0418f74070a29f217193289537a5a5c1 >>>> >>>> https://gitlab.com/mayan-edms/mayan-edms/commit/524a0d0c35041ed8f683a6f0411720e550eafa09 >>>> >>>> Because it was not working 100% of the case. The updates must have >>>> broken the main menu unbinding (when the source is None). >>>> >>>> I'm checking the code and adding a test for main menus. Thanks for the >>>> report. >>>> >>>> On Tuesday, August 8, 2017 at 11:26:51 AM UTC-4, LeVon Smoker wrote: >>>>> >>>>> Is the procedure for removing menus from the home page the same as it >>>>> used to be? I had been removing the Tags menu, but at some point the code >>>>> stopped working. The formerly-working code is: >>>>> >>>>> from __future__ import unicode_literals >>>>> >>>>> from django.utils.translation import ugettext_lazy as _ >>>>> >>>>> from common import MayanAppConfig >>>>> >>>>> from common import menu_main >>>>> from folders.links import link_folder_list >>>>> from tags.links import link_tag_list >>>>> >>>>> class HRCSBOverridesApp(MayanAppConfig): >>>>> name = 'hrcsb_overrides' >>>>> verbose_name = _('HRCSB Overrides') >>>>> >>>>> def ready(self): >>>>> super(HRCSBOverridesApp, self).ready() >>>>> >>>>> # Remove "Tags" links from main menu >>>>> menu_main.unbind_links( >>>>> links=(link_tag_list,), >>>>> ) >>>>> mayan/apps/hrcsb_overrides/apps.py >>>>> >>>>> Thanks, >>>>> LeVon Smoker >>>>> >>>>
-- --- You received this message because you are subscribed to the Google Groups "Mayan EDMS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
