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

All Samples(5)  |  Call(2)  |  Derive(0)  |  Import(3)

src/f/t/ftw.bridge.client-1.0.8/ftw/bridge/client/browser/watcher.py   ftw.bridge.client(Download)
from ftw.bridge.client.interfaces import MAINTENANCE_ERROR_MESSAGE
from ftw.bridge.client.portlets.watcher import Assignment
from ftw.bridge.client.utils import get_brain_url
from ftw.bridge.client.utils import get_object_url
from ftw.bridge.client.utils import json
    def get_item_data(self, brain):
        return {
            'title': brain.Title.decode('utf-8'),
            'url': get_brain_url(brain),
            'modified': brain.modified.strftime(DATETIME_FORMAT),

src/f/t/ftw.bridge.client-1.0.8/ftw/bridge/client/brain.py   ftw.bridge.client(Download)
from DateTime import DateTime
from Products.CMFCore.utils import getToolByName
from ftw.bridge.client.interfaces import IBrainRepresentation
from ftw.bridge.client.interfaces import IBrainSerializer
from ftw.bridge.client.utils import get_brain_url
    def _serialize_brain(self, brain):
        data = {self._encode('_url'): self._encode(get_brain_url(brain))}
 
        for name in self._get_metadata_names(brain):
            value = getattr(brain, name, None)

src/f/t/ftw.bridge.client-1.0.8/ftw/bridge/client/tests/test_utils.py   ftw.bridge.client(Download)
from Products.CMFCore.utils import getToolByName
from ftw.bridge.client.interfaces import PORTAL_URL_PLACEHOLDER
from ftw.bridge.client.testing import EXAMPLE_CONTENT_LAYER
from ftw.bridge.client.utils import get_brain_url
from ftw.bridge.client.utils import get_object_url