~ubuntu-branches/ubuntu/karmic/libapache2-mod-python/karmic-updates

« back to all changes in this revision

Viewing changes to test/httpdconf.py

  • Committer: Bazaar Package Importer
  • Author(s): Piotr Ozarowski
  • Date: 2007-02-21 18:24:29 UTC
  • mfrom: (1.1.8 feisty)
  • Revision ID: james.westby@ubuntu.com-20070221182429-9okop7e0qpi24l85
Tags: 3.2.10-4
* Added XS-Vcs-Svn field
* Removed "db_purge" part from libapache2-mod-python.postrm
  (dh_installdebconf is generating a rule that will not fail if debconf is
  already removed)
* Added initial Spanish debconf translation from Manuel Porras Peralta.
  (closes: #411235)
* Added initial Portuguese debconf translation from Pedro Ribeiro.
  (closes: #411742)
* Added initial Galician debconf translation from Jacobo Tarrio.
  (closes: #411831)

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
 # implied.  See the License for the specific language governing
14
14
 # permissions and limitations under the License.
15
15
 #
16
 
 # $Id: httpdconf.py,v 1.10 2004/02/16 19:49:15 grisha Exp $
 
16
 # $Id: httpdconf.py 383365 2006-03-05 18:40:22Z jgallacher $
17
17
 #
18
18
 # Config maker, a la HTMLGen. This could grow into something useful.
19
19
 #
37
37
class Container:
38
38
    
39
39
    def __init__(self, *args):
40
 
        self.args = args
 
40
        self.args = list(args)
41
41
        self.indent = 0
 
42
    
 
43
    def append(self, value):
 
44
        self.args.append(value)
42
45
 
43
46
    def __str__(self):
44
47
 
80
83
    def __init__(self, val):
81
84
        Directive.__init__(self, self.__class__.__name__, val)
82
85
 
 
86
class AuthBasicAuthoritative(Directive):
 
87
    # New in Apache 2.2
 
88
    def __init__(self, val):
 
89
        Directive.__init__(self, self.__class__.__name__, val)
 
90
 
 
91
class AuthBasicProvider(Directive):
 
92
    # New in Apache 2.2
 
93
    def __init__(self, val):
 
94
        Directive.__init__(self, self.__class__.__name__, val)
 
95
 
83
96
class AuthType(Directive):
84
97
    def __init__(self, val):
85
98
        Directive.__init__(self, self.__class__.__name__, val)
112
125
    def __init__(self, dir, *args):
113
126
        ContainerTag.__init__(self, self.__class__.__name__, dir, args)
114
127
 
 
128
class KeepAliveTimeout(Directive):
 
129
    def __init__(self, val):
 
130
        Directive.__init__(self, self.__class__.__name__, val)
 
131
 
115
132
class Listen(Directive):
116
133
    def __init__(self, val):
117
134
        Directive.__init__(self, self.__class__.__name__, val)
130
147
 
131
148
class LockFile(Directive):
132
149
    def __init__(self, val):
133
 
        Directive.__init__(self, self.__class__.__name__, val)
 
150
        import sys
 
151
        if sys.platform!='win32':
 
152
            Directive.__init__(self, self.__class__.__name__, val)
 
153
        else:
 
154
            Directive.__init__(self, '#'+self.__class__.__name__, val)
134
155
 
135
156
class MaxClients(Directive):
136
157
    def __init__(self, val):
252
273
    def __init__(self, val):
253
274
        Directive.__init__(self, self.__class__.__name__, val)
254
275
 
 
276
class PythonInterpPerDirectory(Directive):
 
277
    def __init__(self, val='Off'):
 
278
        Directive.__init__(self, self.__class__.__name__, val)
 
279
 
 
280
class PythonInterpPerDirective(Directive):
 
281
    def __init__(self, val='Off'):
 
282
        Directive.__init__(self, self.__class__.__name__, val)
 
283
 
255
284
class VirtualHost(ContainerTag):
256
285
    def __init__(self, addr, *args):
257
286
        ContainerTag.__init__(self, self.__class__.__name__, addr, args)