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

All Samples(38)  |  Call(3)  |  Derive(0)  |  Import(35)

src/p/t/ptah_crowd-0.1/ptah_crowd/__init__.py   ptah_crowd(Download)
# ptah_crowd package
 
from ptah_crowd.provider import CrowdUser
from ptah_crowd.provider import CrowdApplication
from ptah_crowd.provider import CrowdFactory

src/p/t/ptah_crowd-0.1/ptah_crowd/views.py   ptah_crowd(Download)
from ptah_crowd.settings import _
from ptah_crowd.module import CrowdModule
from ptah_crowd.provider import CrowdUser, CrowdFactory
from ptah_crowd.memberprops import MemberProperties
 
 
        if 'remove' in request.POST and uids:
            crowd = CrowdFactory()
            for user in Session.query(CrowdUser).filter(
                CrowdUser.__uri__.in_(uids)):

src/p/t/ptah_crowd-0.1/ptah_crowd/user.py   ptah_crowd(Download)
from ptah_crowd.settings import _
from ptah_crowd.module import CrowdModule
from ptah_crowd.provider import CrowdUser, CrowdFactory
from ptah_crowd.schemas import UserSchema, ManagerChangePasswordSchema
 
        user.password = ptah.pwd_tool.encode(data['password'])
 
        crowd = CrowdFactory()
        crowd.add(user)
 

src/p/t/ptah_crowd-0.1/ptah_crowd/registration.py   ptah_crowd(Download)
from ptah.events import PrincipalRegisteredEvent
 
from ptah_crowd.provider import CrowdFactory
from ptah_crowd.settings import _, CFG_ID_CROWD
from ptah_crowd.schemas import RegistrationSchema

src/p/t/ptah_crowd-0.1/ptah_crowd/tests/test_validators.py   ptah_crowd(Download)
    def test_check_login(self):
        from ptah_crowd import login
        from ptah_crowd.provider import CrowdUser, CrowdFactory
 
        user = CrowdUser(title='name', login='login', email='email')

src/p/t/ptah_crowd-0.1/ptah_crowd/tests/test_validation.py   ptah_crowd(Download)
    def test_validation_registered_unvalidated(self):
        from ptah_crowd.provider import CrowdUser, CrowdFactory
 
        user = CrowdUser(title='name', login='login', email='email')
        CrowdFactory().add(user)
    def test_validation_registered_no_validation(self):
        from ptah_crowd.provider import CrowdUser, CrowdFactory
 
        user = CrowdUser(title='name', login='login', email='email')
        CrowdFactory().add(user)
    def test_validation_added(self):
        from ptah_crowd.provider import CrowdUser, CrowdFactory
 
        user = CrowdUser(title='name', login='login', email='email')
        CrowdFactory().add(user)
    def test_validation_initiate(self):
        from ptah_crowd import validation
        from ptah_crowd.provider import CrowdUser, CrowdFactory
 
        origValidationTemplate = validation.ValidationTemplate
    def test_validation_template(self):
        from ptah_crowd import validation
        from ptah_crowd.provider import CrowdUser, CrowdFactory
 
        origValidationTemplate = validation.ValidationTemplate

src/p/t/ptah_crowd-0.1/ptah_crowd/tests/test_user.py   ptah_crowd(Download)
    def _user(self):
        from ptah_crowd.provider import CrowdUser, CrowdFactory
        user = CrowdUser(title='name', login='ptah@local', email='ptah@local')
        CrowdFactory().add(user)
        return user
    def _user(self):
        from ptah_crowd.provider import CrowdUser, CrowdFactory
        user = CrowdUser(title='name', login='ptah@local', email='ptah@local')
        CrowdFactory().add(user)
        return user

src/p/t/ptah_crowd-0.1/ptah_crowd/tests/test_resetpassword.py   ptah_crowd(Download)
    def test_resetpassword(self):
        from ptah_crowd.resetpassword import ResetPassword
        from ptah_crowd.resetpassword import ResetPasswordTemplate
        from ptah_crowd.provider import CrowdUser, CrowdFactory
 
    def test_resetpassword_form_update(self):
        from ptah_crowd.resetpassword import ResetPasswordForm
        from ptah_crowd.provider import CrowdUser, CrowdFactory
 
        user = CrowdUser(title='name', login='login', email='email')
    def test_resetpassword_form_change_errors(self):
        from ptah_crowd.resetpassword import ResetPasswordForm
        from ptah_crowd.provider import CrowdUser, CrowdFactory
 
        user = CrowdUser(title='name', login='login', email='email')
    def test_resetpassword_form_change(self):
        from ptah_crowd.resetpassword import ResetPasswordForm
        from ptah_crowd.provider import CrowdUser, CrowdFactory
 
        user = CrowdUser(title='name', login='login', email='email')
    def test_resetpassword_template(self):
        from ptah_crowd.resetpassword import ResetPasswordTemplate
        from ptah_crowd.provider import CrowdUser, CrowdFactory
 
        user = CrowdUser(title='name', login='login', email='email')

src/p/t/ptah_crowd-0.1/ptah_crowd/tests/test_provider.py   ptah_crowd(Download)
    def test_authenticate(self):
        from ptah_crowd.provider import \
             CrowdAuthProvider, CrowdFactory, CrowdUser
 
        provider = CrowdAuthProvider()
                         email='test@ptahproject.org',
                         password=ptah.pwd_tool.encode('12345'))
        factory = CrowdFactory()
        factory.add(user)
 
    def test_get_bylogin(self):
        from ptah_crowd.provider import \
             CrowdAuthProvider, CrowdFactory, CrowdUser
 
        provider = CrowdAuthProvider()
    def test_crowd_user_change_search(self):
        from ptah_crowd.provider import \
             CrowdUser, CrowdFactory, CrowdAuthProvider
 
        user = CrowdUser(title='user-name', login='user-login',

src/p/t/ptah_crowd-0.1/ptah_crowd/tests/test_module.py   ptah_crowd(Download)
    def test_manage_module_get(self):
        from ptah_crowd.module import CrowdModule
        from ptah_crowd.provider import CrowdUser, CrowdFactory
 
        user = CrowdUser(title='name', login='login', email='email')
    def _make_user(self):
        from ptah_crowd.provider import CrowdUser, CrowdFactory
 
        user = CrowdUser(title='name', login='login', email='email')
        CrowdFactory().add(user)

  1 | 2  Next