# Add sample user
mt = getToolByName(site,'portal_membership')
- mt.addMember('shop','shop',[],[])
+ mt.addMember(id='shop', password='shop', roles=('Member',), domains=())
member = mt.getMemberById('shop')
- member.setMemberProperties({'fullname': 'Shop Testuser'})
+ member.setMemberProperties({'fullname': 'Shop Testuser'},
+ {'email': 'test@localhost'})
def makeObject(container, type_name, id, **kw):
return
site = context.getSite()
- qi = getToolByName(site, 'portal_quickinstaller')
- # Install EasyShop product
+ # Install products
+ qi = getToolByName(site, 'portal_quickinstaller')
for p in INSTALL_PRODUCTS:
if not qi.isProductInstalled(p):
qi.installProduct(p)