Example #1
0
# -*- 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)
Example #2
0
# -*- 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()

Example #3
0
# -*- 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')

Example #4
0
# -*- 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)
Example #5
0
# -*- 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()
Example #8
0
# -*- 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)
Example #9
0
# -*- 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')
Example #10
0
# -*- 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')