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

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

src/i/w/iw.sitestat-1.0.0-beta-2/iw/sitestat/tests/test_utils.py   iw.sitestat(Download)
    def testGetSite(self):
        site = utils.getSite()
        self.failUnless(site.getPhysicalPath() == self.portal.getPhysicalPath())
        return
 

src/i/w/iw.sitestat-1.0.0-beta-2/iw/sitestat/linksfinders/thirdparty/collage.py   iw.sitestat(Download)
from iw.sitestat.interfaces import IFileLinksFinder
from iw.sitestat.linksfinders import ATTypeLinksFinder
from iw.sitestat.utils import getSite
 
# Note that, as this date, for types that provide file download

src/i/w/iw.sitestat-1.0.0-beta-2/iw/sitestat/events.py   iw.sitestat(Download)
from zope.component import queryAdapter, getAdapter
from iw.sitestat.interfaces import IContentOptions, ISitestatConfigSchema
from iw.sitestat.utils import getSite
from iw.sitestat.browser.contentoptions import compileClickinPaths
from iw.sitestat.config import PRODUCTNAME
        return
    if options.is_clickin_target:
        global_config = getAdapter(getSite(), ISitestatConfigSchema)
        clickin_uids = list(global_config.clickin_uids)
        clickin_uids.remove(item.UID())

src/i/w/iw.sitestat-1.0.0-beta-2/iw/sitestat/browser/jsslot.py   iw.sitestat(Download)
from iw.sitestat.interfaces import IFileLinksFinder
from iw.sitestat.interfaces import IContentOptions
from iw.sitestat.utils import getSite, sitestatifyTitle
from iw.sitestat.config import ZOPETESTCASE
 
        super(SitestatViewlet, self).update()
        self.context_state = getMultiAdapter((self.context, self.request), name=u'plone_context_state')
        self.global_config = getAdapter(getSite(), ISitestatConfigSchema)
        self.local_config = queryAdapter(self.context, IContentOptions)
        return

src/i/w/iw.sitestat-1.0.0-beta-2/iw/sitestat/browser/controlpanel.py   iw.sitestat(Download)
from iw.sitestat.formlib import URLLine
from iw.sitestat.config import PROPERTYSHEET
from iw.sitestat.utils import getSite, validateSitestatName
from iw.sitestat import IwSitestatMessageFactory as _
 
    def __call__(self, context):
        portal_languages = getToolByName(getSite(), 'portal_languages')
        # countries_tuples = [(u'de', u'Deutschland'), ...]
        countries_tuples = [(x, y[u'name']) for x, y in portal_languages.getAvailableCountries().items()]
        countries_tuples.sort(lambda x, y: cmp(x[1], y[1]))

src/i/w/iw.sitestat-1.0.0-beta-2/iw/sitestat/browser/contentoptions.py   iw.sitestat(Download)
from iw.sitestat.interfaces import ISitestatConfigSchema
from iw.sitestat.config import ANNOTATIONS_KEY, BLACKLISTED_LABELS
from iw.sitestat.utils import getSite, validateSitestatName
from iw.sitestat import IwSitestatMessageFactory as _
from iw.sitestat import logger
    def __init__(self, context):
        self.context = context
        self.global_config = getAdapter(getSite(), ISitestatConfigSchema)
        return
 
        if storage.is_clickin_target != is_clickin_target:
            # Changed mode
            global_config = getAdapter(getSite(), ISitestatConfigSchema)
 
        storage.is_clickin_target = is_clickin_target
def compileClickinPaths():
    portal = getSite()
    global_config = getAdapter(portal, ISitestatConfigSchema)
    catalog = portal.uid_catalog
    paths = []