예제 #1
0
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
# General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public
# License along with this program.  If not, see <http://www.gnu.org/licenses/>.
#

from django.conf import settings
from django.utils.importlib import import_module
from django.utils.translation import ugettext_lazy as _

from freppledb.common.menus import Menu

# Create the navigation menu.
# This is the one and only menu object in the application.
menu = Menu()

# Add our default topics.
menu.addGroup("input", label=_("Input"), index=100)
menu.addGroup("reports", label=_("Reports"), index=200)
menu.addGroup("admin", label=_("Admin"), index=300)
menu.addGroup("user", label=_("User"), index=400)
menu.addGroup("help", label="?", index=500)

# Adding the menu modules of each installed application.
# Note that the menus of the apps are processed in reverse order.
# This is required to allow the first apps to override the entries
# of the later ones.
for app in reversed(settings.INSTALLED_APPS):
    try:
        mod = import_module('%s.menu' % app)
예제 #2
0
파일: menu.py 프로젝트: WHELLINCK/frePPLe
# General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public
# License along with this program.  If not, see <http://www.gnu.org/licenses/>.
#

from importlib import import_module

from django.conf import settings
from django.utils.translation import ugettext_lazy as _

from freppledb.common.menus import Menu

# Create the navigation menu.
# This is the one and only menu object in the application.
menu = Menu()

# Add our default topics.
menu.addGroup("input", label=_("Input"), index=100)
menu.addGroup("reports", label=_("Reports"), index=200)
menu.addGroup("admin", label=_("Admin"), index=300)
menu.addGroup("user", label=_("User"), index=400)
menu.addGroup("help", label=_("Help"), index=500)

# Adding the menu modules of each installed application.
# Note that the menus of the apps are processed in reverse order.
# This is required to allow the first apps to override the entries
# of the later ones.
for app in reversed(settings.INSTALLED_APPS):
  try:
    mod = import_module('%s.menu' % app)
예제 #3
0
파일: menu.py 프로젝트: frePPLe/frePPLe
# General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public
# License along with this program.  If not, see <http://www.gnu.org/licenses/>.
#

from importlib import import_module

from django.conf import settings
from django.utils.translation import ugettext_lazy as _

from freppledb.common.menus import Menu

# Create the navigation menu.
# This is the one and only menu object in the application.
menu = Menu()

# Add our default topics.
menu.addGroup("sales", label=_("sales"), index=100)
menu.addGroup("inventory", label=_("inventory"), index=200)
menu.addGroup("capacity", label=_("capacity"), index=300)
menu.addGroup("purchasing", label=_("purchasing"), index=400)
menu.addGroup("distribution", label=_("distribution"), index=500)
menu.addGroup("manufacturing", label=_("manufacturing"), index=600)
menu.addGroup("admin", label=_("admin"), index=700)
menu.addGroup("help", label=_("help"), index=800)
menu.addItem("sales", "data", separator=True, index=1000)
menu.addItem("inventory", "data", separator=True, index=1000)
menu.addItem("capacity", "data", separator=True, index=1000)
menu.addItem("purchasing", "data", separator=True, index=1000)
menu.addItem("distribution", "data", separator=True, index=1000)
예제 #4
0
파일: menu.py 프로젝트: xzflin/frePPLe
# General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public
# License along with this program.  If not, see <http://www.gnu.org/licenses/>.
#

from importlib import import_module

from django.conf import settings
from django.utils.translation import ugettext_lazy as _

from freppledb.common.menus import Menu

# Create the navigation menu.
# This is the one and only menu object in the application.
menu = Menu()

# Add our default topics.
menu.addGroup("sales", label=_("Sales"), index=100)
menu.addGroup("inventory", label=_("Inventory"), index=200)
menu.addGroup("capacity", label=_("Capacity"), index=300)
menu.addGroup("purchasing", label=_("Purchasing"), index=400)
menu.addGroup("distribution", label=_("Distribution"), index=500)
menu.addGroup("manufacturing", label=_("Manufacturing"), index=600)
menu.addGroup("admin", label=_("Admin"), index=700)
menu.addGroup("help", label=_("Help"), index=800)
menu.addItem("sales", "data", separator=True, index=1000)
menu.addItem("inventory", "data", separator=True, index=1000)
menu.addItem("capacity", "data", separator=True, index=1000)
menu.addItem("purchasing", "data", separator=True, index=1000)
menu.addItem("distribution", "data", separator=True, index=1000)