Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(8) | Call(3) | Derive(0) | Import(5)
funcionality that dictstorage is providing like ordinary dictionary TODO: maybe __iter__, values, keys, etc ... should also be implemented
src/f/t/ftw.tabbedview-3.3.9/ftw/tabbedview/browser/tabbed.py ftw.tabbedview(Download)
from Products.CMFCore.Expression import getExprContext from Products.CMFCore.utils import getToolByName from Products.Five.browser import BrowserView from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile from ftw.dictstorage.interfaces import IDictStorage
# store the data storage = IDictStorage(listing_view) storage.set(key, state)
key = key_generator.get_key() storage = IDictStorage(self) storage.set(key, tab.lower())
src/f/t/ftw.tabbedview-3.3.9/ftw/tabbedview/browser/listing.py ftw.tabbedview(Download)
from Acquisition import aq_inner from Products.CMFCore.utils import getToolByName from Products.Five.browser import BrowserView from ftw.dictstorage.interfaces import IDictStorage from ftw.tabbedview import tabbedviewMessageFactory as _
# get the state (string) storage = IDictStorage(self) state = storage.get(key, None)
src/f/t/ftw.dictstorage-1.2/ftw/dictstorage/base.py ftw.dictstorage(Download)
from zope.component import queryAdapter from zope.component import getMultiAdapter from ftw.dictstorage.interfaces import IDictStorage
src/f/t/ftw.tabbedview-3.3.9/ftw/tabbedview/tests/test_statestorage.py ftw.tabbedview(Download)
from OFS.interfaces import IItem from ftw.dictstorage.interfaces import IConfig from ftw.dictstorage.interfaces import IDictStorage from ftw.tabbedview import statestorage from ftw.tabbedview.interfaces import IDefaultDictStorageConfig
src/f/t/ftw.tabbedview-3.3.9/ftw/tabbedview/statestorage.py ftw.tabbedview(Download)
from Products.CMFCore.utils import getToolByName from ftw.dictstorage.base import DictStorage from ftw.dictstorage.interfaces import IConfig from ftw.dictstorage.interfaces import IDictStorage from ftw.tabbedview.interfaces import IDefaultDictStorageConfig