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

All Samples(4)  |  Call(0)  |  Derive(2)  |  Import(2)

src/s/i/silva.app.news-3.0.4/src/silva/app/news/filters/Filter.py   silva.app.news(Download)
from ..interfaces import INewsItemFilter, IServiceNews, news_source
from ..interfaces import INewsItemContentVersion
from ..NewsCategorization import NewsCategorization, INewsCategorizationFields
from silva.app.news import datetimeutils
from silva.app.news.datetimeutils import local_timezone
class IFilterFields(INewsCategorizationFields):
    sources = schema.Set(
        value_type=schema.Choice(source=news_source),
        title=_(u"sources"),
        description=_(u"Use predefined sources."))

src/s/i/silva.app.news-3.0.4/src/silva/app/news/NewsItem/smi.py   silva.app.news(Download)
 
from ..interfaces import INewsItem, INewsItemContent
from ..NewsCategorization import INewsCategorizationFields
 
 
_ = MessageFactory('silva_news')
 
 
class INewsItemFields(INewsCategorizationFields):