Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Traceback (most recent call last):
- File "/usr/local/lib/python3.2/dist-packages/SQLAlchemy-0.7.5-py3.2.egg/sqlalchemy/engine/base.py", line 1597, in _execute_context
- conn = self.__connection
- AttributeError: 'Connection' object has no attribute '_Connection__connection'
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/local/lib/python3.2/dist-packages/SQLAlchemy-0.7.5-py3.2.egg/sqlalchemy/engine/base.py", line 1599, in _execute_context
- conn = self._revalidate_connection()
- File "/usr/local/lib/python3.2/dist-packages/SQLAlchemy-0.7.5-py3.2.egg/sqlalchemy/engine/base.py", line 1023, in _revalidate_connection
- raise exc.ResourceClosedError("This Connection is closed")
- sqlalchemy.exc.ResourceClosedError: This Connection is closed
- The above exception was the direct cause of the following exception:
- Traceback (most recent call last):
- File "/usr/local/lib/python3.2/dist-packages/cherrypy/_cprequest.py", line 656, in respond
- response.body = self.handler()
- File "/usr/local/lib/python3.2/dist-packages/cherrypy/lib/encoding.py", line 188, in __call__
- self.body = self.oldhandler(*args, **kwargs)
- File "/usr/local/lib/python3.2/dist-packages/cherrypy/_cpdispatch.py", line 34, in __call__
- return self.callable(*self.args, **self.kwargs)
- File "/project/trunk/lib/server.py", line 138, in __call__
- return json.dumps(result, cls = JsonEncoder).encode('utf-8')
- File "/usr/lib/python3.2/json/__init__.py", line 233, in dumps
- **kw).encode(obj)
- File "/usr/lib/python3.2/json/encoder.py", line 188, in encode
- chunks = self.iterencode(o, _one_shot=True)
- File "/usr/lib/python3.2/json/encoder.py", line 246, in iterencode
- return _iterencode(o, 0)
- File "/project/trunk/lib/server.py", line 44, in default
- return obj.jsonencode()
- File "/project/trunk/model/__init__.py", line 324, in jsonencode
- result[attrname] = getattr(self, attrname, None)
- File "/project/trunk/model/__init__.py", line 215, in __getattr__
- result = lazygetter()
- File "/project/trunk/model/sale.py", line 48, in get_description
- return self.load_item('sale.getTags', tagTypeName = 'manufacturer')
- File "/project/trunk/lib/db/__init__.py", line 438, in load_item
- return self.db.invoke(*args, **kwargs).fetchone()[0]
- File "/project/trunk/lib/db/__init__.py", line 216, in invoke
- result = self.conn.execute(query, **kwargs)
- File "/usr/local/lib/python3.2/dist-packages/SQLAlchemy-0.7.5-py3.2.egg/sqlalchemy/engine/base.py", line 1405, in execute
- params)
- File "/usr/local/lib/python3.2/dist-packages/SQLAlchemy-0.7.5-py3.2.egg/sqlalchemy/engine/base.py", line 1582, in _execute_text
- statement, parameters
- File "/usr/local/lib/python3.2/dist-packages/SQLAlchemy-0.7.5-py3.2.egg/sqlalchemy/engine/base.py", line 1605, in _execute_context
- None, None)
- File "/usr/local/lib/python3.2/dist-packages/SQLAlchemy-0.7.5-py3.2.egg/sqlalchemy/engine/base.py", line 1783, in _handle_dbapi_exception
- from e
- sqlalchemy.exc.StatementError: This Connection is closed (original cause: sqlalchemy.exc.ResourceClosedError: This Connection is closed) 'select "sale"."getTags"("pTagTypeName" := %(tagTypeName)s);' [{'tagTypeName': 'manufacturer'}]
Add Comment
Please, Sign In to add comment