![]() ![]() ![]() ![]()
|
||||||||||
Copyright © 2001-2005 zopeLABS and community |
#
# Init functions
#
##############################################
# LICENSE:
# This code is bound to be ugly, have mistakes,
# and generally just be plain _wrong_.
#
# What do you care though? It works, and you
# got it for free. ;-) Feel free to make any
# changes and re-release.
##############################################
#
import Recipe, Cookbook, Comment
__doc__ = """Init for Code Cookbook Product """
__version__ = "0.1.0"
def initialize(context):
context.registerClass(
Recipe.Recipe,
constructors = (
Recipe.manage_addRecipeForm,
Recipe.manage_userAddRecipeForm,
Recipe.manage_addRecipe
),
icon = 'www/recipe.gif'
)
context.registerClass(
Comment.Comment,
constructors = (
Comment.manage_addCommentForm,
Comment.manage_userAddCommentForm,
Comment.manage_addComment
),
icon = 'www/comment.gif'
)
context.registerClass(
Cookbook.Cookbook,
constructors = (
Cookbook.manage_addCookbookForm,
Cookbook.manage_addCookbook
),
icon = 'www/cookbook.gif'
)
|
|||||||||