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

All Samples(9)  |  Call(5)  |  Derive(0)  |  Import(4)

src/p/t/ptah_crowd-0.1/ptah_crowd/validation.py   ptah_crowd(Download)
 
from ptah_crowd.settings import CFG_ID_CROWD
from ptah_crowd.memberprops import get_properties, query_properties
 
TOKEN_TYPE = ptah.token.TokenType(
def validationAndSuspendedChecker(info):
    props = get_properties(info.__uri__)
    if props.suspended:
        info.message = 'Account is suspended.'
        info.arguments['suspended'] = True
def principalRegistered(ev):
    props = get_properties(ev.principal.__uri__)
    props.joined = datetime.now()
 
    cfg = ptah.get_settings(CFG_ID_CROWD)
def principalAdded(ev):
    props = get_properties(ev.principal.__uri__)
    props.joined = datetime.now()
    props.validated = True
 

src/p/t/ptah_crowd-0.1/ptah_crowd/provider.py   ptah_crowd(Download)
from ptah.password import ID_PASSWORD_CHANGER
from ptah_crowd.settings import CFG_ID_CROWD
from ptah_crowd.memberprops import get_properties
 
CROWD_APP_ID = 'ptah-crowd'
    def properties(self):
        return get_properties(self.__uri__)
 
    def __str__(self):
        return self.name

src/p/t/ptah_crowd-0.1/ptah_crowd/login.py   ptah_crowd(Download)
 
from ptah_crowd.settings import _, CFG_ID_CROWD
from ptah_crowd.memberprops import get_properties
 
 
            return HTTPFound(location=self.request.application_url)
 
        props = get_properties(uid)
        if not props.suspended:
            return HTTPFound(location=self.request.application_url)

src/p/t/ptah_crowd-0.1/ptah_crowd/__init__.py   ptah_crowd(Download)
 
from ptah_crowd.settings import CFG_ID_CROWD
from ptah_crowd.memberprops import get_properties
from ptah_crowd.memberprops import query_properties
from ptah_crowd.validation import initiate_email_validation