source: TI01-discovery/trunk/OAIInfoEditor/oai_info_editor/dal/interfaceeditordbclient.py @ 5226

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI01-discovery/trunk/OAIInfoEditor/oai_info_editor/dal/interfaceeditordbclient.py@5226
Revision 5226, 1.7 KB checked in by cbyrom, 11 years ago (diff)

Initial check in of code for the OAI Info Editor pylons based web app.

This includes basic controllers for viewing provider info - with the
associated repository info. Also included is the model and dal layer,
allowing the provider info to be processed and imported/exported to
XML file. Unit tests for the dal and model packages are included.
Templates for rendering provider and repository info are included.

  • Property svn:executable set to *
Line 
1'''
2 Interface for clients providing data access for the web app editor
3 
4 @author: C Byrom, Tessella Apr 2009
5'''
6
7class InterfaceEditorDataClient(object):
8
9       
10    def createProviderInfo(self, providerInfo):
11        '''
12        Create a new change request in DB
13        @param providerInfo: ProviderInfo object with which to create the new
14        provider info record
15        @return ProviderInfo, fileName: object with any new data from the creation in + filename
16        '''
17        raise NotImplementedError("This is an interface class and this method has not " + \
18                                  "been implemented yet")
19   
20   
21    def updateProviderInfo(self, providerInfo):
22        '''
23        Update the input ProviderInfo
24        @param providerInfo: ProviderInfo object to update
25        @return ProviderInfo object with the updated data in
26        '''
27        raise NotImplementedError("This is an interface class and this method has not " + \
28                                  "been implemented yet")
29       
30       
31    def deleteProviderInfo(self, providerInfo):
32        '''
33        Delete the input ProviderInfo data
34        @param providerInfo: ProviderInfo object to delete
35        @return True if successful, False otherwise
36        '''
37        raise NotImplementedError("This is an interface class and this method has not " + \
38                                  "been implemented yet")
39 
40    def getProviderInfo(self, providerInfoName):
41        '''
42        Get the provider info details for the specified name
43        @param providerInfoName: name of the provider info to retrieve
44        '''
45        raise NotImplementedError("This is an interface class and this method has not " + \
46                                  "been implemented yet")
Note: See TracBrowser for help on using the repository browser.