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

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

src/p/r/Products.sampleremember-1.1b2/Products/sampleremember/tests/test_sampleremember.py   Products.sampleremember(Download)
from Products.PloneTestCase import PloneTestCase
from Products.CMFCore.utils import getToolByName
from Products.sampleremember.config import DEFAULT_MEMBER_TYPE
 
from base import RememberTestBase
        id = login
 
        mem = makeContent(mdata, id, DEFAULT_MEMBER_TYPE)
        values = {'fullname': fullname,
                  'email': 'noreply@xxxxxxxxyyyyyy.com',
        password = 'secret'
 
        mem = makeContent(mdata, id, DEFAULT_MEMBER_TYPE)
 
        review_state = wftool.getInfoFor(mem, 'review_state')

src/p/r/Products.sampleremember-1.1b2/Products/sampleremember/content/sampleremember.py   Products.sampleremember(Download)
from Products.remember.content.member import Member as BaseMember
#product
from Products.sampleremember.config import DEFAULT_MEMBER_TYPE
 
sampleremember_schema = atapi.Schema((
class SampleRemember(BaseMember):
    """A member with a favorite color."""
    archetype_name = portal_type = meta_type = DEFAULT_MEMBER_TYPE
 
    schema = BaseMember.schema.copy() + sampleremember_schema

src/p/r/Products.sampleremember-1.1b2/Products/sampleremember/tests/base.py   Products.sampleremember(Download)
    """
    mdata = getToolByName(context, 'portal_memberdata')
    mem   = makeContent(mdata, name, config.DEFAULT_MEMBER_TYPE)
    # ensure ownership is properly assigned
    mem.setId(name)