The rest of the files for the last update.

This commit is contained in:
david 2002-08-04 01:26:13 +00:00
parent 219cc5366e
commit 0873d73726
25 changed files with 433 additions and 421 deletions

View File

@ -18,6 +18,10 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# NOTE: This script is intended to do the upgrade from the old LDPDB
# system into Lampadas. So, it has lots of special-purpose code.
# This file should not be included in any actual release of Lampadas.
#
from Globals import *
from Database import get_database
from BaseClasses import *
@ -398,6 +402,250 @@ def copy_documents():
lampadas_db.runsql(sql)
lampadas_db.commit()
# Add the extra files for documents that have more than one.
add_sourcefile(3, 'guide/docbook/abs-guide/add-drive.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/alias.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/allprofs.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/alt-bc.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/am-i-root.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/and-list3.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/and-or.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/arglist.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/arith-ops.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/arith-tests.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/array-function.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/assert.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/background-loop.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/badread.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/base.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/bashandperl.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/bashrc')
add_sourcefile(3, 'guide/docbook/abs-guide/behead.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/bin-grep.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/blank-rename.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/blot-out.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/break-levels.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/bubble.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/c-vars.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/case-cmd.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/col-totaler.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/col-totaler3.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/col.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/collatz.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/colm.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/commentblock.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/connect-stat.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/continue-nlevel.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/copy-cd.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/crypto-quote.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/csubloop.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/cvt.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/data-file')
add_sourcefile(3, 'guide/docbook/abs-guide/days-between.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/dd-keypress.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/de-rpm.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/du.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/empty-array.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/encryptedpw.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/erase.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/escaped.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex1.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex10.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex11.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex13.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex14.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex15.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex16.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex17.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex18.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex19.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex3.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex30.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex31.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex33.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex33a.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex34.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex35.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex36.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex36a.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex37.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex38.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex39.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex4.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex40.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex41.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex43.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex44.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex45.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex45a.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex46.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex47.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex48.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex49.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex5.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex50.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex51.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex53.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex54.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex55.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex56.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex57.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex58.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex59.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex6.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex60.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex61.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex63.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex64.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex65.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex66.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex67.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex68.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex69.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex7.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex70.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex71.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex71a.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex71b.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex71c.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex73.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex74.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex75.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex76.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex77.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex78.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex79.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex8.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ex9.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/factr.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/fifo.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/file-comparison.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/file-info.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/file-integrity.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/findstring.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/for-loopc.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/for-loopcmd.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ftpget.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/gcd.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/gen0')
add_sourcefile(3, 'guide/docbook/abs-guide/grp.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/here-function.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/hexconvert.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/hypotenuse.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/idelete.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ifs-empty.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ifs.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/incompat.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ind-ref.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/int-or-string.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/isalpha.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/keypress.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/kill-process.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/length.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/life.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/line-number.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/list-glob.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/logevents.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/lookup.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/lowercase.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/m4.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/mail-format.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/makedict.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/manview.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/match-string.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/max.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/max3.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/missing-keyword.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/monthlypmt.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/multiplication.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/names.data')
add_sourcefile(3, 'guide/docbook/abs-guide/nested-loop.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/numbers.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/obj-oriented.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/online.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/param-sub.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/patt-matching.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/pb.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/pid-identifier.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/primes.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/pw.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/q-function.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ramdisk.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/random-test.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/random3.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/read-novar.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/read-r.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/read-redir.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/realname.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/reassign-stdout.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/recurse.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/redir1.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/redir3.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/redir3a.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/redir4.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/redir4a.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/redir5.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/ref-params.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/reply.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/resistor-inventory.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/restricted.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/return-test.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/rfe.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/rn.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/rnd.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/rot13.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/rot13_3.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/rot14.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/rpm-check.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/script-detector.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/seconds.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/secret-pw.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/seeding-random.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/self-destruct.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/self-document.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/self-exec.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/self-mailer.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/set-pos.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/stack.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/str-test.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/string.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/strip-comments.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/stupid-script-tricks.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/subshell-pitfalls.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/subshell.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/substring-extraction.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/sum-product.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/symlinks.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/symlinks3.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/t-out.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/timed-input.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/timeout.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/tree.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/twodim.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/unalias.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/unset.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/upperconv.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/userlist.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/var-match.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/vartrace.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/viewdata.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/weirdvars.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/wf.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/wh-loopc.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/what.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/wipedir.sh')
add_sourcefile(3, 'guide/docbook/abs-guide/words.data')
add_sourcefile(3, 'guide/docbook/abs-guide/wstrings.sh')
def add_sourcefile(doc_id, filename):
sql = 'INSERT INTO sourcefile(filename) VALUES (' + wsq(filename) + ');'
if DEBUG > 0:
print sql
lampadas_db.runsql(sql)
sql = 'INSERT INTO document_file(doc_id, filename) VALUES (' + str(doc_id) + ', ' + wsq(filename) + ');'
if DEBUG > 0:
print sql
lampadas_db.runsql(sql)
def copy_document_users():
sql = 'SELECT doc_id, maintainer_id, role, active, email FROM document_maintainer'
@ -588,23 +836,28 @@ def update_globals():
def usage():
print """Usage: ldp-import [FROM] [TO]
print """Usage: ldp-import [FROM] [FROMHOST] [TO] [TOHOST]
FROM and TO are the names of two local databases.
FROMHOST and TOHOST are their hostnames.
FROM is an LDPDB database, and TO is a Lampadas database.
"""
sys.exit()
# Options passed on the command line
if len(sys.argv) <> 3:
if len(sys.argv) <> 5:
usage()
ldp_db_name = sys.argv[1]
lampadas_db_name = sys.argv[2]
ldp_db_host = sys.argv[2]
lampadas_db_name = sys.argv[3]
lampadas_db_host = sys.argv[4]
# Databas objects,
ldp_db = get_database('pgsql', ldp_db_name)
lampadas_db = get_database('pgsql', lampadas_db_name)
ldp_db = get_database('pgsql', ldp_db_name, ldp_db_host)
lampadas_db = get_database('pgsql', lampadas_db_name, lampadas_db_host)
# Collection objects to store user data while merging.
maintainers = OldMaintainers()

View File

@ -40,29 +40,6 @@ class StaticWriter:
page_codes = lampadasweb.pages.keys()
language_codes = lampadas.languages.keys()
# Write index.html file
page_html = '''
<html>
<body>
<table width="100%" height="100%">
<tr><td align="center">
'''
for language_code in language_codes:
language = lampadas.languages[language_code]
if language.supported > 0:
page_html += '<a href="home.' + language_code.lower() + '.html">' + language.name[language_code] + '</a><br>'
page_html += '''
</td></tr>
</table>
</body>
</html>
'''
fh = open('index.html', 'w')
fh.write(page_html)
fh.close()
for language_code in language_codes:
language = lampadas.languages[language_code]
if language.supported > 0:
@ -74,8 +51,15 @@ class StaticWriter:
if page.only_registered==1 or page.only_admin==1 or page.only_sysadmin==1:
continue
# Write index page
if page_code=='index':
url = page_code + lang_ext + '.html'
self.write_url(page, url)
url = page_code + '.html'
self.write_url(page, url)
# Write topic pages
if page_code=='topic':
elif page_code=='topic':
if os.access('topic', os.F_OK)==0:
os.mkdir('topic')

View File

@ -18,6 +18,9 @@ dbtype = pgsql
#
dbname = lampadas
# Hostname of the Lampadas database
#
dbhost = db.example.com
[LOG]

View File

@ -19,8 +19,10 @@
Order allow,deny
Allow from all
DirectoryIndex index.html
AddDefaultCharset utf-8
</Location>
Alias /css /home/david/ldp/cvs/LDP/lampadas/www/css
Alias /images /home/david/ldp/cvs/LDP/lampadas/www/images
</VirtualHost>

View File

@ -20,11 +20,12 @@
PythonHandler ModPython
PythonAutoReload On
PythonDebug On
AddDefaultCharset utf-8
Order allow,deny
Allow from all
RewriteEngine on
RewriteRule ^$ /home.html [R]
RewriteRule ^/$ /home.html [R]
RewriteRule ^$ /index.html [R]
RewriteRule ^/$ /index.html [R]
</Directory>
Alias /data /home/david/ldp/cvs/LDP/lampadas/pylib/data
@ -34,6 +35,7 @@
SetHandler python-program
PythonHandler mod_python.publisher
PythonDebug On
AddDefaultCharset utf-8
Order allow,deny
Allow from all
</Location>
@ -47,14 +49,14 @@
DirectoryIndex index.html
</Location>
Alias /images /var/cache/lampadas/www/images
Alias /images /home/david/ldp/cvs/LDP/lampadas/www/images
<Location /images>
AllowOverride None
Order allow,deny
Allow from all
</Location>
Alias /css /var/cache/lampadas/www/css
Alias /css /home/david/ldp/cvs/LDP/lampadas/www/css
<Location /css>
AllowOverride None
Order allow,deny

View File

@ -18,6 +18,7 @@ output-xml: yes
doctype: omit
break-before-br: yes
enclose-text: yes
char-encoding: utf8
new-empty-tags:
new-inline-tags: emphasis

View File

@ -1,11 +1,28 @@
insert([blkhead],
[
<head>
<title>|title|</title>
<link rel="stylesheet" href="|uri.base|css/ldp.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
])
insert([blklogo],
[
<table class="logo">
<tr>
<td valign="middle">
LOGO
</td>
</tr>
</table>
])
insert([blkheader],
[
<table class="header" width="100%">
<tr>
<td class="logo" width="250">
LOGO
</td>
<td align="center">
<td>
<h1>|strproject|</h1>
<h2>|title|</h2>
</td>
@ -17,7 +34,7 @@ insert([blkfooter],
[
<table class="footer" width="100%">
<tr>
<td align="center">
<td>
<a href="|uri.base|copyright|uri.lang_ext|">|strcopyright|</a> \\|
<a href="|uri.base|privacy|uri.lang_ext|">|strprivacy|</a> \\|
<a href="|uri.base|lampadas|uri.lang_ext|">|strabout_lamp|</a>
@ -27,6 +44,8 @@ insert([blkfooter],
<center>
<a href="http://www.python.org"><img src="|uri.base|images/PythonPowered.gif" alt="Python Powered!"></a>
<a href="http://www.opensource.org"><img src="http://www.opensource.org/trademarks/osi-certified/web/osi-certified-90x75.png" height=75 width=90 alt="OSI Certified"></a>
<a href="http://www.gnome.org"><img src="|uri.base|images/gnome2.png" height="48" width="48" alt="Gnome"></a>
<a href="http://www.tldp.org"><img src="|uri.base|images/ldp.gif" height="60" width="150" alt="TLDP"></a>
<br>|strrender_time|: |elapsed_time|
</center>
])
@ -57,15 +76,15 @@ insert([blknotfound],
insert([blkdocument_tabs],
[
<table>
<table class="tab">
<tr>
<th><a href="|uri.base|document_main/|uri.id||uri.lang_ext|">|strdetails|</a></th>
<th><a href="|uri.base|document_files/|uri.id||uri.lang_ext|">|strfiles|</a></th>
<th><a href="|uri.base|document_revs/|uri.id||uri.lang_ext|">|strversions|</a></th>
<th><a href="|uri.base|document_topics/|uri.id||uri.lang_ext|">|strtopics|</a></th>
<th><a href="|uri.base|document_users/|uri.id||uri.lang_ext|">|strusers|</a></th>
<th><a href="|uri.base|document_notes/|uri.id||uri.lang_ext|">|strnotes|</a></th>
<th><a href="|uri.base|document/|uri.id||uri.lang_ext|">|strall|</a></th>
<td><a href="|uri.base|document_main/|uri.id||uri.lang_ext|">|strdetails|</a></td>
<td><a href="|uri.base|document_files/|uri.id||uri.lang_ext|">|strfiles|</a></td>
<td><a href="|uri.base|document_revs/|uri.id||uri.lang_ext|">|strversions|</a></td>
<td><a href="|uri.base|document_topics/|uri.id||uri.lang_ext|">|strtopics|</a></td>
<td><a href="|uri.base|document_users/|uri.id||uri.lang_ext|">|strusers|</a></td>
<td><a href="|uri.base|document_notes/|uri.id||uri.lang_ext|">|strnotes|</a></td>
<td><a href="|uri.base|document/|uri.id||uri.lang_ext|">|strall|</a></td>
</tr>
</table>
])

View File

@ -16,3 +16,6 @@ insert(5,
insert(6,
[Datei nicht lesbar],
[Die Datei existiert, Lampadas kann aber nicht davon lesen.])
insert(7,
[Cannot determine file format],
[Lampadas cannot determine what format this file is stored in, so it cannot be published.])

View File

@ -16,4 +16,6 @@ insert(5,
insert(6,
[File not readable],
[The file exists, but Lampadas cannot read it.])
insert(7,
[Cannot determine file format],
[Lampadas cannot determine what format this file is stored in, so it cannot be published.])

View File

@ -16,4 +16,6 @@ insert(5,
insert(6,
[Fichier illisible],
[Ce fichier existe, mais est illisible.])
insert(7,
[Cannot determine file format],
[Lampadas cannot determine what format this file is stored in, so it cannot be published.])

View File

@ -8,9 +8,10 @@ insert(errors, default, admin, 3, [], t,
insert(sessions, default, sysadmin, 1, [], t, f, f, t)
insert(home, index, main, 1, [], f, f, f, f)
insert(doctable, default, main, 2, [], f, f, f, f)
insert(search, default, main, 3, [], t, f, f, f)
insert(index, splash, main, 1, [], f, f, f, f)
insert(home, index, main, 2, [], f, f, f, f)
insert(doctable, default, main, 3, [], f, f, f, f)
insert(search, default, main, 4, [], t, f, f, f)
insert(news, default, news, 1, [], f, f, f, f)
@ -33,13 +34,13 @@ insert(newuser, default, [], 0, [], t,
insert(mailpass, default, [], 0, [], t, f, f, f)
insert(topic, default, [], 0, [topic], t, f, f, f)
insert(subtopic, default, [], 0, [subtopic], t, f, f, f)
insert(document, default, [], 0, [doc], t, f, f, f)
insert(document_main, default, [], 0, [doc], t, f, f, f)
insert(document_files, default, [], 0, [doc], t, f, f, f)
insert(document_users, default, [], 0, [doc], t, f, f, f)
insert(document_revs, default, [], 0, [doc], t, f, f, f)
insert(document_topics, default, [], 0, [doc], t, f, f, f)
insert(document_notes, default, [], 0, [doc], t, f, f, f)
insert(document, default, [], 0, [doc], t, t, f, f)
insert(document_main, default, [], 0, [doc], t, t, f, f)
insert(document_files, default, [], 0, [doc], t, t, f, f)
insert(document_users, default, [], 0, [doc], t, t, f, f)
insert(document_revs, default, [], 0, [doc], t, t, f, f)
insert(document_topics, default, [], 0, [doc], t, t, f, f)
insert(document_notes, default, [], 0, [doc], t, t, f, f)
insert(404, default, [], 0, [], t, f, f, f)
insert(user_exists, default, [], 0, [], t, f, f, f)
insert(username_required, default, [], 0, [], t, f, f, f)
@ -49,5 +50,5 @@ insert(password_mailed, default, [], 0, [], t,
insert(logged_in, default, [], 0, [], t, f, f, f)
insert(logged_out, default, [], 0, [], t, f, f, f)
insert(type, default, [], 0, [type], t, f, f, f)
insert(sourcefile, default, [], 0, [filename], t, f, f, f)
insert(file_report, default, [], 0, [report filename], t, f, f, f)
insert(sourcefile, default, [], 0, [filename], t, t, f, f)
insert(file_report, default, [], 0, [report filename], t, t, f, f)

View File

@ -6,6 +6,11 @@ m4_dnl it in translations when the translation is up to date.
m4_dnl "menu_name" is the short name of the page, which is
m4_dnl typically listed in sidebar menus.
insert([index], [|strproject|], [Splash Page],
[
|tabsplashlanguages|
], 0)
insert([newdocument], [Dokument hinzufügen], [],
[
|tabeditdoc|

View File

@ -3,6 +3,11 @@ m4_dnl The last field is the version number. Please bump it
m4_dnl by one if you're the primary author, and synchronize
m4_dnl it in translations when the translation is up to date.
insert([index], [|strproject|], [Splash Page],
[
|tabsplashlanguages|
], 1)
insert([newdocument], [Add Document], [],
[
|tabeditdoc|
@ -21,11 +26,11 @@ insert([sessions], [User Sessions], [],
insert([my], [My Home], [],
[
<p>This is your personal home page.
<p>This is your personal home page.</p>
<p>This table lists documents you have volunteered to contribute to:
<p>This table lists documents you have volunteered to contribute to:</p>
<p>|session_user_docs|
<p>|session_user_docs|</p>
], 1)
insert([home], [|strproject|], [Home],
@ -97,7 +102,7 @@ insert([staff], [Staff], [],
insert([contribute], [Contributing to |strproject|], [Contributing to |strprojectshort|],
[
As a member of this Lampadas community, you can collaborate with
<p>As a member of this Lampadas community, you can collaborate with
hundreds or even thousands of others to produce documentation,
which can then be shared with others all around the world over the
Web.

View File

@ -3,6 +3,11 @@ m4_dnl The last field is the version number. Please bump it
m4_dnl by one if you're the primary author, and synchronize
m4_dnl it in translations when the translation is up to date.
insert([index], [|strproject|], [Splash Page],
[
|tabsplashlanguages|
], 0)
insert([newdocument], [Add Document], [],
[
|tabeditdoc|

View File

@ -1,3 +1,4 @@
insert(strwelcometo)
insert(strproject)
insert(strprojectshort)
insert(strhome)

View File

@ -1,5 +1,6 @@
insert(strproject, [PROJEKT])
insert(strprojectshort, [PROJ])
insert(strwelcometo, [Willkommen zu])
insert(strproject, [Lampadas])
insert(strprojectshort, [Lampadas])
insert(strhome, [Inhaltsverzeichnis])
insert(strdoctable, [DocTable])
insert(strdocdetails, [Details])

View File

@ -1,5 +1,6 @@
insert(strproject, [PROJECT])
insert(strprojectshort, [PROJ])
insert(strwelcometo, [Welcome to])
insert(strproject, [Lampadas])
insert(strprojectshort, [Lampadas])
insert(strhome, [Home])
insert(strdoctable, [DocTable])
insert(strdocdetails, [Document Details])

View File

@ -1,5 +1,6 @@
insert(strproject, [PROJECT])
insert(strprojectshort, [PROJ])
insert(strwelcometo, [Bienvenue à])
insert(strproject, [Lampadas])
insert(strprojectshort, [Lampadas])
insert(strhome, [Racine])
insert(strdoctable, [Table des documents])
insert(strdocdetails, [D&eacute;tails du Document])

View File

@ -1,23 +1,71 @@
insert(splash,
[
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
|blkhead|
<body>
|body|
</body>
</html>
])
insert(index,
[
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
|blkhead|
<body>
<table class="layout" width="100%">
<tr>
<td class="sidebarleft">
|blklogo|
</td>
<td class="body" width="100%" colspan="2">
|blkheader|
</td>
</tr>
<tr>
<td class="sidebarleft" valign="top">
|navmenus|
<p>|navtopics|
<p>|navtypes|
<p>|navlanguages|
</td>
<td class="body" width="100%" valign="top">
|body|
</td>
<td class="sidebarright" valign="top">
|navlogin|
<p>|navsessions|
</td>
</tr>
<tr>
<td colspan="3">
|blkfooter|
</td>
</tr>
</table>
</body>
</html>
])
insert(default,
[
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>|title|</title>
<link rel="stylesheet" href="|uri.base|css/|stylesheet|.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
|blkhead|
<body>
<table class="layout" width="100%">
<tr>
<td>
<td class="sidebarleft">
|blklogo|
</td>
<td class="body" width="100%">
|blkheader|
</td>
</tr>
</table>
<table class="layout" width="100%">
<tr>
<td class="sidebarleft" valign="top" width="250">
<td class="sidebarleft" valign="top">
|navmenus|
<p>|navtopics|
<p>|navtypes|
@ -27,8 +75,6 @@ insert(default,
|body|
</td>
</tr>
</table>
<table class="layout" width="100%">
<tr>
<td>
|blkfooter|
@ -39,47 +85,3 @@ insert(default,
</html>
])
insert(index,
[
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>|title|</title>
<link rel="stylesheet" href="|uri.base|css/|stylesheet|.css" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<table class="layout" width="100%">
<tr>
<td>
|blkheader|
</td>
</tr>
</table>
<table class="layout" width="100%">
<tr>
<td class="sidebarleft" valign="top" width="250">
|navmenus|
<p>|navtopics|
<p>|navtypes|
<p>|navlanguages|
</td>
<td class="body" width="100%" valign="top">
|body|
</td>
<td class="sidebarright" valign="top" width="250">
|navlogin|
<p>|navsessions|
</td>
</tr>
</table>
<table class="layout" width="100%">
<tr>
<td>
|blkfooter|
</td>
</tr>
</table>
</body>
</html>
])

View File

@ -655,7 +655,7 @@ they are built.
Pages and strings can be localized. Templates and Blocks contain only HTML and do
not require localization. Tables and Widgets embed strings which are localized.
Graphic images and css stylesheets do not require localization.
Graphic images and CSS stylesheets do not require localization.
==Building Dynamic Pages|building-pages==
@ -773,7 +773,7 @@ or perhaps some configuration value. In the example, the tokens "title", "base"
and "stylesheet" are meta-data tokens.
The "title" token is replaced by the title of the page,
appropriately localized. The "base" token is replaced by the website's base
URL. The "stylesheet" token is replaced by the user's preferred css stylesheet.
URL. The "stylesheet" token is replaced by the user's preferred CSS stylesheet.
The meta-data tokens are written right into the Lampadas code.
@ -1110,9 +1110,9 @@ will be appear in the static website.
=CSS Stylesheets=
The appearance of a Lampadas page is configured in a Cascading Stylesheet. A set
of default stylesheets is included in the default Lampadas install, and a site
administrator can add to or modify them.
The appearance of a Lampadas page is configured in a Cascading Stylesheet.
A set of default stylesheets is included in the default Lampadas install,
and a site administrator can add to or modify them.
CSS can modify the appearance of base HTML elements, such as table cells and so on,
and the following classes are also provided:
@ -1130,6 +1130,12 @@ TD.baron a bar graph cell, when lit
TD.baroff a bar graph cell, when unlit
</programlisting>
Because Lampadas pages must display well in console browsers or without a stylesheet
available, some appearance issues are handled through embedded style statements
rather than in an external stylesheet. These include all alignment and width
instructions used in page layout. Use the CSS for fonts, colors, backgrounds and other
decorative issues, but not for page layout.
=Website API|api=

View File

@ -1,291 +0,0 @@
BODY {
color: black;
background-color: tan;
font-family: helvetica;
font-size: 12pt;
margin: 5;
}
TABLE.layout {
width:100%;
}
TABLE.header {
width: 100%;
border: solid brown;
border-width: 2;
background-color: tan;
font-size: 14pt;
text-align: center;
}
TABLE.navbox {
width: 100%;
border: solid brown;
border-width: 2;
background-color: tan;
font-size: 10pt;
}
TABLE.box {
width: 100%;
border: solid brown;
border-width: 2;
background-color: tan;
font-size: 12pt;
}
TABLE.footer {
width: 100%;
border: solid brown;
border-width: 2;
background-color: tan;
font-size: 10pt;
text-align: center;
font-weight: bold;
}
TABLE.bargraph {
border-width: 0;
padding: 0;
}
TH {
color: white;
background-color: brown;
vertical-align: top;
font-size: 12pt;
}
.box .label {
text-align: right;
vertical-align: top;
font-size: 12pt;
font-style: bold;
color: brown;
background: transparent;
}
.box .collabel {
text-align: left;
color: brown;
background: transparent;
vertical-align: bottom;
font: 11pt bold;
}
.box .sectionlabel {
padding-top: 20;
vertical-align: bottom;
text-align: center;
font-size: 11pt;
font-weight: bold;
}
TD {
vertical-align: top;
}
TD.logo {
width: 250;
text-align: center;
vertical-align: middle;
font-weight: bold;
font-size: 20pt;
margin: 0;
padding-right: 10;
}
TD.sidebarleft {
width: 250;
margin: 0;
padding-right: 10;
}
TD.sidebarright {
width: 250;
margin: 0;
padding-left: 10;
}
TABLE.tab {
background-color: brown;
}
.tab TD {
border: solid brown;
border-width: 0;
padding-left: 15;
padding-right: 15;
margin-left: 10;
border-bottom: 0;
font-size: 12pt;
font-weight: bold;
background-color: tan;
color: black;
}
.tab A {
text-decoration: none;
color: white;
}
.navbox TD {
padding-left: 5;
padding-right: 5;
font-size: 10pt;
}
TD.body {
}
TD.error {
color: red;
}
TD.baron {
background-color: red;
padding: 0;
}
TD.baroff {
background-color: black;
padding: 0;
}
H1 {
color: brown;
font-family: times;
font-size: 18pt;
font-weight: bold;
font-variant: small-caps;
}
.header H1 {
font-size: 20pt;
}
H2 {
color: brown;
font-size: 15pt;
font-weight: bold;
}
.header H2 {
font-size: 16pt;
}
H3 {
color: black;
font-family: times;
font-size: 14pt;
font-weight: bold;
}
H4 {
color: brown;
font-family: times;
font-size: 13pt;
font-weight: bold;
}
BLOCKQUOTE {
font-size: 12pt;
font-weight: bold;
}
HR {
color: brown;
border-top: solid brown;
border-width: 3;
}
A:link { color: brown }
A:active { color: brown }
A:visited { color: brown }
A:hover {
text-decoration: none;
color: white;
background: brown;
}
.box TH A:link { color: white }
.box TH A:active { color: white }
.box TH A:visited { color: white }
.box TH A:hover {
text-decoration: none;
color: white;
background: brown;
}
.box TD A:link { color: black }
.box TD A:active { color: black }
.box TD A:visited { color: black }
.box TD A:hover {
text-decoration: none;
color: white;
background: brown;
}
.navbox TD A:link { color: black }
.navbox TD A:active { color: black }
.navbox TD A:visited { color: black }
.navbox TD A:hover {
text-decoration: none;
color: white;
background: brown;
}
IMG {
border-width: 0;
}
/*
Splash Page
*/
DIV.map { /* Reserve some room for the links */
padding-top: 289px;
padding-bottom: 50px;
margin-left: -4%;
margin-right: 5em;
width: 80%;
margin-bottom: 4em;
margin-top: 5em;
clear: both;
text-shadow: 0.2em 0.2em /* 0.2em */ silver;
background-color: white;
border-color: black;
border: solid black;
border-width: 5;
}
DIV.map A { text-decoration: none; }
#p1, #p2, #p3, #p4, #p5, #p6, #p7, #p8, #p9, #p10 {white-space: nowrap;}
#p1, #p2, #p3, #p4, #p5, #p6, #p7, #p8, #p9, #p10 {text-indent: 0}
#p1 A, #p2 A, #p3 A, #p4 A, #p5 A, #p6 A, #p7 A, #p8 A, #p9 A, #p10 A {}
#p1, #p1 A {color: #1870aa; background-color: #003355; font: bold 100px/1 "Impact", "Helvetica Narrow", sans-serif; }
#p2, #p2 A {color: orange; font: bold italic 40px/1 "Georgia", serif}
#p3, #p3 A {color: red; font: bold 40px/1 "Verdana", sans-serif}
#p4, #p4 A {color: blue; font: bold italic 60px/1 "Zapf Chancery", "itc Bookman", "Bookman", "Chevara", monospace}
#p5, #p5 A {color: yellow; font: bold 100px/1 "Verdana", sans-serif}
#p6, #p6 A {color: black; font: bold 25px/1 "Verdana", sans-serif}
#p7, #p7 A {color: #088; font: italic 80px/1 "Verdana", sans-serif}
#p8, #p8 A {color: #088; font: italic 20px/1 "Verdana", sans-serif}
#p9, #p9 A {color: #088; font: italic 20px/1 "Verdana", sans-serif}
#p10, #p10 A {color: #F73; font: bold 60px/1 "Verdana", sans-serif}
/* top rt btm */
#p1 {text-align: center; margin: -185px 0% 85px 30%} /* top right */
#p2 {text-align: left; border: solid orange; border-width: 0 0 5 15; padding: 0 0 0 5; margin: -170px 60% 150px 5%} /* top left */
#p3 {text-align: right; border: dotted red; border-width: 0 7 0 0; padding: 0 5 0 0; margin: -87px 50% 47px 0%} /* center */
#p4 {text-align: right; margin: -85px 5% 58px 0} /* center right */
#p5 {text-align: left; margin: -130px 0 30px 0} /* center left */
#p6 {text-align: left; margin: -40px 0 15px 35%} /* bottom center */
#p7 {text-align: right; margin: -80px 0 0px 0} /* bottom right */
#p8 {text-align: left; margin: -40px 0 20px 3%} /* bottom left */
#p9 {text-align: right; margin: -25px 0 5px 0} /* bottom right */
#p10 {text-align: left; margin: -130px 0 70px 0} /* center left */

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

@ -27,4 +27,6 @@
of multiple HTML files, those templates or parameters could be
entered here. -->
<xsl:param name="chunk.quietly" select="1"/>
</xsl:stylesheet>

View File

@ -69,6 +69,8 @@
single line. -->
<xsl:param name="admon.graphics.path">images/</xsl:param>
<xsl:param name="chunk.quietly" select="1"/>
<!-- Make funcsynopsis look pretty -->
<xsl:param name="funcsynopsis.decoration" select="1" doc:type="boolean"/>