change option name for tarball generation from `tarball' to `allow_tar'.

git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@158 8cb11bc2-c004-0410-86c3-e597b4017df7
remotes/tags/V0_7
akr 2001-04-28 10:38:16 +00:00
parent f34424ca20
commit 4cb1282b70
3 changed files with 5 additions and 5 deletions

View File

@ -1340,7 +1340,7 @@ def view_directory(request):
html_option(tag, view_tag)
print '</select><input type=submit value="Go"></form>'
if cfg.options.tarball:
if cfg.options.allow_tar:
url = os.path.basename(where) + '.tar.gz?tarball=1'
query = sticky_query(query_dict)
if query:
@ -2426,7 +2426,7 @@ def main():
elif full_name[-5:] == '.diff' and os.path.isfile(full_name[:-5] + ',v') \
and query_dict.has_key('r1') and query_dict.has_key('r2'):
view_diff(request, full_name[:-5])
elif cfg.options.tarball \
elif cfg.options.allow_tar \
and full_name[-7:] == '.tar.gz' and query_dict.has_key('tarball'):
download_tarball(request)
else:

View File

@ -437,8 +437,8 @@ disable_enscript_lang =
#
# ViewCVS can generate tarball from a repository on the fly.
#
tarball = 0
# tarball = 1
allow_tar = 0
# allow_tar = 1
#---------------------------------------------------------------------------
[vhosts]

View File

@ -189,7 +189,7 @@ class Config:
self.options.use_enscript = 0
self.options.enscript_path = ''
self.options.disable_enscript_lang = ()
self.options.tarball = 0
self.options.allow_tar = 0
self.text.long_intro = """\
<p>