Revision: | 1.3 |
Committed: | Tue Mar 13 23:08:36 2007 UTC (18 years, 1 month ago) by eulisse |
Content type: | text/x-python |
Branch: | MAIN |
CVS Tags: | V00-08-00, V00-07-09, V00-07-08, V00-07-07, V00-07-06, V00-07-05, V00-07-04, V00-07-03, V00-07-02, V00-07-01, V00-07-00, gePreProdManagerSupport, V00-06-08, V00-06-07, V00-06-06, V00-06-05, V00-06-04, V00-06-03, V00-06-02, V00-06-01, V00-06-00, V00-05-15, V00-05-14, V00-05-13, V00-05-11, V00-05-10, V00-05-09, V00-05-08, V00-05-07, V00-05-06, V00-05-05, V00-05-04, V00-05-03, V00-05-02, V00-05-01, V00-05-00, V00-04-22, V00-04-21, V00-04-20, V00-04-19, V00-04-18, V00-04-17, V00-04-16, V00-04-15, V00-04-14, V00-04-13, V00-04-12, V00-04-11, V00-04-10, HEAD |
Changes since 1.2: | +2 -2 lines |
Log Message: | * Controllers now all get the context percolated from above. This allows Controllers writer to have shared resources without the need to explicitly name which. This will become useful once SiteDB will be in place, for example for the OptionParser (which must known about all the possible options before it can start to parse them). |
# | Content |
---|---|
1 | from Framework import Controller |
2 | from Framework import webmethod |
3 | from os import listdir |
4 | |
5 | class Common (Controller): |
6 | def __init__ (self, context): |
7 | Controller.__init__ (self, context) |
8 | f = file ("Applications/common.css") |
9 | self.commonStyle = f.read () |
10 | print self.commonStyle |
11 | |
12 | def style (self): |
13 | return self.commonStyle |
14 | style.exposed=True |
15 |