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
fc1e20da
Commit
fc1e20da
authored
Jun 24, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed state names hacks - Hooray!!
parent
d639279a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
20 deletions
+1
-20
lib/python/DocumentTemplate/DT_String.py
lib/python/DocumentTemplate/DT_String.py
+1
-20
No files found.
lib/python/DocumentTemplate/DT_String.py
View file @
fc1e20da
...
...
@@ -82,7 +82,7 @@
# attributions are listed in the accompanying credits file.
#
##############################################################################
"$Id: DT_String.py,v 1.2
6 1999/04/20 04:00:35 amos
Exp $"
"$Id: DT_String.py,v 1.2
7 1999/06/24 20:21:20 brian
Exp $"
from
string
import
split
,
strip
import
regex
,
ts_regex
...
...
@@ -386,22 +386,6 @@ class String:
self.globals=vars
self._vars={}
__state_names__=('raw', 'globals', '__name__', '_vars')
def __getstate__(self):
r={}
for k in self.__state_names__:
try: r[k]=getattr(self,k)
except: pass
return r
def __setstate__(self,s,hack=('',{},'<string>',{},'')):
try:
for k in s.keys(): self.__dict__[k]=s[k]
except:
self.raw,self.globals,self.__dict__['name'],self._vars,dummy=(
s+hack[len(s)-len(hack):])
def __call__(self,client=None,mapping={},**kw):
'''
\
Generate a document from a document template.
...
...
@@ -524,9 +508,6 @@ class String:
class FileMixin:
# Mix-in class to abstract certain file-related attributes
edited_source=''
__state_names__=(
String.__state_names__ +
('edited_source',))
def __init__(self, file_name='', mapping=None, __name__='', **vars):
"""
\
...
...
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