Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
cf279519
Commit
cf279519
authored
May 26, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed cookie expiration dates in DTMLMethod.py and DA.py
parent
7c88f8ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
lib/python/OFS/DTMLMethod.py
lib/python/OFS/DTMLMethod.py
+3
-2
lib/python/Shared/DC/ZRDB/DA.py
lib/python/Shared/DC/ZRDB/DA.py
+6
-4
No files found.
lib/python/OFS/DTMLMethod.py
View file @
cf279519
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
##############################################################################
##############################################################################
"""DTML Method objects."""
"""DTML Method objects."""
__version__
=
'$Revision: 1.2
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
3
$'
[
11
:
-
2
]
from
Globals
import
HTML
,
HTMLFile
,
MessageDialog
from
Globals
import
HTML
,
HTMLFile
,
MessageDialog
from
string
import
join
,
split
,
strip
,
rfind
,
atoi
,
lower
from
string
import
join
,
split
,
strip
,
rfind
,
atoi
,
lower
...
@@ -94,6 +94,7 @@ from DocumentTemplate.DT_Util import cDocument
...
@@ -94,6 +94,7 @@ from DocumentTemplate.DT_Util import cDocument
from
PropertyManager
import
PropertyManager
from
PropertyManager
import
PropertyManager
from
AccessControl.Role
import
RoleManager
from
AccessControl.Role
import
RoleManager
from
webdav.common
import
rfc1123_date
from
webdav.common
import
rfc1123_date
from
DateTime.DateTime
import
DateTime
from
urllib
import
quote
from
urllib
import
quote
import
regex
,
Globals
,
sys
,
Acquisition
import
regex
,
Globals
,
sys
,
Acquisition
...
@@ -240,7 +241,7 @@ class DTMLMethod(cDocument, HTML, Acquisition.Implicit, RoleManager,
...
@@ -240,7 +241,7 @@ class DTMLMethod(cDocument, HTML, Acquisition.Implicit, RoleManager,
rows
=
max
(
1
,
atoi
(
dtpref_rows
)
+
dr
)
rows
=
max
(
1
,
atoi
(
dtpref_rows
)
+
dr
)
cols
=
max
(
40
,
atoi
(
dtpref_cols
)
+
dc
)
cols
=
max
(
40
,
atoi
(
dtpref_cols
)
+
dc
)
e
=
'Friday, 31-Dec-99 23:59:59 GMT'
e
=
(
DateTime
(
'GMT'
)
+
365
).
rfc822
()
resp
=
REQUEST
[
'RESPONSE'
]
resp
=
REQUEST
[
'RESPONSE'
]
resp
.
setCookie
(
'dtpref_rows'
,
str
(
rows
),
path
=
'/'
,
expires
=
e
)
resp
.
setCookie
(
'dtpref_rows'
,
str
(
rows
),
path
=
'/'
,
expires
=
e
)
resp
.
setCookie
(
'dtpref_cols'
,
str
(
cols
),
path
=
'/'
,
expires
=
e
)
resp
.
setCookie
(
'dtpref_cols'
,
str
(
cols
),
path
=
'/'
,
expires
=
e
)
...
...
lib/python/Shared/DC/ZRDB/DA.py
View file @
cf279519
...
@@ -85,11 +85,11 @@
...
@@ -85,11 +85,11 @@
__doc__
=
'''Generic Database adapter
__doc__
=
'''Generic Database adapter
$Id: DA.py,v 1.6
5 1999/03/25 16:07:43 jim
Exp $'''
$Id: DA.py,v 1.6
6 1999/05/26 13:35:55 brian
Exp $'''
__version__
=
'$Revision: 1.6
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.6
6
$'
[
11
:
-
2
]
import
OFS.SimpleItem
,
Aqueduct
,
RDB
import
OFS.SimpleItem
,
Aqueduct
,
RDB
import
DocumentTemplate
,
marshal
,
md5
,
base64
,
DateTime
,
Acquisition
,
os
import
DocumentTemplate
,
marshal
,
md5
,
base64
,
Acquisition
,
os
from
Aqueduct
import
decodestring
,
parse
from
Aqueduct
import
decodestring
,
parse
from
Aqueduct
import
custom_default_report
,
default_input_form
from
Aqueduct
import
custom_default_report
,
default_input_form
from
Globals
import
HTMLFile
,
MessageDialog
from
Globals
import
HTMLFile
,
MessageDialog
...
@@ -99,6 +99,7 @@ from string import atoi, find, join, split
...
@@ -99,6 +99,7 @@ from string import atoi, find, join, split
import
DocumentTemplate
,
sqlvar
,
sqltest
,
sqlgroup
import
DocumentTemplate
,
sqlvar
,
sqltest
,
sqlgroup
from
time
import
time
from
time
import
time
from
zlib
import
compress
,
decompress
from
zlib
import
compress
,
decompress
from
DateTime.DateTime
import
DateTime
md5new
=
md5
.
new
md5new
=
md5
.
new
import
ExtensionClass
import
ExtensionClass
import
DocumentTemplate.DT_Util
import
DocumentTemplate.DT_Util
...
@@ -106,6 +107,7 @@ from cPickle import dumps, loads
...
@@ -106,6 +107,7 @@ from cPickle import dumps, loads
from
Results
import
Results
from
Results
import
Results
from
App.Extensions
import
getBrain
from
App.Extensions
import
getBrain
try
:
from
IOBTree
import
Bucket
try
:
from
IOBTree
import
Bucket
except
:
Bucket
=
lambda
:{}
except
:
Bucket
=
lambda
:{}
...
@@ -177,7 +179,7 @@ class DA(
...
@@ -177,7 +179,7 @@ class DA(
rows
=
max
(
1
,
atoi
(
sql_pref__rows
)
+
dr
)
rows
=
max
(
1
,
atoi
(
sql_pref__rows
)
+
dr
)
cols
=
max
(
40
,
atoi
(
sql_pref__cols
)
+
dc
)
cols
=
max
(
40
,
atoi
(
sql_pref__cols
)
+
dc
)
e
=
'Friday, 31-Dec-99 23:59:59 GMT'
e
=
(
DateTime
(
'GMT'
)
+
365
).
rfc822
()
resp
=
REQUEST
[
'RESPONSE'
]
resp
=
REQUEST
[
'RESPONSE'
]
resp
.
setCookie
(
'sql_pref__rows'
,
str
(
rows
),
path
=
'/'
,
expires
=
e
)
resp
.
setCookie
(
'sql_pref__rows'
,
str
(
rows
),
path
=
'/'
,
expires
=
e
)
resp
.
setCookie
(
'sql_pref__cols'
,
str
(
cols
),
path
=
'/'
,
expires
=
e
)
resp
.
setCookie
(
'sql_pref__cols'
,
str
(
cols
),
path
=
'/'
,
expires
=
e
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment