collective / collective.nitf

A Dexterity-based content type inspired on the News Industry Text Format specification
8 stars 3 forks source link

TypeError when dropping content into an NITF tile #175

Closed hvelarde closed 8 years ago

hvelarde commented 8 years ago

Plone 4.3.10 with collective.cover 1.2b1 and collective.nitf 2.0b2 installed.

you'll see an error:

2016-09-12T08:53:02 ERROR Zope.SiteErrorLog 1473684782.270.491508807798 http://example.com/Plone/@@updatetilecontent
Traceback (innermost last):
  Module ZPublisher.Publish, line 146, in publish
  Module Zope2.App.startup, line 301, in commit
  Module transaction._manager, line 89, in commit
  Module transaction._transaction, line 329, in commit
  Module transaction._transaction, line 443, in _commitResources
  Module ZODB.Connection, line 567, in commit
  Module ZODB.Connection, line 623, in _commit
  Module ZODB.Connection, line 658, in _store_objects
  Module ZODB.serialize, line 422, in serialize
  Module ZODB.serialize, line 431, in _dump
  Module copy_reg, line 70, in _reduce_ex
TypeError: can't pickle instancemethod objects

selection_074

we need to test if this happens in the 1.x branch also.

hvelarde commented 8 years ago

after upgrading to collective.cover 1.3b1 the error is still present.

rodfersou commented 8 years ago

After remove basic tile and persistent tile memoise decorators:

2016-09-12 11:57:16 ERROR plone.app.viewletmanager rendering of plone.abovecontent in plone.lockinfo fails: An operation previously failed, with traceback:

  File "/srv/cache/eggs/Zope2-2.13.24-py2.7.egg/ZServer/PubCore/ZServerPublisher.py", line 31, in __init__
    response=b)
  File "/srv/cache/eggs/Zope2-2.13.24-py2.7.egg/ZPublisher/Publish.py", line 452, in publish_module
    environ, debug, request, response)
  File "/srv/cache/eggs/Zope2-2.13.24-py2.7.egg/ZPublisher/Publish.py", line 419, in publish_module_profiled
    environ, debug, request, response)
  File "/srv/env/pyenv/versions/2.7.9/lib/python2.7/cProfile.py", line 149, in runcall
    return func(*args, **kw)
  File "/srv/cache/eggs/Zope2-2.13.24-py2.7.egg/ZPublisher/Publish.py", line 394, in pm
    request=request, response=response)
  File "/srv/cache/eggs/Zope2-2.13.24-py2.7.egg/ZPublisher/Publish.py", line 249, in publish_module_standard
    response = publish(request, module_name, after_list, debug=debug)
  File "/srv/cache/eggs/Zope2-2.13.24-py2.7.egg/ZPublisher/Publish.py", line 146, in publish
    transactions_manager.commit()
  File "/srv/cache/eggs/Zope2-2.13.24-py2.7.egg/Zope2/App/startup.py", line 301, in commit
    transaction.commit()
  File "/srv/cache/eggs/transaction-1.1.1-py2.7.egg/transaction/_manager.py", line 89, in commit
    return self.get().commit()
  File "/srv/cache/eggs/transaction-1.1.1-py2.7.egg/transaction/_transaction.py", line 336, in commit
    t, v, tb = self._saveAndGetCommitishError()
  File "/srv/cache/eggs/transaction-1.1.1-py2.7.egg/transaction/_transaction.py", line 329, in commit
    self._commitResources()
  File "/srv/cache/eggs/transaction-1.1.1-py2.7.egg/transaction/_transaction.py", line 443, in _commitResources
    rm.commit(self)
  File "/srv/cache/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZODB/Connection.py", line 567, in commit
    self._commit(transaction)
  File "/srv/cache/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZODB/Connection.py", line 623, in _commit
    self._store_objects(ObjectWriter(obj), transaction)
  File "/srv/cache/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZODB/Connection.py", line 658, in _store_objects
    p = writer.serialize(obj)  # This calls __getstate__ of obj
  File "/srv/cache/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZODB/serialize.py", line 422, in serialize
    return self._dump(meta, obj.__getstate__())
  File "/srv/cache/eggs/ZODB3-3.10.5-py2.7-linux-x86_64.egg/ZODB/serialize.py", line 431, in _dump
    self._p.dump(state)
  File "/srv/env/pyenv/versions/collective.cover/lib/python2.7/copy_reg.py", line 70, in _reduce_ex
    raise TypeError, "can't pickle %s objects" % base.__name__
TypeError: can't pickle instancemethod objects