Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(4)  |  Derive(0)  |  Import(6)

src/m/e/mediadrop-HEAD/mediadrop/websetup.py   mediadrop(Download)
from mediadrop.plugin import events
 
from mediadrop.model import (Author, AuthorWithIP, Category, Comment,
    DBSession, Group, Media, MediaFile, Permission, Podcast, Setting,
    User, metadata, cleanup_players_table)
    DBSession.add(admin_user)
 
    admin_group = Group(name=u'admins', display_name=u'Admins')
    admin_group.users.append(admin_user)
    DBSession.add(admin_group)
 
    editor_group = Group(name=u'editors', display_name=u'Editors')
    DBSession.add(editor_group)
 
    anonymous_group = Group(name=u'anonymous', display_name=u'Everyone (including guests)')
    DBSession.add(anonymous_group)
 
    authenticated_group = Group(name=u'authenticated', display_name=u'Logged in users')
    DBSession.add(authenticated_group)
 

src/m/e/mediadrop-HEAD/mediadrop/model/tests/group_example_test.py   mediadrop(Download)
from datetime import datetime, timedelta
 
from mediadrop.model import Group
from mediadrop.lib.test.db_testcase import DBTestCase
from mediadrop.lib.test.pythonic_testcase import *

src/m/e/mediadrop-HEAD/mediadrop/controllers/admin/users.py   mediadrop(Download)
    observable, paginate, validate)
from mediadrop.lib.helpers import redirect, url_for
from mediadrop.model import Group, User, fetch_row
from mediadrop.model.meta import DBSession
from mediadrop.plugin import events

src/m/e/mediadrop-HEAD/mediadrop/controllers/admin/groups.py   mediadrop(Download)
from mediadrop.lib.decorators import (autocommit, expose, observable, paginate, validate)
from mediadrop.lib.helpers import redirect, url_for
from mediadrop.model import fetch_row, Group, Permission
from mediadrop.model.meta import DBSession
from mediadrop.plugin import events

src/m/e/mediadrop-HEAD/mediadrop/lib/auth/permission_system.py   mediadrop(Download)
from mediadrop.lib.auth.api import PermissionSystem, UserPermissions
from mediadrop.lib.auth.query_result_proxy import QueryResultProxy, StaticQuery
from mediadrop.model import DBSession, Group, User
from mediadrop.plugin.abc import AbstractClass, abstractmethod
 

src/m/e/mediadrop-HEAD/mediadrop/controllers/tests/login_test.py   mediadrop(Download)
from mediadrop.lib.test import ControllerTestCase
from mediadrop.lib.test.pythonic_testcase import *
from mediadrop.model import DBSession, Group, User, Permission