def insertTheme(): s = entityFor(IBlogThemeService) assert isinstance(s, IBlogThemeService) for name in ("big-screen",): q = QBlogTheme(name=name) l = s.getAll(q=q) if not l: t = BlogTheme() t.Name = name t.URL = cdmGUI().getURI(themes_path() + "/" + name, "http") t.IsLocal = True s.insert(t)
def insertTheme(): s = entityFor(IBlogThemeService) assert isinstance(s, IBlogThemeService) for name in ('big-screen', ): q = QBlogTheme(name=name) l = s.getAll(q=q) if not l: t = BlogTheme() t.Name = name t.URL = cdmGUI().getURI(themes_path() + '/' + name, 'http') t.IsLocal = True s.insert(t)
def insertThemes(): s = entityFor(IBlogThemeService) assert isinstance(s, IBlogThemeService) for name in ('default', 'generic'): q = QBlogTheme() q.name = name l = s.getAll(q=q) if not l: t = BlogTheme() t.Name = name t.URL = cdmGUI().getURI(embed_themes_path() + '/' + name, 'http') t.IsLocal = True s.insert(t)
def insertThemes(): s = entityFor(IBlogThemeService) assert isinstance(s, IBlogThemeService) for name in ("default", "generic"): q = QBlogTheme() q.name = name l = s.getAll(q=q) if not l: t = BlogTheme() t.Name = name t.URL = cdmGUI().getURI(embed_themes_path() + "/" + name, "http") t.IsLocal = True s.insert(t)
def insertThemes(): s = entityFor(IBlogThemeService) assert isinstance(s, IBlogThemeService) for name in ('default', 'tageswoche','tageswoche-multi', 'tageswoche-solo','stt', 'genapp', 'big-screen', 'zeit', 'ctkepr', 'ctkeu', 'ctkih', 'ctkno', 'ctkr', 'aamulehti', 'satakansa', 'okfn', 'sasa', 'sasa-light', 'ksml', 'ksml-light', 'sz', 'rp'): q = QBlogTheme() q.name = name l = s.getAll(q=q) if not l: t = BlogTheme() t.Name = name t.URL = cdmGUI().getURI(embed_themes_path() + '/' + name, 'http') t.IsLocal = True s.insert(t)
def insertThemes(): s = entityFor(IBlogThemeService) assert isinstance(s, IBlogThemeService) for name in ('default', 'tageswoche', 'stt'): q = QBlogTheme() q.name = name l = s.getAll(q=q) if not l: t = BlogTheme() t.Name = name t.URL = cdmGUI().getURI(themes_path() + '/' + name, 'http') t.IsLocal = True s.insert(t)
def insertThemes(): s = entityFor(IBlogThemeService) assert isinstance(s, IBlogThemeService) for name in ('default', 'tageswoche','tageswoche-multi', 'tageswoche-solo','stt', 'genapp', 'big-screen', 'zeit', 'ctkepr', 'ctkeu', 'ctkih', 'ctkno', 'ctkr', 'aamulehti', 'satakansa', 'okfn', 'sasa', 'sasa-light', 'ksml', 'ksml-light', 'sz', 'rp'): q = QBlogTheme() q.name = name l = s.getAll(q=q) if not l: t = BlogTheme() t.Name = name t.URL = cdmGUI().getURI(themes_path() + '/' + name, 'http') t.IsLocal = True s.insert(t)