Commit bb99340d authored by Aurel's avatar Aurel

wip

parent 178b7e0c
...@@ -161,7 +161,7 @@ def runwsgi(): ...@@ -161,7 +161,7 @@ def runwsgi():
args = parser.parse_args() args = parser.parse_args()
startup = os.path.dirname(Zope2.Startup.__file__) startup = os.path.dirname(Zope2.Startup.__file__)
schema = ZConfig.loadSchema(os.path.join(startup, 'zopeschema.xml')) schema = ZConfig.loadSchema(os.path.join(startup, 'wsgischema.xml'))
conf, _ = ZConfig.loadConfig(schema, args.zope_conf) conf, _ = ZConfig.loadConfig(schema, args.zope_conf)
make_wsgi_app({}, zope_conf=args.zope_conf) make_wsgi_app({}, zope_conf=args.zope_conf)
......
import os import os
import OFS import OFS
from App.ImageFile import ImageFile from App.ImageFile import ImageFile
from FieldHelpTopic import FieldHelpTopic # XXX-AUREL this is not even used and import HelpSys which was removed
#from FieldHelpTopic import FieldHelpTopic
class FieldRegistry: class FieldRegistry:
"""A registry of fields, maintaining a dictionary with """A registry of fields, maintaining a dictionary with
......
...@@ -27,7 +27,7 @@ from ComputedAttribute import ComputedAttribute ...@@ -27,7 +27,7 @@ from ComputedAttribute import ComputedAttribute
# FIXME: manage_renameObject hack needs these imports # FIXME: manage_renameObject hack needs these imports
from Acquisition import aq_base from Acquisition import aq_base
from App.Dialogs import MessageDialog from App.Dialogs import MessageDialog
from OFS.CopySupport import CopyError, eNotSupported from OFS.CopySupport import CopyError
import sys import sys
class Form: class Form:
...@@ -687,7 +687,7 @@ class ZMIForm(ObjectManager, PropertyManager, RoleManager, Item, Form): ...@@ -687,7 +687,7 @@ class ZMIForm(ObjectManager, PropertyManager, RoleManager, Item, Form):
action ='manage_main') action ='manage_main')
ob=self._getOb(id) ob=self._getOb(id)
if not ob.cb_isMoveable(): if not ob.cb_isMoveable():
raise CopyError, eNotSupported % id raise CopyError('Not Supported')
self._verifyObjectPaste(ob) self._verifyObjectPaste(ob)
try: ob._notifyOfCopyTo(self, op=1) try: ob._notifyOfCopyTo(self, op=1)
except: raise CopyError, MessageDialog( except: raise CopyError, MessageDialog(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment