start cvslog page, needs to be finished still but I'm goin' to a cookout!

This commit is contained in:
david 2002-07-04 20:35:35 +00:00
parent df7686ca05
commit 0f36eae60f
7 changed files with 89 additions and 40 deletions

View File

@ -4,18 +4,15 @@
-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-
PENDING:
Write a Makefile to install Lampadas onto a fresh system. Also let `make test`
run the unit tests, and `make clean` remove any installation. `make tar` and
other build targets would be nice, too.
-- wrote Makefiles, but no test target yet
TODO:
Guylhem wants to be able to flag a document, "maintainers needed", even if it
is maintained but the maintainer needs or wants help. (David)
Add "primary" field to document_file to know which is the topmost file.
Move templates out of regular document table. They aren't regular documents.
Provide a set of entities that will be available to authors, including the text
of licenses in DocBook XML/SGML, etc. This will make it easy for an author to
make a doc under a certain license, automatically.
We need a cron job that runs nightly and stores statistics into the stats and
stats_cdf tables. This should be a Python module (Stats.py), which deletes
@ -34,38 +31,18 @@ be passed in through all the Add methods.
Remember the number of times a user has logged on, and when they last logged
on, and maybe even their IP address in case of DoS or other attacks by a user.
Improve the security system so that instead of single boolean fields to get
permissions (e.g., the admin and sysadmin fields), each user can be assigned
a role which comes with a set of permissions. This will allow more fine-
grained control over permissions, so admins can customize them to fit their
particular organizational needs.
Make sure that email addresses are spam-protected everywhere they display on
the website!
Add a table of programs, maybe from the Debian repository and/or Red Hat
and/or the rpmfind.net database. Then let people record what applications
a document covers. So, a document could be listed as a "User's Guide", and
also tagged with the application "mutt". Then the system knows by meta-data
that the document is a user's guide to mutt.
Allow users to record the distribution they are using, and let them browse
through only the documentation that applies to that distribution, as a kind
of a filter. Applying filters could be a very powerful way to search the
database, especially once it gets up into the thousands of documents.
the website! Put this in the Developer's Guide; it's policy.
Allow users to tag documents as their "Favorites", so they can come back
and find them again quickly and easily.
Add the capability to merge in the entire contents of the server's
ScrollKeeper database, automatically. That would make it a piece of cake
to publish the Gnome and KDE documentation, which is already available
there, with a minimum of maintenance.
Allow users to "request to be notified" when a document is updated.
This will be particularly useful for translators, but others could
find it useful as well.
Provide CVS log for a document upon request, for owners only.
IBM wants to write a CQS module for Lampadas, but we need to define a search
API implemented in a URL scheme for them to code against. This is pretty
high priority because it will give us a huge amount of visibility and help
@ -77,10 +54,13 @@ but would require top level objects to do the loading.
Need to devise set of error messages and add them to Lintadas.
Add support for the W3C core CSS styles, if possible.
Block table should not include language support -- use only for HTML blocks
with embedded tokens.
PENDING:
Write a Makefile to install Lampadas onto a fresh system. Also let `make test`
run the unit tests, and `make clean` remove any installation. `make tar` and
other build targets would be nice, too.
-- wrote Makefiles, but no test target yet
DONE:
@ -93,8 +73,46 @@ referring records in document_topic.
made renumbering easy.
Write manpage.
-- done.
-- done DCM.
Need combobox for selecting seriesid for a document.
-- done.
-- done DCM.
Guylhem wants to be able to flag a document, "maintainers needed", even if it
is maintained but the maintainer needs or wants help. (David)
-- done 2002-07-04 DCM.
Block table should not include language support -- use only for HTML blocks
with embedded tokens.
-- done 2002-07-04 DCM.
WISHLIST:
These are pie-in-the-sky ideas, many won't pan out. They won't be in the
initial release.
Add a table of programs, maybe from the Debian repository and/or Red Hat
and/or the rpmfind.net database. Then let people record what applications
a document covers. So, a document could be listed as a "User's Guide", and
also tagged with the application "mutt". Then the system knows by meta-data
that the document is a user's guide to mutt.
Allow users to record the distribution they are using, and let them browse
through only the documentation that applies to that distribution, as a kind
of a filter. Applying filters could be a very powerful way to search the
database, especially once it gets up into the thousands of documents.
Add the capability to merge in the entire contents of the server's
ScrollKeeper database, automatically. That would make it a piece of cake
to publish the Gnome and KDE documentation, which is already available
there, with a minimum of maintenance.
Add support for the W3C core CSS styles, if possible.
Improve the security system so that instead of single boolean fields to get
permissions (e.g., the admin and sysadmin fields), each user can be assigned
a role which comes with a set of permissions. This will allow more fine-
grained control over permissions, so admins can customize them to fit their
particular organizational needs.

View File

@ -29,4 +29,4 @@ insert(user, default, none, 0, f, f, f)
insert(logged_in, default, none, 0, f, f, f)
insert(logged_out, default, none, 0, f, f, f)
insert(type, default, none, 0, f, f, f)
insert(cvslog, default, none, 0, f, f, f)

View File

@ -296,3 +296,8 @@ insert([type], [|type.name|], [],
|tabtypedocs|
])
insert([cvslog], [CVS Log], [],
[
|tabcvslog|
])

View File

@ -296,3 +296,8 @@ insert([type], [|type.name|], [],
|tabtypedocs|
])
insert([cvslog], [CVS Log], [],
[
|tabcvslog|
])

View File

@ -185,3 +185,9 @@ insert([type], [|type.name|], [],
[
|tabtypedocs|
])
insert([cvslog], [CVS Log], [],
[
|tabcvslog|
])

View File

@ -343,6 +343,19 @@ class TableFactory:
return box
def cvslog(self, uri):
doc = lampadas.Docs[uri.id]
box = '<table class="box">\n'
box = box + '<tr><th>|strcvslog|</th></tr>\n'
box = box + '<tr><td>\n'
cvsdir = config.cvs_root + str(doc.id)
# FIXME: finish this.
box = box + '</td></tr>\n'
box = box + '</table>\n'
return box
def user(self, uri):
box = '<table class="box">\n'
if uri.username > '':
@ -699,6 +712,8 @@ class PageFactory:
newstring = self.tablef.doctable(uri, build_user)
if token=='tabeditdoc':
newstring = self.tablef.doc(uri)
if token=='tabcvslog':
newstring = self.tablef.cvslog(uri)
if token=='tabuser':
newstring = self.tablef.user(uri)
if token=='tabmenus':

View File

@ -99,7 +99,7 @@ class URI:
# contain an object and display its attributes.
#
if len(temp) > 0:
if temp[0]=='editdoc':
if temp[0]=='editdoc' or temp[0]=='cvslog':
self.filename = temp[0]
temp = temp[1:]
if len(temp) > 0: