예제 #1
0
 def view(self):
     items = []
     for process in self.wps.processes:
         item = dict(
             identifier=process.identifier,
             title="{0.title} {0.processVersion}".format(process),
             description=getattr(process, 'abstract', ''),
             url=self.request.route_path('processes_execute',
                                         _query=[('wps', self.service_name), ('process', process.identifier)]))
         items.append(item)
     return dict(
         url=wps_caps_url(self.wps.url),
         description=self.wps.identification.abstract,
         provider_name=self.wps.provider.name,
         provider_site=self.wps.provider.url,
         items=items)
예제 #2
0
 def view(self):
     items = []
     for process in self.wps.processes:
         item = dict(title="{0.title} {0.processVersion}".format(process),
                     description=getattr(process, 'abstract', ''),
                     url=self.request.route_path(
                         'processes_execute',
                         _query=[('wps', self.service_name),
                                 ('process', process.identifier)]))
         items.append(item)
     return dict(url=wps_caps_url(self.wps.url),
                 title=self.wps.identification.title,
                 description=self.wps.identification.abstract,
                 provider_name=self.wps.provider.name,
                 provider_site=self.wps.provider.url,
                 items=items)
예제 #3
0
 def custom_view(self):
     return dict(url=wps_caps_url(self.wps.url),
                 summary_title=self.wps.identification.title,
                 summary=self.wps.identification.abstract,
                 provider_name=self.wps.provider.name,
                 provider_url=self.wps.provider.url)