Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Commit

Permalink
Changed constructors for Image and File Products to differentiate the…
Browse files Browse the repository at this point in the history
…m. This

is required since they both use the same DTML file for their add form.
  • Loading branch information
latteier committed Mar 31, 1999
1 parent ae7f497 commit adbb9ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@
#
##############################################################################
__doc__='''Base Principia
$Id: __init__.py,v 1.27 1999/03/30 19:08:42 jim Exp $'''
__version__='$Revision: 1.27 $'[11:-2]
$Id: __init__.py,v 1.28 1999/03/31 00:02:50 amos Exp $'''
__version__='$Revision: 1.28 $'[11:-2]

import Version, Draft, OFS.Image, OFS.Folder, AccessControl.User
import OFS.DTMLMethod, OFS.DTMLDocument
Expand Down Expand Up @@ -118,7 +118,7 @@ def initialize(context):
context.registerClass(
OFS.Image.Image,
permission=perm,
constructors=(OFS.Image.manage_addImageForm,
constructors=(('imageAdd',OFS.Image.manage_addImageForm),
OFS.Image.manage_addImage),
icon='images/Image_icon.gif',
legacy=(OFS.Image.manage_addImage,),
Expand All @@ -127,7 +127,7 @@ def initialize(context):
context.registerClass(
OFS.Image.File,
permission=perm,
constructors=(OFS.Image.manage_addFileForm,
constructors=(('fileAdd',OFS.Image.manage_addFileForm),
OFS.Image.manage_addFile),
icon='images/File_icon.gif',
legacy=(OFS.Image.manage_addFile,),
Expand Down

0 comments on commit adbb9ad

Please sign in to comment.