Package: getpaid.formgen
OverviewPloneGetPaid-PloneFormGenLink PloneFormGen with PloneGetPaid so a form can add items or donations
to the GetPaid shopping cart.Requirements:To begin with we need a working Plone instance with PloneGetPaid, PloneFormGen
and DataGridField installed.Install:There are two ways of installing getpaid.formgen, if you got it as an egg you
just easy_install it or fetch it with your buildout or else you can copy the
inner formgen from this folder structure to your instance’s
/lib/python/getpaid.
After that you will see PloneGetPaid-PloneFormGen in your plone control
pannel addon product section (you may see two, install whichever you want,
they are the same thing).
After hitting install you are done, now whenever you create a FormGen folder
you will have as available content types a “GetPaid Adapter” which creates the
required folders for a GetPaid checkout and allows you to map any GetPaid
product on the site to a field on your form.A few remarks:If you are using other adapters (such as salesforce one) please make sure to
edit and save (even without changes) this one last, because it adds a clause
to all other present adapters so they execute after it, this avoids comitting
data of an order that can be rejected.Make sure to remove the default mail adapter from the FormgenForm or you
could end up sending sensible data by mail by accident.CHANGES0.6 (2012-07-24)Add a mechanism for recording form fields in a dictionary on the shopping
cart. If a form field has getpaid_formgen_fieldset and getpaid_formgen_field
attributes, it will get recorded in cart.getpaid_formgen_data[fieldset][field]
[davisagli]Use the field path as the key for the data grid field, rather than the
field title.
[davisagli]0.5 (2011-06-30)Remove hard dependence on Products.PloneGetPaid.
[davisagli]Support splitting the name field into separate first name and last name fields.
[davisagli]0.4 (2010-05-19)If a one-page checkout succeeds, show the form’s thank you page rather
than the GetPaid thank you message.
[davisagli]Allow custom PloneFormGen fields to supply their own line item fields
by registering a (cart, field) adapter to ILineItemFactory.
[davisagli]Don’t require DataGridField <= 1.8a1; that doesn’t work on Plone 4.
[davisagli]Update imports for compatibility with Zope 2.12.
[davisagli]0.3 (2009-08-19)Grab the processor id from the correct variable0.2.9 (2009-08-02)Fix a remote reference when used with ZODB mount points [larubbio]0.2.8 (2009-07-28)Fix an indentation bug in the one page checkout success handlerRemove form description text that is the exact same as the field title or uneeded0.2.7 (2009-07-22)Add contact information to default mail [larubbio]Switch from oneshot cart to multishot. [larubbio]Update mailer so it works with single page checkout [larubbio]0.2.6 (2009-07-07)Add shipping organization to the email [larubbio]0.2.5 (2009-07-07)Expose shipping and billing names to the email templateExpose organization to the email templateupdate the default email template0.2.4 (2009-05-27)Expose shipping service, method and weight to email template. [larubbio]Add a boolean config that tells getpaid to return to the form if the user hits ‘Continue Shopping’ [larubbio]0.2.3 (2009-05-19)Expose shipping information in default mail template [larubbio]0.2.2 (2009-05-19)Fix a two phase commit bug when used with a ZODB mount pointCatch any exceptions that might happen when sending email.0.2.1 (2009-05-13)Fix a bug where field mapping for fields in fieldsets fails to workFix a bug were the adapter attempts to move itself to the front of the adapters list but fails0.2 (2009-05-12)Add adapter that collects formgen fields and getpaid fields and emails them
following successful charge.0.1 (2009-03-13)removed the package info that shouldn’t be under svn [lucielejard]moved setup.py at the same level as src, and updated the link to files in it,fixed typo (Conutry -> Country) [mcgruff.scruff]explicitly including meta.zcml (uncommitted change from hg tarball)spacing cleanup (uncommitted change from hg tarball)post-migration cleanup. [mcgruff.scruff]
These files were brought in from a Mercurial tarball (provided by David
Glick) using Tailor with the following configuration:[tailor]
verbose = True
source = hg:
target = svn:
start-revision = 14
root-directory = ~/Desktop/getpaid.formgen
encoding = UTF-8
[hg:tailor]
repository = ~/Desktop/getpaid.formgen
[svn:tailor]
repository = https://getpaid.googlecode.com/svn
module = getpaid.formgen/trunk/srcAlso, I removed all .pyc files before migration with:find . -type f -name "*.pyc" -exec rm -f {} \;ripped out perrito’s unnecessary action adapter blocking PFG already
handles that if you return an error valuemisc cleanup: fixed imports, removed pdbs, resuscitated test infrastructureAdded remarks about usagepumped some info into the readme fileAdded support to run other adapters before doing one page checkout
redirection to thank you page.