Changeset 56:6eae48623b3b
- Timestamp:
- 12/13/06 08:24:01
(2 years ago)
- Author:
- Allan Saddi <allan@saddi.com>
- branch:
- default
- convert_revision:
- svn:46762da8-4eb7-0310-94e9-d918b60927c8/flup/trunk@2236
- Message:
Fix problem in session.py seen when optimization is on.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r54 |
r56 |
|
| | 1 | 2006-12-13 Allan Saddi <asaddi@sahara.flup.org> |
|---|
| | 2 | |
|---|
| | 3 | * Fix problem in session.py seen when optimization is on. |
|---|
| | 4 | |
|---|
| 1 | 5 | 2006-12-05 Allan Saddi <asaddi@sahara.flup.org> |
|---|
| 2 | 6 | |
|---|
| r51 |
r56 |
|
| 653 | 653 | |
|---|
| 654 | 654 | def _get_session(self): |
|---|
| 655 | | assert not self._closed |
|---|
| | 655 | if __debug__: assert not self._closed |
|---|
| 656 | 656 | if self._session is None: |
|---|
| 657 | 657 | self._session = self._store.createSession() |
|---|
| … | … | |
| 665 | 665 | |
|---|
| 666 | 666 | def _get_hasSession(self): |
|---|
| 667 | | assert not self._closed |
|---|
| | 667 | if __debug__: assert not self._closed |
|---|
| 668 | 668 | return self._session is not None |
|---|
| 669 | 669 | hasSession = property(_get_hasSession, None, None, |
|---|
| … | … | |
| 671 | 671 | |
|---|
| 672 | 672 | def _get_isSessionNew(self): |
|---|
| 673 | | assert not self._closed |
|---|
| | 673 | if __debug__: assert not self._closed |
|---|
| 674 | 674 | return self._newSession |
|---|
| 675 | 675 | isSessionNew = property(_get_isSessionNew, None, None, |
|---|
| … | … | |
| 678 | 678 | |
|---|
| 679 | 679 | def _get_hasSessionExpired(self): |
|---|
| 680 | | assert not self._closed |
|---|
| | 680 | if __debug__: assert not self._closed |
|---|
| 681 | 681 | return self._expired |
|---|
| 682 | 682 | hasSessionExpired = property(_get_hasSessionExpired, None, None, |
|---|
| … | … | |
| 688 | 688 | def encodeURL(self, url): |
|---|
| 689 | 689 | """Encodes session ID in URL, if necessary.""" |
|---|
| 690 | | assert not self._closed |
|---|
| | 690 | if __debug__: assert not self._closed |
|---|
| 691 | 691 | if not self.encodesSessionInURL or self._session is None: |
|---|
| 692 | 692 | return url |
|---|