Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(7)  |  Call(0)  |  Derive(0)  |  Import(7)

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/BLOrderBook.py   Products.BastionLedger(Download)
import logging
 
from Products.BastionBanking.ZCurrency import ZCurrency, CURRENCIES
from Products.BastionBanking import ZReturnCode
 
    if not currency:
        currency = self.defaultCurrency()
    assert currency in CURRENCIES, 'Unknown currency: %s' % currency
    if not id:
        id = self.nextAccountId()

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/BLAccount.py   Products.BastionLedger(Download)
from utils import floor_date, ceiling_date, assert_currency, isDerived
from BLBase import ProductsDictionary, PortalContent, PortalFolder, LargePortalFolder
from Products.BastionBanking.ZCurrency import ZCurrency, CURRENCIES
from Products.BastionBanking.Exceptions import UnsupportedCurrency
from Products.BastionBanking.interfaces.IPayee import IPayee
        id = self.nextAccountId()
 
    assert currency in CURRENCIES, 'Unknown currency type: %s' % currency
    try:
        self._setObject(id, BLAccount(id, title, description, type, subtype, currency, accno or id, tags))
    def _updateProperty(self, name, value):
        if name == 'base_currency':
            if not value in CURRENCIES:
                raise UnsupportedCurrency, value
        if name == 'accno':

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/LedgerControllerTool.py   Products.BastionLedger(Download)
from Products.PageTemplates.PageTemplateFile import PageTemplateFile
 
from Products.BastionBanking.ZCurrency import ZCurrency, CURRENCIES
from BLBase import PortalFolder as Folder, ProductsDictionary
from BLLedger import BLLedger
        if portal_currencies:
            return portal_currencies.currencyCodes()
        return CURRENCIES
 
    def currency(self):

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/Ledger.py   Products.BastionLedger(Download)
from Products.CMFCore.utils import getToolByName
from Products.CMFPlone.PloneBatch import Batch
from Products.BastionBanking.ZCurrency import ZCurrency, CURRENCIES
from Products.AdvancedQuery import In
#
    def Currencies(self):
        """
        A list of available currencies for this ledger
        """
        return CURRENCIES

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/BLQuoteManager.py   Products.BastionLedger(Download)
from Products.ZCatalog.ZCatalog import ZCatalog
 
from Products.BastionBanking.ZCurrency import ZCurrency, CURRENCIES
 
from BLBase import *
    def currencies(self):
        return CURRENCIES
 
    def searchObjects(self, REQUEST=None, *args, **kw):
        """

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/BLEntryTemplate.py   Products.BastionLedger(Download)
from OFS.PropertyManager import PropertyManager
 
from Products.BastionBanking.ZCurrency import ZCurrency, CURRENCIES
 
from BLEntry import BLEntry
    def select_currency(self):
        """ """
        return CURRENCIES
 
    def _updateProperty(self, name, value):

src/p/r/Products.BastionLedger-4.6.0/Products/BastionLedger/BLLedger.py   Products.BastionLedger(Download)
from BLBase import *
from Products.BastionLedger.BLGlobals import EPOCH, ACC_TYPES
from Products.BastionBanking.ZCurrency import ZCurrency, CURRENCIES
 
from interfaces.ledger import ILedger, IBLLedger