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

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

src/p/r/Products.ImageRepository-1.0.2/Products/ImageRepository/browser/imagerepository.py   Products.ImageRepository(Download)
        result = DisplayList()
        if len(keywords):
            result.add('', '[no keywords]', msgid='label_no_keywords')
        for item in keywords:
            result.add(item, item)

src/p/r/Products.PloneFormGen-1.7.14/Products/PloneFormGen/tools/formGenTool.py   Products.PloneFormGen(Download)
        self.stringValidators = {}
        self.stringValidatorsDL = DisplayList()
        self.stringValidatorsDL.add('vocabulary_none_text', u'None')
 
        for kwa in config.stringValidators:
                }
 
            self.stringValidatorsDL.add( id, title, msgid=i18nid )
 
 

src/p/r/Products.PloneFormGen-HEAD/Products/PloneFormGen/tools/formGenTool.py   Products.PloneFormGen(Download)
        self.stringValidators = {}
        self.stringValidatorsDL = DisplayList()
        self.stringValidatorsDL.add('vocabulary_none_text', u'None')
 
        for kwa in config.stringValidators:
                }
 
            self.stringValidatorsDL.add( id, title, msgid=i18nid )
 
 

src/c/o/comuneimola.compensi-1.3/comuneimola/compensi/content/atcompenso.py   comuneimola.compensi(Download)
    def officeVocab(self):
        """ """
        offices = DisplayList()
        offices.add('', _(u'-- not specified --'))
        for office in self.aq_parent.getElenco_uffici():
            offices.add(office, office)
    def awardProceduresVocab(self):
        """ """
        award_procedures = DisplayList()
        award_procedures.add('', _(u'-- not specified --'))
        for award_procedure in self.aq_parent.getModalita_affidamento():
            award_procedures.add(award_procedure, award_procedure)
    def amountTypeVocab(self):
        amountTypes = DisplayList()
        amountTypes.add('', _(u'-- not specified --'))
        for amountType in self.aq_parent.getNatura_importo():
            amountTypes.add(amountType, amountType)

src/p/r/Products.FinanceFields-1.0/Products/FinanceFields/config.py   Products.FinanceFields(Download)
for cur in CURRENCIES.values():
    symbol = cur.int_currency_symbol
    l.add(symbol, symbol, symbol)
l._itor.sort()
CURRENCY_DISPLAY_LIST = l

src/r/g/rg.prenotazioni-2.1/rg/prenotazioni/content/prenotazionifolder.py   rg.prenotazioni(Download)
 
        res = DisplayList()
        res.add('0', '--:--')
        for hour in hours:
            for minute in minutes:
                time = hour + ':' + minute
                index_time = hour + minute
                res.add(index_time, time)
        res = DisplayList()
        for x in range(0, 21):
            res.add(str(x), str(x))
 
        return res

src/p/r/Products.PloneboardComments-1.1b2/Products/PloneboardComments/content/PloneboardComments.py   Products.PloneboardComments(Download)
            title += board.getParentNode().Title()
            title += " - " + board.Title()
            displaylist.add(board.UID(), title)
        return displaylist
 
        else:
            for forum in ploneboard.objectValues('PloneboardForum'):
                displaylist.add(forum.UID(), forum.Title())
        return displaylist
 

src/p/r/Products.CMFBibliographyAT-1.1.4.1/Products/CMFBibliographyAT/adapters/bibauthormember.py   Products.CMFBibliographyAT(Download)
        dl = DisplayList()
        #zzz todo: Make this translateable, how?
        dl.add('',"Select a site member")
        for r in results:
            title = r['title']
            if title=="":
                title=r['userid']
            dl.add(r['userid'],title)

src/r/g/rg.prenotazioni-2.1/rg/prenotazioni/content/prenotazione.py   rg.prenotazioni(Download)
        items = self.getPrenotazioniFolder().getTipologia()
        for item in items:
            elenco_tipologie.add(item, item)
        return elenco_tipologie
 

src/p/r/Products.ATVocabularyManager-1.6.6/Products/ATVocabularyManager/types/simple/vocabulary.py   Products.ATVocabularyManager(Download)
        vdict = self.getVocabularyDict(instance)
        for key in self.getSortedKeys(instance):
            dl.add(key, vdict[key])
        return dl
 

  1 | 2  Next