view __init__.py @ 1:48de7c260ffe

first commit
author fknauft
date Wed, 12 May 2010 14:34:42 +0000
parents
children 61a3764cd5fb
line wrap: on
line source


import REST_test 

#class RESTinterface(DefaultPublishTraverse):
#    """VLP spezifische Erweiterung der Collection"""
#    
#    meta_type="RESTinterface"
#    
#    implements(IPublishTraverse)
#         
#    def publishTraverse(self,request,name):
#        """change the traversal if literature object"""
#        
#        actual_url=request['ACTUAL_URL']
#        lastActual=actual_url.split("/")[-1]
#   
#           
#        tr=DefaultPublishTraverse(self, request)
#        ob= tr.publishTraverse(request, name)
#       
#        return ob

def initialize(context):
    context.registerClass(
         REST_test.RESTclass,
        constructors = (
          REST_test.manage_addRESTclassForm,
          REST_test.manage_addRESTclass
          )
        )