view gpp/core/fixtures/flatpages.json @ 505:a5d11471d031

Refactor the logic in the rate limiter decorator. Check to see if the request was ajax, as the ajax view always returns 200. Have to decode the JSON response to see if an error occurred or not.
author Brian Neal <bgneal@gmail.com>
date Sat, 03 Dec 2011 19:13:38 +0000
parents a805c496923f
children
line wrap: on
line source
[
    {
        "pk": 1, 
        "model": "flatpages.flatpage", 
        "fields": {
            "registration_required": false, 
            "title": "About SurfGuitar101.com", 
            "url": "/about/", 
            "template_name": "", 
            "sites": [
                1
            ], 
            "content": "<p>SurfGuitar101.com is the premier place on the web for friends and fans of the world-wide phenomenon known as surf music. Surf music was created in the early 1960's in Southern California by such bands as The Belairs, Dick Dale &amp; His Deltones, and The Chantays, and popularized further by bands like The Ventures, The Astronauts, The Pyramids, &amp; The Lively Ones. Surf music was all but forgotten when The Beatles and the British Invasion landed in America in the mid to late 1960's. In the late 70's and early 1980's a revival began when bands like Jon &amp; The Nightriders, The Surf Raiders, and The Halibuts heard the call of the surf and reintroduced it to hungry audiences. This revival continues today and has spread world-wide. Today you can find surf bands not only in California, but all across America, Europe, Australia, Central and South America, and Japan.</p>\r\n<p>Join us in our forums to discuss this great form of popular music. Discover great bands old and new. Check out our podcasts as we highlight the classic surf bands and the bands of today. Meet new friends and learn about the next surf show in your town. Exchange tips on playing and performing surf music and even starting your own band!</p>\r\n<p>Thanks for being part of the greatest online community dedicated to surf music!</p>\r\n<h3>A Short History of SurfGuitar101.com</h3>\r\n<p>This site started as a Yahoo Group in late October, 2001. There were several other surf music Yahoo groups at the time, so we started our focus on the musician aspect of playing surf music (hence the \"guitar 101\"). After a short time we dropped that angle and fully embraced all aspects of surf music.</p>\r\n<p>After seeing The Surf Coasters (Japan) on their first US tour in the summer of 2004, we needed a place to host our many photos and videos. The domain name surfguitar101.com was registered, and a simple static website was created to host media files as a supplement to the Yahoo group.&nbsp;</p>\r\n<p>Cramped by the confines of the Yahoo Group, in February of 2006 we launched an interactive version of the website, complete with our now famous forums. This format was kept until February, 2011 when the website software was rewritten and a new look was designed.</p>\r\n<p>The SG101 community held its first annual convention weekend in 2008 in Southern California, a tradition that continues today. Ever year our members get together for a surf music packed weekend, and each year has been bigger and better than the last. In 2010, Germany's The Space Rangers and Italy's (via Antigua) Wadadli Riders were the first non-US bands to play at the convention. Fans of surf music get to see, hear, and mingle with musicians from the original 60's bands as well as the up and coming bands of today.</p>\r\n<p>Surf's Up!</p>", 
            "enable_comments": false
        }
    }, 
    {
        "pk": 4, 
        "model": "flatpages.flatpage", 
        "fields": {
            "registration_required": false, 
            "title": "Colophon", 
            "url": "/colophon/", 
            "template_name": "", 
            "sites": [
                1
            ], 
            "content": "<p><a href=\"http://surfguitar101.com/\">SurfGuitar101.com</a> was created by Brian Neal. The server-side code is written in the <a href=\"http://python.org/\">Python</a> programming language using the awesome <a href=\"http://djangoproject.com/\">Django</a> Web framework. Client-side coding was done in <a href=\"http://en.wikipedia.org/wiki/JavaScript\">Javascript</a>, making heavy use of the <a href=\"http://jquery.org/\">jQuery</a> and <a href=\"http://jqueryui.com/\">jQuery UI</a> libraries.</p>\r\n<p>The site design was created by <a href=\"http://ken.crashmatics.com/\">Ken Dushane</a> of the band <a href=\"http://crashmatics.com/\">The Crashmatics</a>. Various icons and graphics were contributed by Ariel (DreadInBabylon), Ferenc Dobronyi, and Joseph Koch. Additional icons courtesy of <a href=\"http://www.famfamfam.com/lab/icons/silk/\">FamFamFam</a>.</p>\r\n<p>The following 3rd party libraries were leveraged in the construction of this site: <a href=\"http://sourceforge.net/projects/mysql-python/\">MySQLdb</a>, <a href=\"http://www.freewisdom.org/projects/python-markdown/\">python-markdown</a>, <a href=\"http://www.pythonware.com/products/pil/\">PIL</a>, <a href=\"http://pytz.sourceforge.net/\">pytz</a>, <a href=\"http://code.google.com/p/django-tagging/\">django-tagging</a>, <a href=\"http://github.com/leah/django-elsewhere\">django-elsewhere</a>, <a href=\"http://code.google.com/p/gdata-python-client/\">gdata-python-client</a>, <a href=\"http://www.tummy.com/Community/software/python-memcached/\">python-memcached</a>, <a href=\"http://code.google.com/p/html5lib/\">html5lib</a>, <a href=\"http://tinymce.moxiecode.com/\">tinymce</a>, <a href=\"http://markitup.jaysalvat.com/home/\">markItUp!</a>, <a href=\"http://haystacksearch.org/\">Haystack</a>, <a href=\"http://github.com/notanumber/xapian-haystack/tree/master\">xapian-haystack</a>, <a href=\"http://www.blueprintcss.org/\">Blueprint</a>, <a href=\"http://jquery.malsup.com/cycle/\">jQuery Cycle</a>, <a href=\"http://www.appelsiini.net/projects/jeditable\">JEditable</a>, &amp; <a href=\"http://pypi.python.org/pypi/repoze.timeago/0.5\">repoze.timeago</a>.</p>\r\n<p>The site runs on an infrastructure powered by many open-source tools: the <a href=\"http://httpd.apache.org/\">Apache server</a> with <a href=\"http://code.google.com/p/modwsgi/\">mod_wsgi</a>, a <a href=\"http://www.mysql.com/\">MySQL database</a>, the <a href=\"http://xapian.org/\">Xapian</a> search engine library, and <a href=\"http://memcached.org/\">memcached</a>. The server is running <a href=\"http://www.ubuntu.com/\">Ubuntu</a>, an operating system based upon the <a href=\"http://www.debian.org/\">Debian</a> <a href=\"http://www.gnu.org/\">GNU</a> / <a href=\"http://www.kernel.org/\">Linux</a> distribution.</p>\r\n<p>Special thanks to Abraham Aguilar and Brian Fady for providing useful feedback and testing.</p>", 
            "enable_comments": false
        }
    }, 
    {
        "pk": 3, 
        "model": "flatpages.flatpage", 
        "fields": {
            "registration_required": false, 
            "title": "SurfGuitar101.com Privacy Policy", 
            "url": "/policy/privacy/", 
            "template_name": "", 
            "sites": [
                1
            ], 
            "content": "<p>SurfGuitar101.com is  committed to ensuring the privacy of its readers and registered members  and wants you to fully understand our terms and conditions This privacy  statement describes how any personal, and anonymous, information is  collected and managed and how you can request changes to any sharing of  this information that may occur.</p>\r\n<h3>Statistical Reports</h3>\r\n<p>SurfGuitar101.com's  servers automatically recognize a visitor's IP address and domain name.  These items do not reveal any personal information about the visitor.  The information is used solely to compile statistics that enable us to  examine page impression levels and numbers of unique users visiting our  Web sites. This information helps us to understand the areas of our  sites that people visit in order to deliver more effective content.</p>\r\n<h3>Cookies</h3>\r\n<p>Like  most other Web sites, SurfGuitar101.com uses cookies. Cookies are small  data files that some Web sites write to your hard drive when you visit  them. A cookie file can contain information such as a user ID that the  site uses to track the pages you've visited. Cookies do not tell us who  you are unless you've specifically given us personally identifiable  information. A cookie can't read data off your hard drive or read cookie  files created by other sites.<br /><br />SurfGuitar101.com uses cookies to  allow automatic logins to improve your experience with our sites. For  example, we may use a cookie to identify our site members so they don't  have to re-enter a user id and password when they sign-in.&nbsp; Cookies can  also be used to help us to better understand how visitors interact with  our sites leading to the delivery of more relevant content. Cookies may  be created directly by our sites for these purposes, or by third-party  companies operating on our behalf. If you choose to become a member of  SurfGuitar101.com, you must have cookies enabled to access the member  related pages (i.e. Discussion Boards and Member Profile pages).<br /><br />Most  web browsers automatically accept cookies but allow you to modify  security settings so you can approve or reject cookies on a case-by-case  basis.</p>\r\n<h3>Pixel Tags</h3>\r\n<p>SurfGuitar101.com does not currently  use pixel tags, also known as beacons, web bugs or clear gifs.</p>\r\n<h3>Online  Ad Serving</h3>\r\n<p>SurfGuitar101.com does not currently use third-party  advertising companies to serve advertisements.</p>\r\n<h3>Newsletters /  Mailing Lists</h3>\r\n<p>Through the registration process for  SurfGuitar101.com, we request some personal information such as your  e-mail address, company information, your name, job title, etc. We will  never give your personal information to any third party vendor without  your prior consent. We currently do not make our email and postal lists  available to any third-party.</p>\r\n<h3>SurfGuitar101.com Email  Announcements</h3>\r\n<p>At this time we do not send mass e-mails to make  site-wide announcements.</p>\r\n<h3>Necessary Disclosure</h3>\r\n<p>The  necessary disclosure of any of the above information to third parties  will be governed by the following principles:</p>\r\n<ol>\r\n<li>Where  SurfGuitar101.com is required to do so by law and any order of the  court.</li>\r\n<li>Where it is necessary to identify anyone who may be  violating the rights of others or the law in general.</li>\r\n<li>Where  SurfGuitar101.com intends to co-operate with the investigation of any  alleged unlawful activities without being required to by virtue of any  court order or other legal requirement.</li>\r\n<li>Where it is necessary to  protect the rights of SurfGuitar101.com.</li>\r\n</ol>\r\n<h3>Security</h3>\r\n<p>We  use all reasonable precautions to securely maintain all information  given to us by our registered members and we are not responsible for any  breach of the reasonable security measures installed to protect the  said information. We are not responsible for the private policies of any  site linked to, or from, SurfGuitar101.com.</p>\r\n<h3>Opt Out Policy</h3>\r\n<p>SurfGuitar101.com  gives users options whenever necessary, and practical. Such choices  include: Opting not to receive our electronic messages, opting not to  provide certain optional personal information when registering for an  account.</p>\r\n<h3>Transfer of Information</h3>\r\n<p>SurfGuitar101.com  reserves the right to transfer any information accumulated as described  above in the event of the sale of part or all of SurfGuitar101.com  assets and/or stock. By visiting our Web sites and by registering you  consent to the collection and use of information in the manner herein  described.</p>\r\n<h3>Privacy Policy Changes</h3>\r\n<p>This Privacy Policy may  be modified from time to time. Any modifications to our Privacy Policy  will be reflected on this page. If there is a significant change, we  will indicate it on our sites and provide a link to the new policy.</p>", 
            "enable_comments": false
        }
    }, 
    {
        "pk": 2, 
        "model": "flatpages.flatpage", 
        "fields": {
            "registration_required": false, 
            "title": "SurfGuitar101.com Terms of Service", 
            "url": "/policy/tos/", 
            "template_name": "", 
            "sites": [
                1
            ], 
            "content": "<div>\r\n<p>Your  use of our Internet sites is subject to these Terms of Service  (\"Terms\"). We may modify these Terms at any time without notice to you  by posting revised Terms on our sites. Your use of our sites constitutes  your binding acceptance of these Terms, including any modifications  that we make.</p>\r\n<h3><strong>Content on Our Sites</strong></h3>\r\n<p>Our sites  include a combination of content that we create and that our users  create. You are solely responsible for all materials, whether publicly  posted or privately transmitted, that you upload, post, email, transmit  or otherwise make available on our sites (\"Your Content\"). You certify  that you own all intellectual property rights in Your Content. You  hereby grant us, our affiliates and our partners a worldwide,  irrevocable, royalty-free, nonexclusive, sublicensable license to use,  reproduce, create derivative works of, distribute, publicly perform,  publicly display, transfer, transmit, distribute and publish Your  Content and subsequent versions of Your Content for the purposes of (i)  displaying Your Content on our sites, (ii) distributing Your Content,  either electronically or via other media, to users seeking to download  or otherwise acquire it, and/or (iii) storing Your Content in a remote  database accessible by end users. This license shall apply to the  distribution and the storage of Your Content in any form, medium, or  technology now known or later developed.</p>\r\n<h3><strong>Your Conduct on Our  Sites</strong></h3>\r\n<p>You agree not to post or transmit material that is  knowingly false and/or defamatory, misleading, inaccurate, abusive,  vulgar, hateful, harassing, obscene, profane, sexually oriented,  threatening or invasive of a person's privacy; that otherwise violates  any law; or that encourages conduct constituting a criminal offense.</p>\r\n<h3><strong>User  Agreement for SurfGuitar101.com Forums<br /></strong></h3>\r\n<p>This message  forum, and other user contributed/comment areas (\"Forums\") are provided  as a service to members of our community. By using or participating on  the Forums, you agree to this User Agreement including but not limited  to the Rules of Conduct and the Terms of Service stated below. For  purposes of this agreement, \"User\" refers to any individual posting on  or otherwise using the Forums and SG101 refers to the owners and staff  of SurfGuitar101.com and their authorized representatives.</p>\r\n<p>SG101  reserves the right to change the Rules of Conduct, Terms of Service and  all other parts of this User Agreement at its sole discretion and  without notice.</p>\r\n<p>As a standard operating procedure,  SG101 does not enter into correspondence, discussions or other  communication, either public or private, about SG101 policies,  individual moderators, enforcement or application of the User Agreement, bans or other sanctions,  etc.</p>\r\n<h3><strong>RULES OF CONDUCT</strong></h3>\r\n<p>User agrees not to post  material that is knowingly false and/or defamatory, misleading,  inaccurate, abusive, vulgar, hateful, harassing, obscene, profane,  sexually oriented, threatening, invasive of a person's privacy, that  otherwise violates any law, or that encourages conduct constituting a  criminal offense.</p>\r\n<p>User agrees not to post any material  that is protected by copyright, trademark or other proprietary right  without the express permission of the owner(s) of said copyright,  trademark or other proprietary right.</p>\r\n<p>User agrees not  to use nicknames that might be deemed abusive, vulgar, hateful,  harassing, obscene, profane, sexually oriented, threatening, invasive of  a person's privacy, or otherwise inappropriate. User agrees not to use  nicknames that might mislead other Users. This includes but is not  limited to using nicknames that impersonate developers, staff, or other  Users, or other individuals outside of SG101.</p>\r\n<h3><strong>TERMS OF SERVICE</strong></h3>\r\n<p>User  acknowledges and agrees that use of the SG101 is a privilege, not a  right, and that SG101 has the right, at its sole discretion, to revoke  this privilege at any time without notice or reason. User agrees that  this Agreement in its entirety applies to both public and private  messages.</p>\r\n<p>The goal of the Forums is to foster communication and  the interchange of ideas within the User community. User agrees and  acknowledges that any posts, nicknames or other material deemed  offensive, harassing, baiting or otherwise inappropriate may be removed  at the sole discretion of SG101.</p>\r\n<p>User authorizes SG101  to make use of any original stories, concepts, ideas, drawings,  photographs, opinions and other creative materials posted on the Forums  without compensation or other recourse. User also agrees to indemnify  and hold harmless SG101 and our agents with respect to any claims based  upon or arising from the transmission and/or content of your message(s).</p>\r\n<p>SG101  has the right but not the obligation to monitor and/or moderate the  Forums, and offers no assurances in this regard.</p>\r\n<p>SG101  is not responsible for messages posted on the Forums or the content  therein. We do not vouch for or warrant the accuracy, completeness or  usefulness of any message. Each message expresses the views of its  originating User, not necessarily those of SG101. Unless expressly  stated otherwise by a senior SG101 representative, this includes  messages posted by SG101 personnel, agents, delegates, representatives  et al.</p>\r\n<p>Any User who feels that a posted message is  objectionable is encouraged to contact us. We have the ability to remove  messages and we will make every effort to do so within a reasonable  time if we determine that removal is necessary. This is a manual  process, however, so please realize that we may not be able to act  immediately. Removal of messages is at the sole discretion of SG101.</p>\r\n<p>The  appropriate individual to contact is usually the editor of the site  associated with the board where the message in question is to be found.  As a standard operating procedure, SG101 does not enter into  discussions, either public or private, about Forum policies, individual  moderators, bans or other sanctions, etc.</p>\r\n<p>SG101  reserves the right to reveal the identity of and/or whatever information  we know about any User in the event of a complaint or legal action  arising from any message posted by said User.</p>\r\n<p>Advertisements,  chain letters, pyramid schemes and other commercial solicitations are  inappropriate on the Forums.</p>\r\n<p>SG101 does not permit  children under the age of 13 to become members, post home pages or web  sites on our service.</p>\r\n<p>SG101 is not responsible for the  content posted by SG101 members or visitors on any area of our site  including without limitation. The opinions and views expressed by  SG101's members or visitors do not necessarily represent those of SG101  and SG101 does not verify, endorse, or vouch for the content of such  opinions or views. Further, SG101 is not responsible for the delivery or  quality of any goods or services sold or advertised through or on SG101  members' page(s). If you believe that any of the content posted by our  members or visitors violates your proprietary rights, including  copyrights, please contact us.</p>\r\n<p>You are solely and  fully responsible for any content that you post any area of our site. We  do not regularly review the contents of materials posted by our members  or other visitors to our site. We strictly prohibit the posting of the  following types of content on all areas of our sites:</p>\r\n<ul>\r\n<li>nudity,  pornography, and sexual material of a lewd, lecherous or obscene nature  and intent or that violates local, state and national laws.</li>\r\n<li>any  material that violates or infringes in any way upon the proprietary  rights of others, including, without limitation, copyright or trademark  rights; this includes \"WAREZ\" (copyrighted software that is distributed  illegally), \"mp3\" files of copyrighted music, copyrighted photographs,  text, video or artwork. If you don't own the copyright or have express  authorization and documented permission to use it, don't put it on SG101  (if you do have express permission you must say so clearly). SG101 will  terminate the memberships of, and remove the pages of, repeat  infringers.</li>\r\n<li>any material that is threatening, abusive,  harassing, defamatory, invasive of privacy or publicity rights, vulgar,  obscene, profane, indecent, or otherwise objectionable; including  posting other peoples' private information.</li>\r\n<li>content that  promotes, encourages, or provides instructional information about  illegal activities - specifically hacking, cracking, or phreaking.</li>\r\n<li>any  software, information, or other material that contains a virus, \"Trojan  Horse\", \"worm\" corrupted data, or any other harmful or damaging  component;</li>\r\n<li>hate propaganda or hate mongering, swearing, or  fraudulent material or activity;</li>\r\n</ul>\r\n</div>\r\n<div class=\"basicCentral-elm\">\r\n<p>By  submitting your data to SG101, you represent that the data complies with  SG101's Terms of Service. If any third party brings a claim, lawsuit or  other proceeding against SG101 based on your conduct or use of SG101  services, you agree to compensate SG101 (including its officers,  directors, employees and agents) for any and all losses, liabilities,  damages or expenses, including attorney's fees, incurred by SG101 in  connection with any such claim, lawsuit or proceeding.</p>\r\n<p>SG101  is the final arbiter of what IS and IS NOT allowed on our site.  Further, SG101 reserves the right to modify or remove anything submitted  to SG101, and to cancel any membership, at any time for any reason  without prior notice. SG101 is not obliged to maintain back-ups copies  of any material submitted or posted on our site. Actions or activities  that may cause termination of your membership and/or removal of your  page(s) include, but are not limited to:</p>\r\n<ul>\r\n<li>posting  or providing links to any content which violates our Terms of Service:</li>\r\n<li>conducting  or providing links to any raffle, contest, or game which violates any  local, state or national laws;</li>\r\n<li>using in the registration of your  SG101 membership an email account that is not your own or that is or  becomes inactive.</li>\r\n<li>violating the SG101 Terms of Service. Please  read and familiarize yourself with the SG101 Terms of Service.</li>\r\n<li>sending  unsolicited email using a SG101 address</li>\r\n<li>reproducing,  distributing, republishing or retransmitting material posted by other  SG101 members without the prior permission of such members.</li>\r\n</ul>\r\n</div>\r\n<div class=\"basicCentral-elm\">\r\n<p>We  reserve the right to monitor, and to investigate any complaints  regarding any content of SG101 members' pages, message-board postings,  and to take appropriate action if SG101 finds violations of these Terms of Service. In the case of any such complaint, SG101 reserves the right  to remove the content complained of while the SG101 member and the  complaining party attempt to resolve their dispute. This could result in  your posts(s) being removed from SG101 for as long as it takes to  resolve the dispute.</p>\r\n<p>You grant to SG101 and its  affiliates a royalty-free, perpetual, irrevocable, nonexclusive,  worldwide, unrestricted license to use, copy, modify, transmit,  distribute, and publicly perform or display the submitted pages or other  content for the purposes of displaying such information on SG101's  sites and for the promotion and marketing of SG101's services.</p>\r\n<h3><strong>MISC.</strong></h3>\r\n<p>SG101  makes no guarantee of availability of service and reserves the right to  change, withdraw, suspend, or discontinue any functionality or feature  of the SG101 service. IN NO EVENT WILL BE LIABLE FOR ANY DAMAGES,  INCLUDING, WITHOUT LIMITATION, DIRECT, INDIRECT, INCIDENTAL, SPECIAL,  CONSEQUENTIAL, OR PUNITIVE DAMAGES ARISING OUT OF THE USE OF OR  INABILITY TO USE SG101'S SERVICES OR ANY CONTENT THEREON FOR ANY REASON  INCLUDING, WITHOUT LIMITATION, SG101'S REMOVAL OR DELETION OF ANY  MATERIALS OR RECORDS SUBMITTED OR POSTED ON SG101'S SITE FOR ANY REASON.  THIS DISCLAIMER APPLIES, WITHOUT LIMITATION, TO ANY DAMAGES OR INJURY,  WHETHER FOR BREACH OF CONTRACT, TORT, OR OTHERWISE, CAUSED; ANY FAILURE  OF PERFORMANCE; ERROR; OMISSION; INTERRUPTION; DELETION; DEFECT; DELAY  IN OPERATION OR TRANSMISSION; COMPUTER VIRUS; FILE CORRUPTION;  COMMUNICATION-LINE FAILURE; NETWORK OR SYSTEM OUTAGE; OR THEFT, DESTRUCTION,  UNAUTHORIZED ACCESS TO, ALTERATION OF, OR USE OF ANY RECORD.</p>\r\n<p>SG101  reserves the right to change or amend these Terms of Service at any  time without prior notice. By registering and/or submitting any content,  including without limitation, message-board postings, you signify your  agreement to these Terms of Service.</p>\r\n</div>", 
            "enable_comments": false
        }
    }
]