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

All Samples(10)  |  Call(5)  |  Derive(0)  |  Import(5)

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(authenticated_group)
 
    admin_perm = Permission(name=u'admin', groups=[admin_group], 
        description=u'Grants access to the admin panel')
    DBSession.add(admin_perm)
 
    edit_perm = Permission(name=u'edit', groups=[admin_group, editor_group], 
    DBSession.add(edit_perm)
 
    view_perm = Permission(name=u'view', 
        groups=[admin_group, anonymous_group, editor_group], 
        description=u'View published media')
    DBSession.add(view_perm)
 
    upload_perm = Permission(name=u'upload', 

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/group_based_policy.py   mediadrop(Download)
from mediadrop.lib.auth.api import IPermissionPolicy
from mediadrop.lib.auth.permission_system import PermissionPolicies
from mediadrop.model import DBSession, Permission
 
 

src/m/e/mediadrop-HEAD/mediadrop/lib/auth/tests/group_based_permissions_policy_test.py   mediadrop(Download)
from mediadrop.lib.test.pythonic_testcase import *
from mediadrop.lib.test.db_testcase import DBTestCase
from mediadrop.model import DBSession, Media, Permission, User
 
 

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