Personal tools
You are here: Home Documentation Transforms Manual Examples transform_template_library.py
Document Actions

transform_template_library.py

A template for a transform class library, which is an abstract class that inherits from Transform

Click here to get the file

Size 1 kB - File type text/python-source

File contents

from transform import Transform

#Import anything else you want, just remember to import Transform (or the
#library you are adding to, in which case you do not need to import Transform)
#Just make sure that the library has access to Transform at some level

class YourTransformLibrary (Transform): #Or a libray that you are adding to
    def YourTransformLibraryInit(self):
        self.somevar = None
        #If you need to use vars that are specific to your library, then
        #call an 

    def yourFunction(self, arg1, arg2):
        self.getElementsByName(self.root, 'someTag') #You will always have access
        #your code
        return
    
    def anotherFunction(self, arg1, arg2):
        return
        
Related content
by Karl Norby last modified 2006-08-31 09:33

Powered by Plone, the Open Source Content Management System

This site conforms to the following standards: