Personal tools
You are here: Home Members Joel Burton CMFMember Presentation gatherPayData
Navigation
Log in


Forgot your password?
New user?
Mailing Lists
You can read our ZPUGDC mailing list archives online.
You can subscribe to our mailing list:
Book Review

The Definitive Guide to Plone

Reviewer: joel
 

gatherPayData

Document Actions
Gather payment data from students
u = context.portal_membership.getMemberById(userid)

return {
  
'getId':u.getId(),
  
'getFirstname':u.getFirstname(),
  
'getLastname':u.getLastname(),
  
'getCity':u.getCity(),
  
'getState':u.getState(),
  
'getEmail':u.getEmail(),
  
'getPhone':u.getPhone(),
  
'extraTshirts':u.getExtraTshirts(),
  
'donationAmount':u.getDonationAmount(),
  
'tshirtCosts': 15 * u.getExtraTshirts(),
  
'bootcampCost': 250,
  
'totalCost': 250 + u.getDonationAmount() + 15 * u.getExtraTshirts(),
  
'getLocalResident':u.getLocalResident(),
  
'show': context.ZopeTime() > context.ZopeTime('2005/04/20') or 
          
u.getLocalResident(),
}
by Joel Burton last modified 04/19/2005 02:26 PM


Click here to check out
The Washington DC Python Meetup Group!
Powered by Plone, the Open Source Content Management System

This site conforms to the following standards: