/[glsr]/trunk/harmonious/utils.py
Gentoo

Contents of /trunk/harmonious/utils.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 91 - (hide annotations) (download) (as text)
Fri Jul 29 14:41:11 2005 UTC (7 years, 10 months ago) by port001
File MIME type: text/x-python
File size: 358 byte(s)
Persistent connections and threaded requests
1 port001 56 __id__ = '$Id$'
2     __modulename__ = 'utils'
3    
4     def html_escape(txt):
5    
6     txt = txt.replace('&', '&')
7     txt = txt.replace('<', '&lt;')
8     txt = txt.replace('>', '&gt;')
9     txt = txt.replace('"', '&quot;')
10    
11     return txt
12 port001 91
13     def default(method):
14    
15     method.default = True
16     return method
17    
18     def exposed(method):
19    
20     method.exposed = True
21     return method

Properties

Name Value
svn:keyword Id
svn:keywords Id

  ViewVC Help
Powered by ViewVC 1.1.20