app/app.yaml.template
author Madhusudan C.S. <madhusudancs@gmail.com>
Tue, 11 Aug 2009 12:48:10 -0700
changeset 2757 7d0d0ce76bd9
parent 2741 107bec037dda
child 2772 bb96d2c3885e
permissions -rw-r--r--
updateOrCreateFromFields is made to call updateOrCreateFromKeyName. updateOrCreateFromFields called self._model.get_or_insert which only creates new entities but doesn't update the properties if the entity already exists. So updateOrCreateFromFields is now made to call updateOrCreateFromKeyName which actually updates the entity properties if entity already exists. Reviewed by: Lennard de Rijk
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
31
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     1
# Copyright 2008 the Melange authors.
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     2
#
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     3
# Licensed under the Apache License, Version 2.0 (the "License");
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     4
# you may not use this file except in compliance with the License.
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     5
# You may obtain a copy of the License at
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     6
# 
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     7
#   http://www.apache.org/licenses/LICENSE-2.0
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     8
# 
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     9
# Unless required by applicable law or agreed to in writing, software
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    10
# distributed under the License is distributed on an "AS IS" BASIS,
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    12
# See the License for the specific language governing permissions and
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    13
# limitations under the License.
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    14
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    15
# TODO(proto): uncomment and supply a Google App Engine application instance
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    16
# application: FIXME
1502
2fee94feef59 Remove the release.py module and just use the field in app.yaml.template.
Todd Larsen <tlarsen@google.com>
parents: 422
diff changeset
    17
# TODO(release): see the instructions in README about the "version:" field
2741
107bec037dda Set new Melange version number to 0-5-20090809 in app.yaml.template.
Sverre Rabbelier <srabbelier@gmail.com>
parents: 2712
diff changeset
    18
version: 0-5-20090809
31
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    19
runtime: python
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    20
api_version: 1
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    21
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    22
handlers:
2023
60eddc9ec8f2 Enabled remote_api for admins only
Sverre Rabbelier <srabbelier@gmail.com>
parents: 2009
diff changeset
    23
- url: /remote_api
60eddc9ec8f2 Enabled remote_api for admins only
Sverre Rabbelier <srabbelier@gmail.com>
parents: 2009
diff changeset
    24
  script: $PYTHON_LIB/google/appengine/ext/remote_api/handler.py
60eddc9ec8f2 Enabled remote_api for admins only
Sverre Rabbelier <srabbelier@gmail.com>
parents: 2009
diff changeset
    25
  login: admin
60eddc9ec8f2 Enabled remote_api for admins only
Sverre Rabbelier <srabbelier@gmail.com>
parents: 2009
diff changeset
    26
73
211a3eeacf27 Created robots.txtx and simple Melange favicon.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 65
diff changeset
    27
- url: /(robots.txt|favicon.ico)
211a3eeacf27 Created robots.txtx and simple Melange favicon.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 65
diff changeset
    28
  static_files: soc/content/\1
211a3eeacf27 Created robots.txtx and simple Melange favicon.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 65
diff changeset
    29
  upload: soc/content/(robots.txt|favicon.ico)  
2023
60eddc9ec8f2 Enabled remote_api for admins only
Sverre Rabbelier <srabbelier@gmail.com>
parents: 2009
diff changeset
    30
159
451f39c0e1aa Use zip to compress tiny_mce, and use zipserve to serve it in Google App
Todd Larsen <tlarsen@google.com>
parents: 154
diff changeset
    31
- url: /tiny_mce/.*
451f39c0e1aa Use zip to compress tiny_mce, and use zipserve to serve it in Google App
Todd Larsen <tlarsen@google.com>
parents: 154
diff changeset
    32
  script: $PYTHON_LIB/google/appengine/ext/zipserve
154
d2377425d3f2 Move third-party TinyMCE out of soc/content/js and into the application image
Todd Larsen <tlarsen@google.com>
parents: 73
diff changeset
    33
56
703032f3e1d8 Make static content framework- and program-specific.
Todd Larsen <tlarsen@google.com>
parents: 54
diff changeset
    34
- url: /soc/content
703032f3e1d8 Make static content framework- and program-specific.
Todd Larsen <tlarsen@google.com>
parents: 54
diff changeset
    35
  static_dir: soc/content
703032f3e1d8 Make static content framework- and program-specific.
Todd Larsen <tlarsen@google.com>
parents: 54
diff changeset
    36
703032f3e1d8 Make static content framework- and program-specific.
Todd Larsen <tlarsen@google.com>
parents: 54
diff changeset
    37
- url: /gsoc/content
703032f3e1d8 Make static content framework- and program-specific.
Todd Larsen <tlarsen@google.com>
parents: 54
diff changeset
    38
  static_dir: gsoc/content
703032f3e1d8 Make static content framework- and program-specific.
Todd Larsen <tlarsen@google.com>
parents: 54
diff changeset
    39
422
93f9ead45dae Add jQuery.
Augie Fackler <durin42@gmail.com>
parents: 159
diff changeset
    40
- url: /jquery
93f9ead45dae Add jQuery.
Augie Fackler <durin42@gmail.com>
parents: 159
diff changeset
    41
  static_dir: jquery
31
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    42
1731
254375a57d62 Add json2.js to repository under json folder, update build script and app.yaml.template files.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 1674
diff changeset
    43
- url: /json
254375a57d62 Add json2.js to repository under json folder, update build script and app.yaml.template files.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 1674
diff changeset
    44
  static_dir: json
254375a57d62 Add json2.js to repository under json folder, update build script and app.yaml.template files.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 1674
diff changeset
    45
2335
366e64ecba91 Add web based python shell to Melange.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2256
diff changeset
    46
- url: /admin/shell.*
366e64ecba91 Add web based python shell to Melange.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2256
diff changeset
    47
  script: shell/shell.py
366e64ecba91 Add web based python shell to Melange.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2256
diff changeset
    48
  login: admin
366e64ecba91 Add web based python shell to Melange.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2256
diff changeset
    49
2594
dd300af0e7df Added empty Tasks package and queue.yaml.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2565
diff changeset
    50
- url: /tasks/*
dd300af0e7df Added empty Tasks package and queue.yaml.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2565
diff changeset
    51
  script: main.py
dd300af0e7df Added empty Tasks package and queue.yaml.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2565
diff changeset
    52
  login: admin
dd300af0e7df Added empty Tasks package and queue.yaml.
Lennard de Rijk <ljvderijk@gmail.com>
parents: 2565
diff changeset
    53
2335
366e64ecba91 Add web based python shell to Melange.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2256
diff changeset
    54
- url: /static
366e64ecba91 Add web based python shell to Melange.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2256
diff changeset
    55
  static_dir: shell/static
366e64ecba91 Add web based python shell to Melange.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2256
diff changeset
    56
  expiration: 1d
366e64ecba91 Add web based python shell to Melange.
Pawel Solyga <Pawel.Solyga@gmail.com>
parents: 2256
diff changeset
    57
31
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    58
- url: /.*
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    59
  script: main.py
8b43c541afa7 First iteration of a "prototype" Melange app, along with an initial Person
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    60