Ignore:
Timestamp:
10/02/12 13:39:16 (8 years ago)
Author:
mnagni
Message:

New ea_model library.
No more use the django.forms. Now uses JSON and Dojo(javascript)
DB creation files are now executed as standard python function (before was used a system execution call)
Added an html example to play/work offline with DOJO

Location:
mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/maintenance_information
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/maintenance_information/md_maintenancefrequencycode.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    2023 
    2124''' 
    22 Created on 06-Feb-2012 15:59:47 
     25Created on 10-Feb-2012 12:03:16 
    2326 
    2427@author: mnagni 
     
    3235        This class has been genererated automatically using the Apache Velocity project. 
    3336    ''' 
    34     cl_notplanned = "notPlanned"  
    35     cl_monthly = "monthly"  
    36     cl_continual = "continual"  
    37     cl_fortnightly = "fortnightly"  
     37    cl_quarterly = "quarterly"  
    3838    cl_irregular = "irregular"  
    39     cl_daily = "daily"  
    40     cl_quarterly = "quarterly"  
    41     cl_asneeded = "asNeeded"  
    42     cl_biannually = "biannually"  
    4339    cl_unknown = "unknown"  
    4440    cl_weekly = "weekly"  
     41    cl_daily = "daily"  
     42    cl_fortnightly = "fortnightly"  
     43    cl_monthly = "monthly"  
     44    cl_biannually = "biannually"  
    4545    cl_annually = "annually"  
     46    cl_notplanned = "notPlanned"  
     47    cl_continual = "continual"  
     48    cl_asneeded = "asNeeded"  
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/maintenance_information/md_maintenanceinformation.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    1922 
    2023''' 
    21 Created on 06-Feb-2012 15:59:38 
     24Created on 10-Feb-2012 12:03:13 
    2225 
    2326@author: mnagni 
     
    3942        self.maintenanceNote = [] 
    4043        self.updateScope = [] 
     44        self.contact = [] 
    4145        self.userDefinedMaintenanceFrequency = None 
    42         self.contact = [] 
    4346        self.maintenanceAndUpdateFrequency = None 
    4447        self.updateScopeDescription = [] 
     
    4649        super(MD_MaintenanceInformation, self).__init__() 
    4750 
     51    def __key(self): 
     52        return (self.maintenanceNote, self.updateScope, self.contact, self.userDefinedMaintenanceFrequency, self.maintenanceAndUpdateFrequency, self.updateScopeDescription, self.dateOfNextUpdate) 
    4853 
    49  
    50  
    51  
    52  
    53  
    54  
    55  
    56  
    57  
    58  
    59  
    60  
    61  
    62     def __key(self): 
    63         return (self.maintenanceNote, self.updateScope, self.userDefinedMaintenanceFrequency, self.contact, self.maintenanceAndUpdateFrequency, self.updateScopeDescription, self.dateOfNextUpdate) 
    64  
    65     def __eq__(x, y): 
     54    def __eq__(self, y): 
    6655        ''' 
    6756        Cannot compare classes which do not define a "__key" attribute  
    6857        ''' 
    69         if hasattr(x, '_%s__key' % (type(x).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
    70             return x.__key() == y.__key() 
    71         return id(x) == id(y) 
     58        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)): 
     59            return self.__key() == y.__key() 
     60        return id(self) == id(y) 
    7261 
    7362    def __hash__(self): 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/maintenance_information/md_scopecode.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    2023 
    2124''' 
    22 Created on 06-Feb-2012 15:59:43 
     25Created on 10-Feb-2012 12:03:11 
    2326 
    2427@author: mnagni 
     
    3235        This class has been genererated automatically using the Apache Velocity project. 
    3336    ''' 
    34     cl_attribute = "attribute"  
     37    cl_dataset = "dataset"  
     38    cl_software = "software"  
     39    cl_series = "series"  
     40    cl_service = "service"  
     41    cl_feature = "feature"  
     42    cl_featuretype = "featureType"  
    3543    cl_attributetype = "attributeType"  
    36     cl_propertytype = "propertyType"  
    3744    cl_collectionhardware = "collectionHardware"  
    3845    cl_nongeographicdataset = "nonGeographicDataset"  
    39     cl_featuretype = "featureType"  
    40     cl_feature = "feature"  
     46    cl_collectionsession = "collectionSession"  
    4147    cl_dimensiongroup = "dimensionGroup"  
    42     cl_software = "software"  
    43     cl_collectionsession = "collectionSession"  
     48    cl_fieldsession = "fieldSession"  
    4449    cl_model = "model"  
    45     cl_service = "service"  
    46     cl_fieldsession = "fieldSession"  
    47     cl_series = "series"  
    48     cl_dataset = "dataset"  
     50    cl_attribute = "attribute"  
    4951    cl_tile = "tile"  
     52    cl_propertytype = "propertyType"  
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19115_2006_metadata_corrigendum/maintenance_information/md_scopedescription.py

    r8087 r8088  
     1 
     2 
     3 
    14 
    25 
     
    2326 
    2427''' 
    25 Created on 06-Feb-2012 15:59:47 
     28Created on 10-Feb-2012 12:03:04 
    2629 
    2730@author: mnagni 
     
    3538        This class has been genererated automatically using the Apache Velocity project. 
    3639    ''' 
    37     types = {'features':GF_FeatureType,'featureInstances':GF_FeatureType,'attributeInstances':GF_AttributeType,'other':Text,'attributes':GF_AttributeType,'dataset':Text} 
     40    types = {'attributes':GF_AttributeType,'attributeInstances':GF_AttributeType,'dataset':Text,'features':GF_FeatureType,'featureInstances':GF_FeatureType,'other':Text} 
Note: See TracChangeset for help on using the changeset viewer.