Skip to main content

getpaid.formgen Package

Overview

PloneGetPaid-PloneFormGen

Link 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.

CHANGES

0.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 variable

0.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 handler

  • Remove form description text that is the exact same as the field title or uneeded

0.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 template

  • Expose organization to the email template

  • update the default email template

0.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 point

  • Catch 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 work

  • Fix a bug were the adapter attempts to move itself to the front of the adapters list but fails

0.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/src
  • Also, 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 value

  • misc cleanup: fixed imports, removed pdbs, resuscitated test infrastructure

  • Added remarks about usage

  • pumped some info into the readme file

  • Added support to run other adapters before doing one page checkout redirection to thank you page.

Release files for getpaid.formgen 0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for getpaid.formgen 0.6
File Size Uploaded
getpaid.formgen-0.6.zip 49.2 kB Details

Release files / getpaid.formgen-0.6.zip

Download URL getpaid.formgen-0.6.zip
Size 49.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5c31c5022e3536335d55061bd0d123ada693684f7849e0b1e2205b60e9f19703
BLAKE2b-256 checksum
How to use checksums
7ee9234440275cf484493bc68d0bb1fe132e73eadc6c819a97a19390eaba3243
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.6 This release

1 release file

0.5

1 release file

0.4

1 release file

0.3

1 release file

0.2.9

1 release file

0.2.8

1 release file

0.2.7

1 release file

0.2.6

1 release file

0.2.5

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page