app/feedparser/LICENSE
author Lennard de Rijk <ljvderijk@gmail.com>
Sat, 14 Feb 2009 21:18:12 +0000
changeset 1328 cd175dddc15c
parent 151 6f8eb27752dc
permissions -rw-r--r--
Added bulk acceptance and progress bar in review org applications view. In the list of organization applications for reviewing, if you click the button "click here" the whole first text line will fade out and the progress bar will fade in while starting to contact the server for the list of orgs to accept and then make synchronous calls for acceptance, while updating the progress bar, the name of the organization currently accepting and the number of orgs already accepted against the total. Inside the script, what's inside the parenthesis is converted due to regexp (in this case (link_id)) and then read the json_object.applications[index].link_id. By doing this with an eval(), you can use other names as well and the script will be reading for example json_object.applications[index].attribute_name if you insert "(attribute_name)" inside the link returned by {{ bulk_accept_link }}. Notes by Lennard: -Put Done outside the for-loop so that it also shows when there are 0 pre-accepted organizations. -Made some minor style fixes Patch by: Mario Ferraro Reviewed by: Lennard de Rijk
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
151
6f8eb27752dc Move third-party feedparser.py out of the soc framework package into its own
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     1
Copyright (c) 2002-2006, Mark Pilgrim, All rights reserved.
6f8eb27752dc Move third-party feedparser.py out of the soc framework package into its own
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     2
6f8eb27752dc Move third-party feedparser.py out of the soc framework package into its own
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     3
Redistribution and use in source and binary forms, with or without modification,
6f8eb27752dc Move third-party feedparser.py out of the soc framework package into its own
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     4
are permitted provided that the following conditions are met:
6f8eb27752dc Move third-party feedparser.py out of the soc framework package into its own
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     5
6f8eb27752dc Move third-party feedparser.py out of the soc framework package into its own
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     6
* Redistributions of source code must retain the above copyright notice,
6f8eb27752dc Move third-party feedparser.py out of the soc framework package into its own
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     7
  this list of conditions and the following disclaimer.
6f8eb27752dc Move third-party feedparser.py out of the soc framework package into its own
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     8
* Redistributions in binary form must reproduce the above copyright notice,
6f8eb27752dc Move third-party feedparser.py out of the soc framework package into its own
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
     9
  this list of conditions and the following disclaimer in the documentation
6f8eb27752dc Move third-party feedparser.py out of the soc framework package into its own
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    10
  and/or other materials provided with the distribution.
6f8eb27752dc Move third-party feedparser.py out of the soc framework package into its own
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    11
6f8eb27752dc Move third-party feedparser.py out of the soc framework package into its own
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    12
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 'AS IS'
6f8eb27752dc Move third-party feedparser.py out of the soc framework package into its own
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    13
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
6f8eb27752dc Move third-party feedparser.py out of the soc framework package into its own
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    14
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
6f8eb27752dc Move third-party feedparser.py out of the soc framework package into its own
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    15
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
6f8eb27752dc Move third-party feedparser.py out of the soc framework package into its own
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    16
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
6f8eb27752dc Move third-party feedparser.py out of the soc framework package into its own
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    17
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
6f8eb27752dc Move third-party feedparser.py out of the soc framework package into its own
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    18
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
6f8eb27752dc Move third-party feedparser.py out of the soc framework package into its own
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    19
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
6f8eb27752dc Move third-party feedparser.py out of the soc framework package into its own
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    20
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
6f8eb27752dc Move third-party feedparser.py out of the soc framework package into its own
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    21
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
6f8eb27752dc Move third-party feedparser.py out of the soc framework package into its own
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    22
POSSIBILITY OF SUCH DAMAGE.
6f8eb27752dc Move third-party feedparser.py out of the soc framework package into its own
Todd Larsen <tlarsen@google.com>
parents:
diff changeset
    23