summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 82e7fed)
raw | patch | inline | side by side (parent: 82e7fed)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 5 Sep 2002 01:27:42 +0000 (01:27 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Thu, 5 Sep 2002 01:27:42 +0000 (01:27 +0000) |
only render the content of the page, and not the surrounding "page"
template.
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1070 57a73879-2fb5-44c3-a270-3262357dd7e2
template.
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1070 57a73879-2fb5-44c3-a270-3262357dd7e2
TODO.txt | patch | blob | history | |
doc/upgrading.txt | patch | blob | history | |
roundup/cgi/client.py | patch | blob | history | |
roundup/cgi/templating.py | patch | blob | history |
diff --git a/TODO.txt b/TODO.txt
index 53ae244981aa55ecb69069b3d357ca4b138006ce..05405ceea4376697e2e93008fb73581bd5005949 100644 (file)
--- a/TODO.txt
+++ b/TODO.txt
[value, value, ...] implies "in"
pending hyperdb: make creator, creation and activity available pre-commit
pending hyperdb: migrate "id" property to be Number type
-pending instance: including much simpler upgrade path and the use of
- non-Python configuration files (ConfigParser)
pending instance: split instance.open() into open() and login()
pending instance: rename to "instance" to "tracker"
pending mailgw: allow commands (feature request #556996)
pending project: have the demo allow anonymous login
pending security: at least an LDAP user database implementation
pending security: authenticate over a secure connection
+pending security: optionally auth with Basic HTTP auth instead of cookies
pending security: use digital signatures in mailgw
pending security: submission protection
pending web: I18N
- add a drop-down with all queries which fills form with selected
query values
pending web: have roundup.cgi pick up instance config from the environment
+pending web: UNIX init.d script for roundup-server
New templating TODO:
. rewritten documentation (can come after the beta though so stuff is settled)
active web: title is stoopid
active hyperdb: full-text searching doesn't appear to match stuff in titles,
even though they're supposed to be indexed...
-active web: UNIX init.d script for roundup-server
ongoing: any bugs
+rejected instance: the use of non-Python configuration files (ConfigParser)
done web: Re-enable link backrefs from messages (feature request #568714) (RJ)
done web: have the page layout (header/footer) be templatable (RJ)
done web: fixing the templating so it works (RJ)
done web: handle "not found", access and item page render errors better (RJ)
done web: fix double-submit by having new-item-submit redirect at end (RJ)
done web: daemonify roundup-server (fork, logfile, pidfile)
-
diff --git a/doc/upgrading.txt b/doc/upgrading.txt
index 562f54b53ea3a431dd29f9bb4a4f333e6c119c47..6620e6a111779f433ca4e50b2eb6b8e2a2c89c66 100644 (file)
--- a/doc/upgrading.txt
+++ b/doc/upgrading.txt
# WARNING: DO NOT EDIT THIS FILE!!!
from roundup.backends.back_anydbm import Database, Class, FileClass, IssueClass
+Yes, I realise the irony of the "DO NOT EDIT THIS FILE" statement :)
Note the addition of the Class, FileClass, IssueClass imports. These are very
important, as they're going to make the next change work too. You now need to
modify the top of the dbinit module in your instance from::
diff --git a/roundup/cgi/client.py b/roundup/cgi/client.py
index a9443765c1c6bfc7479336cd1b97021457bb20f4..a486d273bc52d57f1bd062a61782aa92e704f94e 100644 (file)
--- a/roundup/cgi/client.py
+++ b/roundup/cgi/client.py
-# $Id: client.py,v 1.11 2002-09-04 04:31:51 richard Exp $
+# $Id: client.py,v 1.12 2002-09-05 01:27:42 richard Exp $
__doc__ = """
WWW request handler (also used in the stand-alone server).
# self.classname and self.template)
self.handle_action()
# now render the page
- self.write(self.renderTemplate('page', '', ok_message=self.ok_message,
- error_message=self.error_message))
+ if self.form.has_key(':contentonly'):
+ # just the content
+ self.write(self.content())
+ else:
+ # render the content inside the page template
+ self.write(self.renderTemplate('page', '',
+ ok_message=self.ok_message,
+ error_message=self.error_message))
except Redirect, url:
# let's redirect - if the url isn't None, then we need to do
# the headers, otherwise the headers have been set before the
index d7afb83a559c1e3a929fc898827aa552e07fd538..1d9bedf239b479b644647c3826821150143ed76e 100644 (file)
height. The popup window will be resizable and scrollable.
'''
return '<a href="javascript:help_window(\'%s?:template=help&' \
- 'properties=%s\', \'%s\', \'%s\')"><b>(%s)</b></a>'%(self.classname,
- properties, width, height, label)
+ ':contentonly=1&properties=%s\', \'%s\', \'%s\')"><b>'\
+ '(%s)</b></a>'%(self.classname, properties, width, height, label)
def submit(self, label="Submit New Entry"):
''' Generate a submit button (and action hidden element)