Did I find the right examples for you? yes no

All Samples(18)  |  Call(4)  |  Derive(0)  |  Import(14)

src/d/j/django-gitcms-0.4/gitcms/menus/load.py   django-gitcms(Download)
from models import Menu, MenuItem
import os
from os import path
import yaml
 
    def _parse_children(parent, parent_obj):
        if 'children' not in parent:
            return
        for ch in parent['children']:
            child = MenuItem(name=ch['name'], url=ch['url'], title=ch.get('title', None), parent=parent_obj)
        if menufile[0] == '.': continue
        for menu in yaml.load_all(file(path.join(directory,menufile))):
            fake_root = MenuItem(name='<fake-root>', url='fake-root-you-shouldnt-be-seeing-this-bro')
            fake_root.save()
            menu_obj = Menu(name=menu['name'], fake_root=fake_root)

src/d/j/django-gitcms-HEAD/gitcms/menus/load.py   django-gitcms(Download)
from models import Menu, MenuItem
import os
from os import path
import yaml
 
    def _parse_children(parent, parent_obj):
        if 'children' not in parent:
            return
        for ch in parent['children']:
            child = MenuItem(name=ch['name'], url=ch['url'], title=ch.get('title', None), parent=parent_obj)
        if menufile[0] == '.': continue
        for menu in yaml.load_all(file(path.join(directory,menufile))):
            fake_root = MenuItem(name='<fake-root>', url='fake-root-you-shouldnt-be-seeing-this-bro')
            fake_root.save()
            menu_obj = Menu(name=menu['name'], fake_root=fake_root)

src/d/j/django-zoneke-contrib-0.05/applications/weixin/admin.py   django-zoneke-contrib(Download)
from django.db import models
from applications.weixin.widgets import ForeighUpyunImageWidget, UpyunImageWidget
from models import App, Rule, MenuItem, SubscribeItem, Photo, RichText
 
 

src/n/o/nodeshot-HEAD/nodeshot/core/cms/admin.py   nodeshot(Download)
import reversion
 
from .models import Page, MenuItem
 
 

src/l/e/Lemon-0.8.2/lemon/admin.py   Lemon(Download)
from .forms import UserChangeForm, MenuItemForm
from .forms import contenttype_inlineformset_factory
from .models import MenuSection, MenuItem
 
 

src/d/j/django-flatpages-i18n-0.4.0/flatpages_i18n/templatetags/flatpages_i18n.py   django-flatpages-i18n(Download)
def get_menu(context, key=None):
    from ..models import MenuItem
 
    menu = MenuItem.objects.all()
 

src/d/j/django-flatpages-i18n-HEAD/flatpages_i18n/templatetags/flatpages_i18n.py   django-flatpages-i18n(Download)
def get_menu(context, key=None):
    from ..models import MenuItem
 
    menu = MenuItem.objects.all()
 

src/d/j/django-flatpages-i18n-0.4.0/flatpages_i18n/admin.py   django-flatpages-i18n(Download)
 
from forms import FlatpageForm, MenuItemForm
from models import FlatPage_i18n, MenuItem
from widgets import RedactorEditor
 

src/d/j/django-treemenu-0.1.1/treemenu/admin.py   django-treemenu(Download)
 
from feincms.admin import editor
from .models import Menu, MenuItem
 
try:

src/d/j/django-flatpages-i18n-HEAD/flatpages_i18n/admin.py   django-flatpages-i18n(Download)
 
from forms import FlatpageForm, MenuItemForm
from models import FlatPage_i18n, MenuItem
from widgets import RedactorEditor
 

  1 | 2  Next