Changeset 697

Show
Ignore:
Timestamp:
04/23/06 04:02:06 (2 years ago)
Author:
pacopablo
Message:

TraciStanPlugin:

  • Slowly working around HDF and stan incompatiblities
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tracistanplugin/0.10/example/aftracistan/aftracistan/status.py

    r695 r697  
    2323    def process_request(self, req): 
    2424        add_stylesheet(req, 'aftracistan/css/aftracistan.css') 
    25         req.standata = { 'name': 'Pacopablo', 
     25        req.standata.update({ 'name': 'Pacopablo', 
    2626                 'message' : 'Hello vatos!', 
    2727                 'title' : 'Pyrus', 
    28                } 
     28               }) 
    2929        return ('index.stan', None) 
    3030 
  • tracistanplugin/0.10/stan/stansupport.py

    r696 r697  
    3333from nevow import tags as T 
    3434 
     35from nevow import accessors, inevow 
     36#from zope.interface import implements, Interface 
     37from twisted.python.components import registerAdapter 
     38 
    3539try: 
    3640    import tidy 
     
    5357 
    5458    def __getattr__(self, key): 
     59        print "__getattr__: %s returns None" % key 
    5560        return None 
     61registerAdapter(accessors.ObjectContainer, DataVars, inevow.IContainer) 
    5662 
    5763class IStanRequestHandler(Interface): 
     
    295301    # IRequestHandler methods 
    296302    def match_request(self, req): 
    297         self.log.debug('IStanRequestHandlers:\n') 
    298         [self.log.debug('  Stan Request Handler   : %s\n' % type(x).__name__) 
     303        self.log.debug('IStanRequestHandlers:') 
     304        [self.log.debug('  Stan Request Handler   : %s' % type(x).__name__) 
    299305             for x in self.stanreqhandlers] 
    300306        for handler in self.stanreqhandlers: