thirdparty/coverage/LICENSE
author Sverre Rabbelier <srabbelier@gmail.com>
Fri, 23 Jan 2009 21:20:33 +0000
changeset 935 09f47e08f805
parent 783 bac448165a96
permissions -rw-r--r--
Adust the as_table tag to render a pick link if appropriate The templates are adjusted to pass on a 'reference' value, which is the url_name of the view from which the entity should be picked. The as_table (and related) function(s) construct and then pass on this argument and enable takes_contex so that we have access to the context of the enclosing template. We only extract ReferenceProperties that end with '_link_id' since that is how all RP's are currently named. It is not possible to create a field with the same name as the RP, as GAE will try to interpret it's contents as the key of an entity before even calling any function we can override. Patch by: Sverre Rabbelier
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
783
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     1
(extracted verbatim from the end of coverage.py)
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     2
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     3
# C. COPYRIGHT AND LICENCE
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     4
#
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     5
# Copyright 2001 Gareth Rees.  All rights reserved.
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     6
# Copyright 2004-2008 Ned Batchelder.  All rights reserved.
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     7
#
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     8
# Redistribution and use in source and binary forms, with or without
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     9
# modification, are permitted provided that the following conditions are
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    10
# met:
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    11
#
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    12
# 1. Redistributions of source code must retain the above copyright
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    13
#    notice, this list of conditions and the following disclaimer.
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    14
#
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    15
# 2. Redistributions in binary form must reproduce the above copyright
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    16
#    notice, this list of conditions and the following disclaimer in the
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    17
#    documentation and/or other materials provided with the
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    18
#    distribution.
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    19
#
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    20
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    21
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    22
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    23
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    24
# HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    25
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    26
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    27
# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    28
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    29
# TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    30
# USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    31
# DAMAGE.
bac448165a96 Extract BSD license text into a separate file to make it easier to find.
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    32