view __init__.py @ 262:6613b9204bda

Small bugs
author fknauft
date Tue, 01 Nov 2011 18:04:26 +0100
parents 7f008e782563
children 9b7db308d2e6
line wrap: on
line source


import RestDbInterface
import RestDbJsonStore
import RestDbGisApi

def initialize(context):

    context.registerClass(
         RestDbInterface.RestDbInterface,
        constructors = (
          RestDbInterface.manage_addRestDbInterfaceForm,
          RestDbInterface.manage_addRestDbInterface
          )
        )

    context.registerClass(
         RestDbJsonStore.RestDbJsonStore,
        constructors = (
          RestDbJsonStore.manage_addRestDbJsonStoreForm,
          RestDbJsonStore.manage_addRestDbJsonStore
          )
        )

    context.registerClass(
         RestDbGisApi.RestDbGisApi,
        constructors = (
          RestDbGisApi.manage_addRestDbGisApiForm,
          RestDbGisApi.manage_addRestDbGisApi
          )
        )

# FileSystemSite for gis_gui files
from Products.FileSystemSite.DirectoryView import registerDirectory
registerDirectory('gis_gui', globals())