summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3e236cb)
raw | patch | inline | side by side (parent: 3e236cb)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 12 Mar 2002 22:52:26 +0000 (22:52 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Tue, 12 Mar 2002 22:52:26 +0000 (22:52 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@669 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/cgi_client.py | patch | blob | history | |
roundup/hyperdb.py | patch | blob | history |
diff --git a/roundup/cgi_client.py b/roundup/cgi_client.py
index aeb5fd64e50b34e9f6c7c5197b2f0899be85bdba..a79f86a32adff3421795bbc63c4fb6e7f7bb51f0 100644 (file)
--- a/roundup/cgi_client.py
+++ b/roundup/cgi_client.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: cgi_client.py,v 1.111 2002-02-25 04:32:21 richard Exp $
+# $Id: cgi_client.py,v 1.112 2002-03-12 22:52:26 richard Exp $
__doc__ = """
WWW request handler (also used in the stand-alone server).
"""
-import os, cgi, pprint, StringIO, urlparse, re, traceback, mimetypes
+import os, cgi, StringIO, urlparse, re, traceback, mimetypes
import binascii, Cookie, time, random
import roundupdb, htmltemplate, date, hyperdb, password
def getuid(self):
return self.db.user.lookup(self.user)
- def header(self, headers={'Content-Type':'text/html'}):
+ def header(self, headers=None):
'''Put up the appropriate header.
'''
+ if headers is None:
+ headers = {'Content-Type':'text/html'}
if not headers.has_key('Content-Type'):
headers['Content-Type'] = 'text/html'
self.request.send_response(200)
#
# $Log: not supported by cvs2svn $
+# Revision 1.111 2002/02/25 04:32:21 richard
+# ahem
+#
# Revision 1.110 2002/02/21 07:19:08 richard
# ... and label, width and height control for extra flavour!
#
diff --git a/roundup/hyperdb.py b/roundup/hyperdb.py
index 9aa575ac63813004cce38c19c62f53cf26501a31..3d3c97bbae48ce7552b9f6de5ec83bbead7ef603 100644 (file)
--- a/roundup/hyperdb.py
+++ b/roundup/hyperdb.py
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
#
-# $Id: hyperdb.py,v 1.58 2002-02-27 03:23:16 richard Exp $
+# $Id: hyperdb.py,v 1.59 2002-03-12 22:52:26 richard Exp $
__doc__ = """
Hyperdatabase implementation, especially field types.
class String:
"""An object designating a String property."""
def __repr__(self):
+ ' more useful for dumps '
return '<%s>'%self.__class__
class Password:
"""An object designating a Password property."""
def __repr__(self):
+ ' more useful for dumps '
return '<%s>'%self.__class__
class Date:
"""An object designating a Date property."""
def __repr__(self):
+ ' more useful for dumps '
return '<%s>'%self.__class__
class Interval:
"""An object designating an Interval property."""
def __repr__(self):
+ ' more useful for dumps '
return '<%s>'%self.__class__
class Link:
"""An object designating a Link property that links to a
node in a specified class."""
def __init__(self, classname, do_journal='no'):
+ ''' Default is to not journal link and unlink events
+ '''
self.classname = classname
self.do_journal = do_journal == 'yes'
def __repr__(self):
+ ' more useful for dumps '
return '<%s to "%s">'%(self.__class__, self.classname)
class Multilink:
'link' and 'unlink' events placed in their journal
"""
def __init__(self, classname, do_journal='no'):
+ ''' Default is to not journal link and unlink events
+ '''
self.classname = classname
self.do_journal = do_journal == 'yes'
def __repr__(self):
+ ' more useful for dumps '
return '<%s to "%s">'%(self.__class__, self.classname)
class DatabaseError(ValueError):
+ '''Error to be raised when there is some problem in the database code
+ '''
pass
db.addclass(self)
def __repr__(self):
+ '''Slightly more useful representation
+ '''
return '<hypderdb.Class "%s">'%self.classname
# Editing nodes:
raise ValueError, key
self.properties.update(properties)
-
# XXX not in spec
class Node:
''' A convenience wrapper for the given node
#
# $Log: not supported by cvs2svn $
+# Revision 1.58 2002/02/27 03:23:16 richard
+# Ran it through pychecker, made fixes
+#
# Revision 1.57 2002/02/20 05:23:24 richard
# Didn't accomodate new values for new properties
#