示例#1
0
  def get(self):
    path = os.path.join(os.path.dirname(__file__), 'index.html')
    release_29 = mergejs.scanjs(version_dir)
    release_29 = [
        { 'type': 'layer', 'name': 'Layer Types',
          'options': map(filename_to_sourcefile_release_29, filter(all_layers, release_29))},
        { 'type': 'control', 'name': 'Controls',
          'options': map(filename_to_sourcefile_release_29, filter(all_controls, release_29))},
        { 'type': 'language', 'name': 'Languages',
          'options': map(filename_to_sourcefile_release_29, filter(all_languages, release_29))},
        { 'type': 'format', 'name': 'Formats',
          'options': map(filename_to_sourcefile_release_29, filter(all_formats, release_29))},
        { 'type': 'strategy', 'name': 'Strategies',
          'options':  map(filename_to_sourcefile_release_29, filter(all_strategies, release_29))},
        { 'type': 'protocol', 'name': 'Protocols',
          'options': map(filename_to_sourcefile_release_29, filter(all_protocols, release_29))},
        { 'type': 'geometry', 'name': 'Geometries',
          'options': map(filename_to_sourcefile_release_29, filter(all_geometry, release_29))},
        { 'type': 'renderer', 'name': 'Renderers',
          'options': map(filename_to_sourcefile_release_29, filter(all_renderers, release_29))},
        { 'type': 'popup', 'name': 'Popups',
          'options': map(filename_to_sourcefile_release_29, filter(all_popups, release_29))},
        { 'type': 'filter', 'name': 'Filters',
          'options': map(filename_to_sourcefile_release_29, filter(all_filters, release_29))},
        { 'type': 'handler', 'name': 'Handlers',
          'options': map(filename_to_sourcefile_release_29, filter(all_handlers, release_29))},
        ]

    template_values = {
        'release_29': release_29}
    self.response.out.write(template.render(path, template_values))
示例#2
0
  def get(self):
    path = os.path.join(os.path.dirname(__file__), 'index.html')
    release_28 = mergejs.scanjs('openlayers_src/release-2.8/lib')
    trunk = mergejs.scanjs('openlayers_src/trunk/lib')
    trunk = [
        { 'type': 'layer', 'name': 'Layer Types',
          'options': map(filename_to_sourcefile_trunk, filter(all_layers, trunk))},
        { 'type': 'control', 'name': 'Controls',
          'options': map(filename_to_sourcefile_trunk, filter(all_controls, trunk))},
        { 'type': 'language', 'name': 'Languages',
          'options': map(filename_to_sourcefile_trunk, filter(all_languages, trunk))},
        { 'type': 'format', 'name': 'Formats',
          'options': map(filename_to_sourcefile_trunk, filter(all_formats, trunk))},
        { 'type': 'strategy', 'name': 'Strategies',
          'options':  map(filename_to_sourcefile_trunk, filter(all_strategies, trunk))},
        { 'type': 'protocol', 'name': 'Protocols',
          'options': map(filename_to_sourcefile_trunk, filter(all_protocols, trunk))},
        { 'type': 'popup', 'name': 'Popups',
          'options': map(filename_to_sourcefile_trunk, filter(all_popups, trunk))},
        { 'type': 'filter', 'name': 'Filters',
          'options': map(filename_to_sourcefile_trunk, filter(all_filters, trunk))},
        ]
    release_28 = [
        { 'type': 'layer', 'name': 'Layer Types',
          'options': map(filename_to_sourcefile_release_28, filter(all_layers, release_28))},
        { 'type': 'control', 'name': 'Controls',
          'options': map(filename_to_sourcefile_release_28, filter(all_controls, release_28))},
        { 'type': 'language', 'name': 'Languages',
          'options': map(filename_to_sourcefile_release_28, filter(all_languages, release_28))},
        { 'type': 'format', 'name': 'Formats',
          'options': map(filename_to_sourcefile_release_28, filter(all_formats, release_28))},
        { 'type': 'strategy', 'name': 'Strategies',
          'options':  map(filename_to_sourcefile_release_28, filter(all_strategies, release_28))},
        { 'type': 'protocol', 'name': 'Protocols',
          'options': map(filename_to_sourcefile_release_28, filter(all_protocols, release_28))},
        { 'type': 'popup', 'name': 'Popups',
          'options': map(filename_to_sourcefile_release_28, filter(all_popups, release_28))},
        { 'type': 'filter', 'name': 'Filters',
          'options': map(filename_to_sourcefile_release_28, filter(all_filters, release_28))},
        ]

    template_values = {
        'trunk': trunk, 'release_28': release_28}
    self.response.out.write(template.render(path, template_values))
示例#3
0
    def get(self):
        path = os.path.join(os.path.dirname(__file__), 'index.html')
        release_29 = mergejs.scanjs(version_dir)
        release_29 = [
            {
                'type':
                'layer',
                'name':
                'Layer Types',
                'options':
                map(filename_to_sourcefile_release_29,
                    filter(all_layers, release_29))
            },
            {
                'type':
                'control',
                'name':
                'Controls',
                'options':
                map(filename_to_sourcefile_release_29,
                    filter(all_controls, release_29))
            },
            {
                'type':
                'language',
                'name':
                'Languages',
                'options':
                map(filename_to_sourcefile_release_29,
                    filter(all_languages, release_29))
            },
            {
                'type':
                'format',
                'name':
                'Formats',
                'options':
                map(filename_to_sourcefile_release_29,
                    filter(all_formats, release_29))
            },
            {
                'type':
                'strategy',
                'name':
                'Strategies',
                'options':
                map(filename_to_sourcefile_release_29,
                    filter(all_strategies, release_29))
            },
            {
                'type':
                'protocol',
                'name':
                'Protocols',
                'options':
                map(filename_to_sourcefile_release_29,
                    filter(all_protocols, release_29))
            },
            {
                'type':
                'geometry',
                'name':
                'Geometries',
                'options':
                map(filename_to_sourcefile_release_29,
                    filter(all_geometry, release_29))
            },
            {
                'type':
                'renderer',
                'name':
                'Renderers',
                'options':
                map(filename_to_sourcefile_release_29,
                    filter(all_renderers, release_29))
            },
            {
                'type':
                'popup',
                'name':
                'Popups',
                'options':
                map(filename_to_sourcefile_release_29,
                    filter(all_popups, release_29))
            },
            {
                'type':
                'filter',
                'name':
                'Filters',
                'options':
                map(filename_to_sourcefile_release_29,
                    filter(all_filters, release_29))
            },
            {
                'type':
                'handler',
                'name':
                'Handlers',
                'options':
                map(filename_to_sourcefile_release_29,
                    filter(all_handlers, release_29))
            },
        ]

        template_values = {'release_29': release_29}
        self.response.out.write(template.render(path, template_values))