# obtaining a copy of this software and associated documentation # files (the "Software"), to deal in the Software without # restriction, including without limitation the rights to use, # copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the # Software is furnished to do so, subject to the following # conditions: # # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES # OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT # HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR # OTHER DEALINGS IN THE SOFTWARE. """ """ from getpaid.core.options import PersistentOptions from getpaid.googlecheckout.interfaces import IGoogleCheckoutOptions GoogleCheckoutOptions = PersistentOptions.wire("GoogleCheckoutOptions", "getpaid.googlecheckout", IGoogleCheckoutOptions)
""" """ from getpaid.core.options import PersistentOptions import interfaces PaypalPayFlowProOptions = PersistentOptions.wire("PaypalPayFlowProOptions", "getpaid.payflowpro", interfaces.IPaypalPayFlowProOptions )
# copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the # Software is furnished to do so, subject to the following # conditions: # # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES # OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT # HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR # OTHER DEALINGS IN THE SOFTWARE. """ $Id: $ """ import patch import interfaces from getpaid.core.options import PersistentOptions AuthorizeNetOptions = PersistentOptions.wire( "AuthorizeNetOptions", "getpaid.authorizedotnet", interfaces.IAuthorizeNetOptions)
""" """ from getpaid.core.options import PersistentOptions from getpaid.verkkomaksut.interfaces import IVerkkomaksutOptions VerkkomaksutOptions = PersistentOptions.wire("Verkkomaksut", "getpaid.verkkomaksut", IVerkkomaksutOptions )
# -*- extra stuff goes here -*- from getpaid.core.options import PersistentOptions import interfaces uPayStandardOptions = PersistentOptions.wire("uPayStandardOptions", "getpaid.upay", interfaces.IuPayStandardOptions) def initialize(context): """Initializer called when used as a Zope 2 product."""
# restriction, including without limitation the rights to use, # copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the # Software is furnished to do so, subject to the following # conditions: # # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES # OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT # HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR # OTHER DEALINGS IN THE SOFTWARE. """ $Id: $ """ import interfaces from getpaid.core.options import PersistentOptions VirtualMerchantOptions = PersistentOptions.wire( "VirtualMerchantOptions", "getpaid.virtualmerchant", interfaces.IVirtualMerchantOptions)
settings = component.queryUtility(interfaces.IGetPaidManagementOptions) if settings is None: # we have an unmigrated site.. fallback gracefully return OldConfigurationPreferences(site) # store access to the site, because our vocabularies get the setting as context # and want to access portal tools to construct various vocabs settings._v_site = site return settings # previously we stored settings as annotations on the site, we've migrated this to # its own utility, so we don't have to carry context to access the store settings. # we have it here so we can do a migration. OldConfigurationPreferences = PersistentOptions.wire( "OldConfigurationPreferences", "getpaid.configuration", interfaces.IGetPaidManagementOptions) _StoreSettings = PersistentBag.makeclass(interfaces.IGetPaidManagementOptions) class StoreSettings(_StoreSettings): _v_site = None @property def context(self): return self._v_site def manage_fixupOwnershipAfterAdd(self): pass
from getpaid.core.options import PersistentOptions from getpaid.emailcheckout.interfaces import IEmailOptions EmailOptions = PersistentOptions.wire("EmailOptions", "getpaid.emailcheckout", IEmailOptions)
from getpaid.core.options import PersistentOptions import interfaces FirstDataGGe4Options = PersistentOptions.wire("FirstDataGGe4", "getpaid.firstdata", interfaces.IFirstDataGGe4Options )
import interfaces from getpaid.core.options import PersistentOptions BPTOptions = PersistentOptions.wire( "BPTOptions", "getpaid.brownpapertickets", interfaces.IBPTOptions)
""" $Id: $ """ import interfaces from getpaid.core.options import PersistentOptions PaymentechOptions = PersistentOptions.wire( "PaymentechOptions", "getpaid.paymentech", interfaces.IPaymentechOptions)
settings = component.queryUtility(interfaces.IGetPaidManagementOptions) if settings is None: # we have an unmigrated site.. fallback gracefully return OldConfigurationPreferences( site ) # store access to the site, because our vocabularies get the setting as context # and want to access portal tools to construct various vocabs settings._v_site = site return settings # previously we stored settings as annotations on the site, we've migrated this to # its own utility, so we don't have to carry context to access the store settings. # we have it here so we can do a migration. OldConfigurationPreferences = PersistentOptions.wire("OldConfigurationPreferences", "getpaid.configuration", interfaces.IGetPaidManagementOptions ) _StoreSettings = PersistentBag.makeclass( interfaces.IGetPaidManagementOptions ) class StoreSettings( _StoreSettings ): _v_site = None @property def context( self ): return self._v_site def manage_fixupOwnershipAfterAdd( self ): pass class DefaultFormSchemas(FormSchemas):
import interfaces from getpaid.core.options import PersistentOptions BPTOptions = PersistentOptions.wire("BPTOptions", "getpaid.brownpapertickets", interfaces.IBPTOptions)
""" """ from getpaid.core.options import PersistentOptions import interfaces ClickAndBuyStandardOptions = PersistentOptions.wire("ClickAndBuyStandardOptions", "getpaid.ClickAndBuy", interfaces.IClickAndBuyStandardOptions )
from Products.CMFCore.utils import getToolByName from getpaid.core.options import PersistentOptions from getpaid.core.interfaces import IOrderManager, IShoppingCartUtility from getpaid.netcash.interfaces import INetCashStandardProcessor, INetCashStandardOptions from zope.i18n.interfaces import IUserPreferredLanguages from zope.interface import implements from zope.component import getUtility from getpaid.core.interfaces import keys import interfaces import urllib import urllib2 import sha NetCashStandardOptions = PersistentOptions.wire("NetCashStandardOptions", "getpaid.netcash", interfaces.INetCashStandardOptions) class NetCashStandardProcessor(object): """ NetCash Standard Processor """ implements(INetCashStandardProcessor) options_interface = INetCashStandardOptions def __init__(self, context): self.context = context def cart_post_button(self, cart): options = INetCashStandardOptions(self.context)
# files (the "Software"), to deal in the Software without # restriction, including without limitation the rights to use, # copy, modify, merge, publish, distribute, sublicense, and/or sell # copies of the Software, and to permit persons to whom the # Software is furnished to do so, subject to the following # conditions: # # The above copyright notice and this permission notice shall be # included in all copies or substantial portions of the Software. # # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES # OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT # HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR # OTHER DEALINGS IN THE SOFTWARE. """ $Id: $ """ import patch import interfaces from getpaid.core.options import PersistentOptions AuthorizeNetOptions = PersistentOptions.wire("AuthorizeNetOptions", "getpaid.authorizedotnet", interfaces.IAuthorizeNetOptions)
from getpaid.core.options import PersistentOptions from interfaces import IRemovalsalesOptions RemovalsalesOptions = PersistentOptions.wire("Removalsales", "getpaid.removalsales", IRemovalsalesOptions)
""" """ from getpaid.core.options import PersistentOptions import interfaces PaypalStandardOptions = PersistentOptions.wire("PaypalStandardOptions", "getpaid.paypal", interfaces.IPaypalStandardOptions )