|
Hello. This is actually a fairly simple problem to solve. I'm doing something similar for a client. In my case, I've taken signable event and am making it payable on creation thus: # security.declarePrivate(permissions.EDIT_SIGNUP_PERMISSION,"makePayableOnCreation") def makePayableOnCreation(self,obj,tot): #self.total = tot mark(obj, interfaces.IBuyableMarker) coreInterfaces.IBuyableContent(obj).setProperty('price', tot) coreInterfaces.IBuyableContent(obj).setProperty('product_code', obj.ID) # I seem to remember getting the bare bones idea from the link pasted below by darryl as well. Usable for member creation? I had to do this as the event module has multiple payment selections and so we needed to be able to add the signable event signup object to the cart immediately after creation in an anonymous context. One problem I do have with this approach though is that that the 'Payable' tab is visible to anonymous users because of the use of run_as_manager from within signable event. Sadly, the project I was working on seems to be stalled at the moment so I'm not sure if I'll be going any further with this, but the eventual plan was to adopt a similar approach to member signups. Hope that helps some.. Rob M Darryl Dixon wrote: +1 - this is very close to the method I use in getpaid.purchaseablecredits to move content items into the 'published' state on purchase. -- People are beginning to notice you. Try dressing before you leave the house. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "getpaid-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/getpaid-dev?hl=en -~----------~----~----~----~------~----~------~--~--- |
- Implementing Member Subscription Solution Tim Knapp
- Re: Implementing Member Subscription Solution Ross Patterson
- Re: Implementing Member Subscription Solution Christopher Johnson
- Re: Implementing Member Subscription Solution Darryl Dixon
- Re: Implementing Member Subscription Solu... Rob M
- Re: Implementing Member Subscription ... Tim Knapp
- Re: Implementing Member Subscrip... Tim Knapp
