# -*- coding: utf-8 -*- # Copyright (c) 2011-2013 RelationWare, Benno Luthiger. All rights reserved. # See also LICENSE.txt from silva.core import conf as silvaconf from silva.core.conf.installer import DefaultInstaller from zope.interface import Interface _extensionName = "RwLayout" silvaconf.extensionName(_extensionName) silvaconf.extensionTitle("RelationWare Layout") silvaconf.extensionDepends(("SilvaDocument", "SilvaExternalSources")) from Products.PythonScripts.Utility import allow_module allow_module('Products.RwLayout.helpers') class IExtension(Interface): ''' RwLayout Extension ''' class RwLayoutInstaller(DefaultInstaller): def install_custom(self, root): pass def uninstall_custom(self, root): pass install = RwLayoutInstaller(_extensionName, IExtension)
# -*- coding: utf-8 -*- # Copyright (c) 2002-2013 Infrae. All rights reserved. # See also LICENSE.txt from silva.core import conf as silvaconf silvaconf.extensionName('silva.core.layout') silvaconf.extensionTitle('Silva Core Layout') silvaconf.extensionSystem()
# -*- coding: utf-8 -*- # Copyright (c) 2008-2013 Infrae. All rights reserved. # See also LICENSE.txt from silva.core import conf as silvaconf silvaconf.extensionName('BadExtension') silvaconf.extensionTitle('Bad Extension')
# -*- coding: utf-8 -*- # Copyright (c) 2008-2013 Infrae. All rights reserved. # See also LICENSE.txt from silva.core import conf as silvaconf silvaconf.extensionName('SimpleTestExtension') silvaconf.extensionTitle('Simple Test Extension') from silva.core.conf.installer import DefaultInstaller from zope.interface import Interface class ISimpleTestExtension(Interface): """The default installer use an interface to known if an extension is installed. So you need to define a specific interface for your extension. """ install = DefaultInstaller('SimpleTestExtension', ISimpleTestExtension)
# -*- coding: utf-8 -*- # Copyright (c) 2002-2013 Infrae. All rights reserved. # See also LICENSE.txt from silva.core import conf as silvaconf silvaconf.extensionName('silva.core.views') silvaconf.extensionTitle('Silva Core Views') silvaconf.extensionSystem() import zope.deferredimport zope.deferredimport.deprecated( 'Forms moved into silva.core.forms.', forms = 'silva.core.forms.forms', z3cforms = 'silva.core.forms.z3cforms')
# Copyright (c) 2009-2010 Infrae. All rights reserved. # See also LICENSE.txt # $Id$ from silva.core import conf as silvaconf silvaconf.extensionName('silva.searchandreplace') silvaconf.extensionTitle('Silva Search and Replace') silvaconf.extensionSystem()
# Copyright (c) 2010 Infrae. All rights reserved. # See also LICENSE.txt # $Id$ from silva.core import conf as silvaconf silvaconf.extensionName('silva.security.logging') silvaconf.extensionTitle('Silva Security Logging') silvaconf.extensionSystem()
# -*- coding: utf-8 -*- # Copyright (c) 2008-2013 Infrae. All rights reserved. # See also LICENSE.txt from silva.core import conf as silvaconf silvaconf.extensionName('TestExtension') silvaconf.extensionTitle('Test Extension')