Ignore:
Timestamp:
16/05/06 13:09:07 (14 years ago)
Author:
lawrence
Message:

Pretty sure this will have broken the browse,
but can't check at the moment. This is the first
commit that has live links to the security code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI07-MOLES/trunk/StubB/XSLT/browse/portal/cgi/stubB.py

    r911 r935  
    99from Utilities import * 
    1010from ServiceBinding import * 
    11          
    12 class AccessControl: 
    13          
    14         ''' Handle the access control metadata and provide three attributes of the  
    15         access control: exists (existence), status (modified elsewhere for whether 
    16         user can access data), and html (a message about the constraints). ''' 
    17          
    18         def __init__(self,e): 
    19                 if e is None: 
    20                         self.status=1 
    21                         self.exist=0 
    22                         self.html='' 
    23                 else: 
    24                         self.status=1 
    25                         self.exist=1 
    26                         self.html='constraints' 
     11from secure import AccessControl 
    2712         
    2813class Name: 
     
    171156                #so we don't need (or want) that in our xpath expressions. 
    172157                 
    173                 self.constraints=AccessControl(self.tree.find('dgMetadataRecord/dgMetadataSecurity')) 
     158                self.constraints=AccessControl(self.tree.find('dgMetadataSecurity')) 
    174159                self.abbreviation=wrapGetText(self.tree,'abbreviation') 
    175160                 
     
    233218                                <LINK media="all, screen" href="../layout/style.css" type="text/css" rel="stylesheet"/> 
    234219                        </head> '''+x.toHTML() 
    235         print y 
     220        f=file('output.html','w') 
     221        f.write(y) 
Note: See TracChangeset for help on using the changeset viewer.