~tristanstraub/globenet/trunk

« back to all changes in this revision

Viewing changes to globenet/test.py

  • Committer: tristan
  • Date: 2008-08-10 11:24:48 UTC
  • Revision ID: tristan@tristan-desktop-20080810112448-lyt3lu1qfr0nimid
cleaned up decorators

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
                logging.debug('@logfunc:%s,%s' % (cls,f))
31
31
 
32
32
        class Test(object):
 
33
                @logfunc()
 
34
                @logfunc()
33
35
                @loggedin(isadmin='apples')
34
36
                @loggedin(isadmin='oranges')
35
37
                @dummy()
 
38
                @dummy()
 
39
                @wrap('<body>%s</body>')
36
40
                @wrap('<div>%s</div>')
37
41
                @template('wrapped.html')
38
 
                @logfunc()
39
42
                def index(self):
40
43
                        return ['i am content','are you content?', {'data':'test'}]
41
44