comparison roundup/cgi/templating.py @ 1513:455f79a2981f

add access to real db through HTML db
author Richard Jones <richard@users.sourceforge.net>
date Thu, 13 Mar 2003 11:06:25 +0000
parents 06863714a9f7
children bb843662b708
comparison
equal deleted inserted replaced
1512:9b93d140b8e6 1513:455f79a2981f
196 class HTMLDatabase: 196 class HTMLDatabase:
197 ''' Return HTMLClasses for valid class fetches 197 ''' Return HTMLClasses for valid class fetches
198 ''' 198 '''
199 def __init__(self, client): 199 def __init__(self, client):
200 self._client = client 200 self._client = client
201 self._db = client.db
201 202
202 # we want config to be exposed 203 # we want config to be exposed
203 self.config = client.db.config 204 self.config = client.db.config
204 205
205 def __getitem__(self, item, desre=re.compile(r'(?P<cl>\w+)(?P<id>[-\d]+)')): 206 def __getitem__(self, item, desre=re.compile(r'(?P<cl>\w+)(?P<id>[-\d]+)')):

Roundup Issue Tracker: http://roundup-tracker.org/