Comments (1)
@@rename view, changing only the title (all went fine):
(Pdb) request._index_list
[(<Document 28 at /it/mip1>, 1)]
(Pdb) w
/Users/.../python-dev/lib/python2.7/site-packages/waitress/task.py(74)handler_thread()
-> task.service()
/Users/.../python-dev/lib/python2.7/site-packages/waitress/channel.py(337)service()
-> task.service()
/Users/.../python-dev/lib/python2.7/site-packages/waitress/task.py(173)service()
-> self.execute()
/Users/.../python-dev/lib/python2.7/site-packages/waitress/task.py(392)execute()
-> app_iter = self.channel.server.application(env, start_response)
/Users/.../python-dev/lib/python2.7/site-packages/fanstatic/publisher.py(219)__call__()
-> return self.app(environ, start_response)
/Users/.../python-dev/lib/python2.7/site-packages/fanstatic/injector.py(64)__call__()
-> response = request.get_response(self.app)
/Users/.../python-dev/lib/python2.7/site-packages/webob/request.py(1320)send()
-> application, catch_exc_info=False)
/Users/.../python-dev/lib/python2.7/site-packages/webob/request.py(1284)call_application()
-> app_iter = application(self.environ, start_response)
/Users/.../python-dev/lib/python2.7/site-packages/pyramid/router.py(242)__call__()
-> response = self.invoke_subrequest(request, use_tweens=True)
/Users/.../python-dev/lib/python2.7/site-packages/pyramid/router.py(217)invoke_subrequest()
-> response = handle_request(request)
/Users/.../python-dev/lib/python2.7/site-packages/pyramid_debugtoolbar/toolbar.py(178)toolbar_tween()
-> response = _handler(request)
/Users/.../python-dev/lib/python2.7/site-packages/pyramid_debugtoolbar/panels/performance.py(57)resource_timer_handler()
-> result = handler(request)
/Users/.../python-dev/lib/python2.7/site-packages/pyramid/tweens.py(21)excview_tween()
-> response = handler(request)
/Users/.../python-dev/lib/python2.7/site-packages/pyramid_tm/__init__.py(83)tm_tween()
-> manager.commit()
/Users/.../python-dev/lib/python2.7/site-packages/transaction/_manager.py(111)commit()
-> return self.get().commit()
/Users/.../python-dev/lib/python2.7/site-packages/transaction/_transaction.py(271)commit()
-> self._commitResources()
/Users/.../python-dev/lib/python2.7/site-packages/transaction/_transaction.py(394)_commitResources()
-> rm.tpc_vote(self)
/Users/.../python-dev/lib/python2.7/site-packages/zope/sqlalchemy/datamanager.py(103)tpc_vote()
-> self.tx.commit()
/Users/.../python-dev/lib/python2.7/site-packages/sqlalchemy/orm/session.py(384)commit()
-> self.session.dispatch.after_commit(self.session)
/Users/.../python-dev/lib/python2.7/site-packages/sqlalchemy/event/attr.py(221)__call__()
-> fn(*args, **kw)
> /Users/.../python-dev/src/kotti-es/kotti_es/events.py(43)_after_commit()
Trying to rename the object id (error):
(Pdb) w
/Users/.../python-dev/lib/python2.7/site-packages/waitress/task.py(74)handler_thread()
-> task.service()
/Users/.../python-dev/lib/python2.7/site-packages/waitress/channel.py(337)service()
-> task.service()
/Users/.../python-dev/lib/python2.7/site-packages/waitress/task.py(173)service()
-> self.execute()
/Users/.../python-dev/lib/python2.7/site-packages/waitress/task.py(392)execute()
-> app_iter = self.channel.server.application(env, start_response)
/Users/.../python-dev/lib/python2.7/site-packages/fanstatic/publisher.py(219)__call__()
-> return self.app(environ, start_response)
/Users/.../python-dev/lib/python2.7/site-packages/fanstatic/injector.py(64)__call__()
-> response = request.get_response(self.app)
/Users/.../python-dev/lib/python2.7/site-packages/webob/request.py(1320)send()
-> application, catch_exc_info=False)
/Users/.../python-dev/lib/python2.7/site-packages/webob/request.py(1284)call_application()
-> app_iter = application(self.environ, start_response)
/Users/.../python-dev/lib/python2.7/site-packages/pyramid/router.py(242)__call__()
-> response = self.invoke_subrequest(request, use_tweens=True)
/Users/.../python-dev/lib/python2.7/site-packages/pyramid/router.py(217)invoke_subrequest()
-> response = handle_request(request)
/Users/.../python-dev/lib/python2.7/site-packages/pyramid_debugtoolbar/toolbar.py(178)toolbar_tween()
-> response = _handler(request)
/Users/.../python-dev/lib/python2.7/site-packages/pyramid_debugtoolbar/panels/performance.py(57)resource_timer_handler()
-> result = handler(request)
/Users/.../python-dev/lib/python2.7/site-packages/pyramid/tweens.py(21)excview_tween()
-> response = handler(request)
/Users/.../python-dev/lib/python2.7/site-packages/pyramid_tm/__init__.py(83)tm_tween()
-> manager.commit()
/Users/.../python-dev/lib/python2.7/site-packages/transaction/_manager.py(111)commit()
-> return self.get().commit()
/Users/.../python-dev/lib/python2.7/site-packages/transaction/_transaction.py(271)commit()
-> self._commitResources()
/Users/.../python-dev/lib/python2.7/site-packages/transaction/_transaction.py(394)_commitResources()
-> rm.tpc_vote(self)
/Users/.../python-dev/lib/python2.7/site-packages/zope/sqlalchemy/datamanager.py(103)tpc_vote()
-> self.tx.commit()
/Users/.../python-dev/lib/python2.7/site-packages/sqlalchemy/orm/session.py(384)commit()
-> self.session.dispatch.after_commit(self.session)
/Users/.../python-dev/lib/python2.7/site-packages/sqlalchemy/event/attr.py(221)__call__()
-> fn(*args, **kw)
> /Users/.../python-dev/src/kotti-es/kotti_es/events.py(44)_after_commit()
-> index_list = getattr(request, '_index_list', [])
(Pdb) request._index_list
*** InvalidRequestError: This session is in 'committed' state; no further SQL can be emitted within this transaction.
from kotti_es.
Related Issues (20)
- Add support for asynchronous indexing
- console scripts (rebuild_es and clear_rebuild_es)
- blacklist types
- add example elastic search installation HOT 1
- Add travisCI support HOT 2
- Add test coverage badge
- Fix insert/delete tests
- Refactor two-phase indexing HOT 1
- Fix our custom kotti.search_content HOT 1
- Files indexing HOT 2
- Add language to indexer
- Add tags to indexer
- Fix tests with real databases HOT 3
- Add workflow state
- Enable ACL indexing
- Fix folder rename
- Partial update indexing
- Improve README file
- pyramid_es status
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kotti_es.