app/soc/models/expando_base.py
author Sverre Rabbelier <srabbelier@gmail.com>
Sat, 12 Sep 2009 00:36:49 +0200
changeset 2898 ac5f77cd6046
parent 2763 80d625f78176
permissions -rw-r--r--
Fix 500 when saving /site/edit without email When saving /site/edit with no no_reply_email set, a 500 error page would be returned due to an empty value being passed as value to the datastore (which is not allowed for email fields).
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2763
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     1
#!/usr/bin/python2.5
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     2
#
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     3
# Copyright 2009 the Melange authors.
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     4
#
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     5
# Licensed under the Apache License, Version 2.0 (the "License");
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     6
# you may not use this file except in compliance with the License.
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     7
# You may obtain a copy of the License at
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     8
# 
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
     9
#   http://www.apache.org/licenses/LICENSE-2.0
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    10
# 
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    11
# Unless required by applicable law or agreed to in writing, software
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    12
# distributed under the License is distributed on an "AS IS" BASIS,
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    13
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    14
# See the License for the specific language governing permissions and
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    15
# limitations under the License.
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    16
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    17
"""Module that cointains base class for Melange Expando models.
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    18
"""
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    19
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    20
__authors__ = [
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    21
  '"Lennard de Rijk" <ljvderijk@gmail.com>',
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    22
]
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    23
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    24
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    25
from google.appengine.ext import db
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    26
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    27
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    28
class ExpandoBase(db.Expando):
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    29
  """Expando Base model.
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    30
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    31
  This might later on contain general functionalities like the
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    32
  ModelWithFieldAttributes model.
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    33
  """
80d625f78176 Added base Model for Expando models.
Lennard de Rijk <ljvderijk@gmail.com>
parents:
diff changeset
    34
  pass