Commit 504eb57c authored by Jim Fulton's avatar Jim Fulton

The last thing I did was stupid.

parent b24b3d41
"""Document object"""
__version__='$Revision: 1.52 $'[11:-2]
__version__='$Revision: 1.53 $'[11:-2]
from Globals import HTML, HTMLFile, MessageDialog
from string import join,split,strip,rfind,atoi,lower
......@@ -58,7 +58,7 @@ class Document(cDocumentTemplate.cDocument, HTML, Explicit,
r={}
state_name=self._state_name
for k, v in self.__dict__.items():
if state_name(k) or k[-11:]=='_Permission':
if state_name(k) or k[-11:]=='_Permission' or k[-9:]=="__roles__":
r[k]=v
return r
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment