Paste number 137655: Zope 2.9.1 ZClass Implementation Issue when adding metatype

Paste number 137655: Zope 2.9.1 ZClass Implementation Issue when adding metatype
Pasted by: nobodydotpy
When:8 years, 4 months ago
Share:Tweet this! | http://paste.lisp.org/+2Y7R
Channel:None
Paste contents:
Raw Source | XML | Display As
2013-06-18T14:19:39 ERROR Zope.SiteErrorLog http://localhost:8888/Learning%20ZClasses/manage_addProduct/FirstZProduct/FirstZClass_factory/FirstZClass_add
Traceback (most recent call last):
  File "C:\Zope-2.9.1\lib\python\ZPublisher\Publish.py", line 120, in publish
    transactions_manager.commit()
  File "C:\Zope-2.9.1\lib\python\Zope2\App\startup.py", line 240, in commit
    transaction.commit()
  File "C:\Zope-2.9.1\lib\python\transaction\_manager.py", line 96, in commit
    return self.get().commit(sub, deprecation_wng=False)
  File "C:\Zope-2.9.1\lib\python\transaction\_transaction.py", line 380, in commit
    self._saveCommitishError() # This raises!
  File "C:\Zope-2.9.1\lib\python\transaction\_transaction.py", line 378, in commit
    self._commitResources()
  File "C:\Zope-2.9.1\lib\python\transaction\_transaction.py", line 433, in _commitResources
    rm.commit(self)
  File "C:\Zope-2.9.1\lib\python\ZODB\Connection.py", line 484, in commit
    self._commit(transaction)
  File "C:\Zope-2.9.1\lib\python\ZODB\Connection.py", line 526, in _commit
    self._store_objects(ObjectWriter(obj), transaction)
  File "C:\Zope-2.9.1\lib\python\ZODB\Connection.py", line 553, in _store_objects
    p = writer.serialize(obj)  # This calls __getstate__ of obj
  File "C:\Zope-2.9.1\lib\python\ZODB\serialize.py", line 407, in serialize
    return self._dump(meta, obj.__getstate__())
  File "C:\Zope-2.9.1\lib\python\ZODB\serialize.py", line 416, in _dump
    self._p.dump(state)
  File "C:\Zope-2.9.1\bin\lib\copy_reg.py", line 70, in _reduce_ex
    state = base(self)
TypeError: default __new__ takes no parameters

This paste has no annotations.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.