Mercurial > p > roundup > code
diff roundup/templates/classic/interfaces.py @ 143:fd20d16ae81e
Changes to reflect cgi_client now implementing classic by default...
...and not "extended".
| author | Richard Jones <richard@users.sourceforge.net> |
|---|---|
| date | Mon, 30 Jul 2001 01:25:57 +0000 |
| parents | 0791d13baea7 |
| children | d45384bc6420 |
line wrap: on
line diff
--- a/roundup/templates/classic/interfaces.py Mon Jul 30 01:25:07 2001 +0000 +++ b/roundup/templates/classic/interfaces.py Mon Jul 30 01:25:57 2001 +0000 @@ -1,4 +1,4 @@ -# $Id: interfaces.py,v 1.3 2001-07-29 07:01:39 richard Exp $ +# $Id: interfaces.py,v 1.4 2001-07-30 01:25:57 richard Exp $ import urlparse, os @@ -11,36 +11,6 @@ ''' TEMPLATES = instance_config.TEMPLATES - default_index_sort = ['-activity'] - default_index_group = ['priority'] - default_index_filter = [] - default_index_columns = ['id','activity','title','status','assignedto'] - default_index_filterspec = {'status': ['1', '2', '3', '4', '5', '6', '7']} - - def pagehead(self, title, message=None): - url = self.env['SCRIPT_NAME'] + '/' #self.env.get('PATH_INFO', '/') - machine = self.env['SERVER_NAME'] - port = self.env['SERVER_PORT'] - if port != '80': machine = machine + ':' + port - base = urlparse.urlunparse(('http', machine, url, None, None, None)) - if message is not None: - message = '<div class="system-msg">%s</div>'%message - else: - message = '' - style = open(os.path.join(self.TEMPLATES, 'style.css')).read() - userid = self.db.user.lookup(self.user) - self.write('''<html><head> -<title>%s</title> -<style type="text/css">%s</style> -</head> -<body bgcolor=#ffffff> -%s -<table width=100%% border=0 cellspacing=0 cellpadding=2> -<tr class="location-bar"><td><big><strong>%s</strong></big> -(login: <a href="user%s">%s</a>)</td></tr> -</table> -'''%(title, style, message, title, userid, self.user)) - class MailGW(mailgw.MailGW): ''' derives basic mail gateway implementation from the standard module, with any specific extensions @@ -51,6 +21,9 @@ # # $Log: not supported by cvs2svn $ +# Revision 1.3 2001/07/29 07:01:39 richard +# Added vim command to all source so that we don't get no steenkin' tabs :) +# # Revision 1.2 2001/07/29 04:07:37 richard # Fixed the classic template so it's more like the "advertised" Roundup # template.
