def register_shop_skin(title, package, path, name, config=None): from skin import ShopSkin path = '../%s/%s' % (package, path) path = get_abspath(path) # Register skin register_skin(name, ShopSkin(path, config=config)) shop_skins.append({'name': '/ui/%s' % name, 'value': title})
# it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # Import from itools from itools.core import get_abspath # Import from ikaaro from ikaaro.skins import register_skin # Import from tzm from tzm.skins import ProjectSkin # Import from here from project import Projects, Project # Silent pyflakes Projects, Project # Register skin path = get_abspath("ui") register_skin("project", ProjectSkin(path))
# -*- coding: UTF-8 -*- # Copyright (C) 2009 Norman Khine <*****@*****.**> # Import from itools from itools.core import get_abspath # Import from ikaaro from ikaaro.skins import register_skin # Import from here from phoenix import Phoenix from tzm.skins import Skin # Silent pyflakes Phoenix # Register skin path = get_abspath('ui') register_skin('phoenix', Skin(path))
if revisions: root = context.root username = revisions[0]['username'] user = root.get_user(username) if user: name = user.get_title() email = user.get_property('email') owner = {'name': name, 'email': email} namespace['owner'] = owner # Feeds articles, errors = self.get_articles() feeds_cache = deepcopy(self.handler.feeds_summary) feeds = [] for uri, data in feeds_cache.iteritems(): feeds.append({'title': data['title'], 'nb_articles': data['nb_articles'], 'uri': uri, 'type': 'rss' # FIXME hardcoded }) namespace['feeds'] = feeds handler = self.get_resource('/ui/rssfeeds/RssFeeds_export_to_opml.xml') return stl(handler, namespace=namespace) # Register skin path = get_abspath('../ui/rssfeeds') register_skin('rssfeeds', path)
# Copyright (C) 2010 Armel FORTUN <*****@*****.**> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # Import from itools from itools.core import get_abspath from itools.core import get_version # Import from ikaaro from ikaaro.skins import register_skin # Import from editarea from text import CSS # The version __version__ = get_version() # Register skin register_skin('editarea', get_abspath('ui'))
def get_document_types(self): return [self.news_class] ########################## # Views ########################## view = NewsFolder_View() edit = AutomaticEditView() browse_content = NewsFolder_BrowseContent(access='is_allowed_to_edit', title=MSG(u'Browse')) preview_content = Folder_PreviewContent(access='is_allowed_to_edit') rss = NewsFolder_RSS() control_panel = ITWS_ControlPanel() # Control panel commit_log = CPDBResource_CommitLog(access='is_allowed_to_edit') links = CPDBResource_Links() backlinks = CPDBResource_Backlinks() # Register register_document_type(NewsItem, NewsFolder.class_id) register_tags_aware(NewsItem) # Register skin register_skin('news', get_abspath('../ui/news'))
# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # Import from itools from itools.core import get_abspath # Import from ikaaro from ikaaro.skins import register_skin # Import from itws from base import Advance_RTEWidget, DualSelectWidget, XMLTitleWidget from base import ClassSelectorWidget from google_map import GoogleMapWidget, GoogleGPSWidget from osm import OpenStreetMapWidget, OpenStreetMapGPSWidget # Silent pyflakes Advance_RTEWidget, ClassSelectorWidget, DualSelectWidget, XMLTitleWidget GoogleMapWidget, GoogleGPSWidget OpenStreetMapWidget, OpenStreetMapGPSWidget # Register skin path = get_abspath('../ui/widgets') register_skin('widgets', path)
# -*- coding: UTF-8 -*- # Copyright (C) 2009 Norman Khine <*****@*****.**> # Import from itools from itools.core import get_abspath # Import from ikaaro from ikaaro.skins import register_skin # Import from tzm from tzm.skins import ChapterSkin # Import from here from chapter import Chapters, Chapter # Silent pyflakes Chapters, Chapter # Register skin register_skin('chapter', ChapterSkin(get_abspath('ui')))
import news import feed_views import OPML import sitemap import skin import theme import turning_footer import webpage import widgets import ws_neutral # Import obsolete if command is icms-update.py if sys.argv[0].endswith('icms-update.py'): import obsolete print 'Imported', obsolete.__name__ # Make the product version available to Python code __version__ = get_version() # Register the itws domain register_domain('itws', get_abspath('locale')) # Override User is_allowed_to_view User.is_allowed_to_view = User.is_allowed_to_edit # Silent pyflakes skin, about, OPML, bar, sitemap, turning_footer, ws_neutral, webpage, widgets, theme, feed_views, news register_skin('itws-icons', get_abspath('ui/itws-icons'))
# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # Import from itools from itools.core import get_abspath # Import from ikaaro from ikaaro.skins import register_skin # Import from project from sidebar import CategorySidebar, ProductSidebar, ShopSidebar from cart_box import CartBox from cross_selling_box import CrossSellingBox from filter_box import FilterBox from sidebar_cross_selling_box import SideBarCrossSellingBox from sidebar_product_cross_selling_box import SideBarProductCrossSellingBox from last_users import LastUsersBox from login_box import LoginBox from search_box import SearchBox from sub_categories_box import SubCategoriesBox register_skin('vertical_depot', get_abspath('../ui/vertical_depot/'))
# You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # Import from itools from itools.core import get_abspath # Import from ikaaro from ikaaro.skins import register_skin # Import from orders from buttons import NextButton from check import Check from orders import Orders, Order from order_views import Order_NewInstance from paybox import Paybox from payments import PaymentModule from payments_views import PaymentWays_Enumerate from product import Product, Product_List from shop import Shop from utils import get_orders, get_payments, get_payment_way from taxes import Taxes from widgets import PaymentWays_Widget, PriceWidget __all__ = ['Orders'] register_skin('shop', get_abspath('ui')) # Silent pyflakes PriceWidget, Shop, Order, Product, Taxes, get_orders
# # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # Import from itools from itools.core import get_abspath # Import from ikaaro from ikaaro.skins import register_skin # Import from itws from base import Advance_RTEWidget, DualSelectWidget, XMLTitleWidget from base import ClassSelectorWidget, JSDatetimeWidget from google_map import GoogleMapWidget, GoogleGPSWidget from osm import OpenStreetMapWidget, OpenStreetMapGPSWidget # Silent pyflakes Advance_RTEWidget, ClassSelectorWidget, DualSelectWidget, XMLTitleWidget GoogleMapWidget, GoogleGPSWidget, JSDatetimeWidget OpenStreetMapWidget, OpenStreetMapGPSWidget # Register skin path = get_abspath("../ui/widgets") register_skin("widgets", path)
# Import from itools from itools import get_version from itools.core import get_abspath from itools.gettext import register_domain # Import from ikaaro from ikaaro.skins import register_skin # Import from here from root import Root import skins import user # Make the product version available to Python code __version__ = get_version() # Register the tzm domain register_domain('tzm', get_abspath('locale')) # Register core skins register_skin('core', get_abspath('ui/core')) register_skin('icons', get_abspath('ui/icons')) register_skin('js_calendar', get_abspath('ui/js_calendar')) register_skin('progressbar', get_abspath('ui/progressbar')) register_skin('tiny_mce', get_abspath('ui/tiny_mce')) register_skin('wiki', get_abspath('ui/wiki')) register_skin('data', get_abspath('ui/data'))
# the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # Import from itools from itools.core import get_abspath # Import from ikaaro from ikaaro.skins import register_skin # Import from project from sidebar import CategorySidebar, ProductSidebar, ShopSidebar from cart_box import CartBox from cross_selling_box import CrossSellingBox from filter_box import FilterBox from sidebar_cross_selling_box import SideBarCrossSellingBox from sidebar_product_cross_selling_box import SideBarProductCrossSellingBox from last_users import LastUsersBox from login_box import LoginBox from search_box import SearchBox from sub_categories_box import SubCategoriesBox register_skin('vertical_depot', get_abspath('../ui/vertical_depot/'))
class AboutITWS(Folder): """ Default about-iws webpage """ class_id = 'about-itws' class_title = MSG(u'About ITWS') class_views = ['view', 'edit', 'browse_content'] def get_catalog_values(self): return merge_dicts(Folder.get_catalog_values(self), workflow_state='public') def get_document_types(self): return [] # Views view = AboutITWS_View() browse_content = Folder_BrowseContent(access='is_admin') # Register register_skin('about', Skin(get_abspath('ui/about')))
# -*- coding: UTF-8 -*- # Copyright (C) 2010 Taverne Sylvain <*****@*****.**> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # Import from itools from itools.core import get_abspath # Import from ikaaro from ikaaro.skins import register_skin # Import from itws from base import Feed_View # Register skin register_skin('feed_views', get_abspath('../ui/feed_views/')) # Silent pyflakes Feed_View
types.sort(lambda x, y : cmp(x.class_id, y.class_id)) return types def get_document_types(self): return [] def can_paste(self, source): """Is the source resource can be pasted into myself. Allow RightItem and Box but Box cannot be directly instanciated """ side_types = self._get_document_types(is_sidebox=True) allowed_types = side_types + [Box] return isinstance(source, tuple(allowed_types)) ################# # Views ################ new_resource = None browse_content = Repository_BrowseContent(access='is_allowed_to_edit') preview_content = Folder_PreviewContent(access='is_allowed_to_edit') commit_log = DBResource_CommitLog(access='is_allowed_to_edit') # Register skin register_skin('bar_items', get_abspath('../ui/bar_items'))
# Import from itools from itools.core import get_abspath from itools.core import get_version # Import from ikaaro from ikaaro.registry import register_document_type from ikaaro.skins import register_skin # Import from tchacker from tchacker.utils import which from video import VideoEncodingToFLV # The version __version__ = get_version() # Register skin path = get_abspath('ui') register_skin('flowplayer', path) # Register document type register_document_type(VideoEncodingToFLV) ############################################################################### # Check required software ############################################################################### for name, cli in [("flvtool2", "flvtool2"), ("ffmpeg", "ffmpeg"), ("ffmpegthumbnailer", "ffmpegthumbnailer")]: if(which(cli)) is None: print 'You need to install "%s".' % name
# -*- coding: UTF-8 -*- # Copyright (C) 2007-2008 Juan David Ibáñez Palomar <*****@*****.**> # Copyright (C) 2008 Nicolas Deram <*****@*****.**> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # Import from itools from itools.core import get_abspath from itools.core import get_version # Import from ikaaro from ikaaro.skins import register_skin # The version __version__ = get_version() # Register skin path = get_abspath('ui') register_skin('thickbox', path)
# -*- coding: UTF-8 -*- # Copyright (C) 2012 Norman Khine <*****@*****.**> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # Import from itools from itools.core import get_abspath # Import from ikaaro from ikaaro.skins import register_skin # Register skin register_skin('forums', get_abspath('ui'))
def get_catalog_values(self): return merge_dicts(Folder.get_catalog_values(self), SideBarAware.get_catalog_values(self)) def get_document_types(self): return [self.news_class] ########################## # Views ########################## view = NewsFolder_View() edit = FieldsAutomaticEditView(edit_fields=["title", "batch_size"]) browse_content = NewsFolder_BrowseContent(access="is_allowed_to_edit", title=MSG(u"Browse")) preview_content = Folder_PreviewContent(access="is_allowed_to_edit") rss = NewsFolder_RSS() control_panel = ITWS_ControlPanel() # Control panel commit_log = CPDBResource_CommitLog(access="is_allowed_to_edit") links = CPDBResource_Links() backlinks = CPDBResource_Backlinks() # Register register_document_type(NewsItem, NewsFolder.class_id) register_tags_aware(NewsItem) # Register skin register_skin("news", get_abspath("../ui/news"))
# Right Column resource = context.resource if resource is not resource.get_site_root(): return namespace if context.view is not resource.get_view(None): return namespace try: column = resource.get_resource('columnright') except LookupError: return namespace namespace['column'] = column.get_handler().events return namespace ########################################################################### # Register Skin ########################################################################### # hforge skin hforge_path = get_abspath('ui/hforge') hforge_skin = Skin(hforge_path) register_skin('hforge', hforge_skin) # odf-i18n skin hforge_path = get_abspath('ui/odf-i18n') hforge_skin = Skin(hforge_path) register_skin('odf-i18n', hforge_skin)
# This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # Import from itools from itools.core import get_abspath from itools.core import get_version # Import from ikaaro from ikaaro.registry import register_document_type from ikaaro.skins import register_skin from issue import Tchack_Issue #from resources import Tchack_Resources from tracker import Tchack_Tracker from utils import which # The version __version__ = get_version() # Register skin path = get_abspath('ui') register_skin('tchacker', path) # Register document type register_document_type(Tchack_Tracker)
return sidebar return site_root.get_resource('category-sidebar') return NeutralSkin.get_sidebar_resource(self, context) # Lazy (dynamic property) def get_lazy_current_category(self, context): here = context.resource shop = get_shop(here) here = context.resource if isinstance(here, shop.category_class): return here.get_title() elif isinstance(here, shop.product_class): return here.parent.get_title() return None ########################################################################### # Register ########################################################################### path = get_abspath('ui/shop/') register_skin('shop', ShopSkin(path)) path = get_abspath('ui/backoffice/') register_skin('backoffice', BackofficeSkin(path)) path = get_abspath('ui/modules/') register_skin('modules', Skin(path)) path = get_abspath('ui/default_skin/') register_skin('default_skin', ShopSkin(path))
from ikaaro.skins import register_skin # Import from goodforms from utils import is_print class Skin(BaseSkin): is_backoffice_skin = False def get_template(self, context): if is_print(get_context()): return self.get_resource('/ui/goodforms/print.xhtml') return super(Skin, self).get_template(context) def get_styles(self, context): #styles = super(Skin, self).get_styles(context) styles = [] styles.append('/ui/goodforms/dist/style.css') styles.append('/ui/goodforms/fancybox/jquery.fancybox-1.3.1.css') return styles def get_scripts(self, context): scripts = super(Skin, self).get_scripts(context) scripts.append('/ui/goodforms/zeroclipboard/ZeroClipboard.js') scripts.append('/ui/goodforms/fancybox/jquery.fancybox-1.3.1.pack.js') return scripts register_skin('goodforms', Skin(get_abspath('ui/goodforms')))
preview_content = Folder_BrowseContent(access='is_allowed_to_edit') edit = DBResource_Edit(styles=['/ui/crm/style.css']) backlinks = DBResource_Backlinks(access='is_allowed_to_edit') goto_contacts = GoToSpecificDocument(specific_document='contacts', adminbar_icon='crm16 crm16-contact-add', title=MSG(u'New contact'), access='is_allowed_to_edit') goto_companies = GoToSpecificDocument(specific_document='companies', adminbar_icon='crm16 crm16-company-add', title=MSG(u'New company'), access='is_allowed_to_edit') import_contacts = CRM_ImportContacts() test = CRM_Test() def init_resource(self, **kw): Folder.init_resource(self, **kw) # Companies self.make_resource('companies', Companies, title={'en': u'Companies', 'fr': u'Sociétés'}) # Contacts self.make_resource('contacts', Contacts, title={'en': u'Contacts', 'fr': u'Contacts'}) # Missions self.make_resource('missions', Missions, title={'en': u'Missions', 'fr': u'Missions'}) # Register crm skin path = get_abspath('ui') register_skin('crm', path)
# Copyright (C) 2010 Armel FORTUN <*****@*****.**>> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # Import from itools from itools.core import get_abspath from itools.core import get_version # Import from ikaaro from ikaaro.skins import register_skin from slideviewer import Slideviewer # The version __version__ = get_version() # Register skin path = get_abspath('ui') register_skin('slideviewer', path)
# -*- coding: UTF-8 -*- # Copyright (C) 2010 Juan David Ibáñez Palomar <*****@*****.**> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # Import from itools from itools.core import get_abspath # Import from ikaaro from ikaaro.registry import register_document_type from ikaaro.skins import register_skin from blog import Post # Register skin path = get_abspath('ui') register_skin('blog', path) # Add blogs to websites register_document_type(Post)
def get_scripts(self, context): scripts = BaseSkin.get_scripts(self, context) scripts.append("/ui/common/js/jquery.multiselect2side/javascript.js") return scripts def build_namespace(self, context): return merge_dicts( BaseSkin.build_namespace(self, context), title=context.view.get_title(context), context_menus=list(self._get_context_menus(context)), ) ################### # Register skins ################### # Internal register_skin("common", get_abspath("ui/common")) register_skin("admin-popup", AdminPopupSkin(get_abspath("ui/admin-popup"))) # New skins register_skin("k2", Skin(get_abspath("ui/k2"))) # Custom Zeitgeist Skin register_skin("ztm", ZeitgeistSkin(get_abspath("ui/ztm"))) # Old skins register_skin("neutral", NeutralSkin(get_abspath("ui/neutral")))
import docutils # Import from itools from itools.core import get_abspath, get_version from itools.gettext import register_domain # Import from ikaaro from ikaaro.skins import register_skin # Import from wiki from folder import WikiFolder # The version __version__ = get_version() # Register skin register_skin('wiki', get_abspath('ui')) # Register the wiki domain register_domain('wiki', get_abspath('locale')) # Updates if argv[0].endswith('icms-update.py'): import obsolete obsolete # Silent pyflakes docutils WikiFolder
from ikaaro.skins import register_skin # Import from ikaaro.agenda from agenda import ConfigAgenda from agenda_views import DailyView, MonthlyView, WeeklyView from event import Event, EventModel, Event_Edit, Event_NewInstance from event import Event_Render from calendars import Calendar, Calendars_Enumerate, Calendars_View from emails import Event_Reminder_Email __all__ = [ 'Calendar', 'Calendars_Enumerate', 'Calendars_View', 'Event', 'EventModel', 'DailyView', 'MonthlyView', 'WeeklyView', # Emails 'Event_Reminder_Email' ] # Register register_document_type(Event) register_skin('agenda', get_abspath('ui')) Configuration.register_module(ConfigAgenda) # Silent pyflakes Event_Render, Event_Edit, Event_NewInstance
return site_root.get_resource('category-sidebar') return NeutralSkin.get_sidebar_resource(self, context) # Lazy (dynamic property) def get_lazy_current_category(self, context): here = context.resource shop = get_shop(here) here = context.resource if isinstance(here, shop.category_class): return here.get_title() elif isinstance(here, shop.product_class): return here.parent.get_title() return None ########################################################################### # Register ########################################################################### path = get_abspath('ui/shop/') register_skin('shop', ShopSkin(path)) path = get_abspath('ui/backoffice/') register_skin('backoffice', BackofficeSkin(path)) path = get_abspath('ui/modules/') register_skin('modules', Skin(path)) path = get_abspath('ui/default_skin/') register_skin('default_skin', ShopSkin(path))
styles.remove('/theme/style/;download') return styles def get_scripts(self, context): scripts = BaseSkin.get_scripts(self, context) scripts.append('/ui/common/js/jquery.multiselect2side/javascript.js') return scripts def build_namespace(self, context): return merge_dicts(BaseSkin.build_namespace(self, context), title=context.view.get_title(context), context_menus=list(self._get_context_menus(context))) ################### # Register skins ################### # Internal register_skin('common', get_abspath('ui/common')) register_skin('admin-popup', AdminPopupSkin(get_abspath('ui/admin-popup'))) # New skins register_skin('k2', Skin(get_abspath('ui/k2'))) # Old skins register_skin('neutral', NeutralSkin(get_abspath('ui/neutral')))
# Copyright (C) 2010 Juan David Ibáñez Palomar <*****@*****.**> # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # Import from itools from itools.core import get_abspath # Import from ikaaro from ikaaro.registry import register_document_type from ikaaro.skins import register_skin from blog import Post # Register skin path = get_abspath('ui') register_skin('blog', path) # Add blogs to websites register_document_type(Post)
# Import from itools from itools.core import get_version, get_abspath # Import from ikaaro from ikaaro.skins import register_skin, Skin from tchacker.utils import which # Keep it, even if Pyflakes would remove it from root import Root import config_about_us # The version __version__ = get_version() register_skin('tchack', Skin(get_abspath('ui/tchack/'))) register_skin('upload', Skin(get_abspath('ui/upload/'))) ########################################################################### # Check required software ########################################################################### for name, cli in [ ("ffmpeg", "ffmpeg") ]: if(which(cli)) is None: print 'You need to install "%s".' % name def error_exit(message): #http://pydoc.net/Python/ngxtop/0.0.2/ngxtop.utils/