Skip to content

Commit

Permalink
Added copyright header to all appropriate files.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ethan Holda committed Nov 16, 2011
1 parent 33f1de5 commit 711b2ea
Show file tree
Hide file tree
Showing 120 changed files with 601 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@


5 changes: 5 additions & 0 deletions controllers/admin.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

from framework.controller import *
import framework.util as util
import giveaminute.user as mUser
Expand Down
5 changes: 5 additions & 0 deletions controllers/blitz.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

"""
Module to handle integration with Bltiz.io. The service
requires that a specific route give back a specific value.
Expand Down
5 changes: 5 additions & 0 deletions controllers/createProject.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

import giveaminute.keywords as keywords
import giveaminute.project as mProject
import giveaminute.projectResource as mProjectResource
Expand Down
5 changes: 5 additions & 0 deletions controllers/home.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

from framework.controller import *
from framework.config import Config
import giveaminute.location as mLocation
Expand Down
5 changes: 5 additions & 0 deletions controllers/idea.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

import giveaminute.idea as mIdea
import giveaminute.keywords as mKeywords
import giveaminute.project as mProject
Expand Down
5 changes: 5 additions & 0 deletions controllers/join.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

import re
import uuid
import framework.util as util
Expand Down
5 changes: 5 additions & 0 deletions controllers/project.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

from framework.controller import *
import framework.util as util
import giveaminute.project as mProject
Expand Down
5 changes: 5 additions & 0 deletions controllers/resource.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

from framework.controller import *
import framework.util as util
import giveaminute.location as mLocation
Expand Down
5 changes: 5 additions & 0 deletions controllers/rest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

import inspect
import json
from helpers.Counter import Counter
Expand Down
5 changes: 5 additions & 0 deletions controllers/search.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

import framework.util as util
import giveaminute.location as mLocation
import giveaminute.project as mProject
Expand Down
5 changes: 5 additions & 0 deletions controllers/sms/twilio.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

import helpers.sms as sms
from framework import util
from framework.controller import *
Expand Down
5 changes: 5 additions & 0 deletions controllers/user.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

import framework.util as util
import giveaminute.user as mUser
import giveaminute.location as mLocation
Expand Down
5 changes: 5 additions & 0 deletions framework/config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

"""
Module to handle config values. Config is defined at config.yaml.
Expand Down
5 changes: 5 additions & 0 deletions framework/controller.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

import os
import yaml, memcache, json, gettext, locale
from cgi import escape
Expand Down
5 changes: 5 additions & 0 deletions framework/emailer.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

"""
Emailing utility. Emailing is ultimately handled through webpy.
Expand Down
5 changes: 5 additions & 0 deletions framework/file_server.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

import cStringIO
import traceback
import framework.util as util
Expand Down
5 changes: 5 additions & 0 deletions framework/filters.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

def strslice(s, length):
if not isinstance(s, basestring):
s = str(s)
Expand Down
5 changes: 5 additions & 0 deletions framework/image_server.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

import cStringIO
import framework.util as util
from framework.s3uploader import *
Expand Down
5 changes: 5 additions & 0 deletions framework/log.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

"""
Extend the standard log module to enable some more detailed debug information.
"""
Expand Down
5 changes: 5 additions & 0 deletions framework/monitor.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

import util as util
from framework.log import log
from framework.controller import *
Expand Down
5 changes: 5 additions & 0 deletions framework/orm_holder.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

from lib import web
from sqlalchemy import create_engine
from sqlalchemy.orm import scoped_session, sessionmaker
Expand Down
5 changes: 5 additions & 0 deletions framework/page.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

import cgi, os
import framework.filters as filters
from lib import jinja2
Expand Down
5 changes: 5 additions & 0 deletions framework/s3uploader.py
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

#!/usr/bin/env python

import mimetypes
Expand Down
5 changes: 5 additions & 0 deletions framework/session_holder.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

"""
Simple module to handle persistent sessions.
Expand Down
5 changes: 5 additions & 0 deletions framework/task_manager.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

#!/usr/bin/env python

"""
Expand Down
5 changes: 5 additions & 0 deletions framework/util.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

# generally try not to import things up here
import re, base64, string, urlparse, datetime
from framework.log import log
Expand Down
5 changes: 5 additions & 0 deletions giveaminute/filters.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

from helpers.custom_filters import filters as custom_filters

# Put model-specific filters here.
Expand Down
5 changes: 5 additions & 0 deletions giveaminute/idea.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

import framework.util as util
import helpers.censor as censor
from framework.log import log
Expand Down
5 changes: 5 additions & 0 deletions giveaminute/keywords.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

# find keywords in a string
def getKeywords(db, s):
sql = "select keyword from keyword"
Expand Down
5 changes: 5 additions & 0 deletions giveaminute/location.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

from framework.log import log

def getLocationsWithScoring(db):
Expand Down
5 changes: 5 additions & 0 deletions giveaminute/messaging.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

"""
Module to handle general messaging, though mostly emailing.
Emailing templates can be found in templates/email.
Expand Down
5 changes: 5 additions & 0 deletions giveaminute/metrics.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

from framework.log import log

def getCounts(db):
Expand Down
5 changes: 5 additions & 0 deletions giveaminute/migrations/manage.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

#!/usr/bin/env python
from migrate.versioning.shell import main
main(debug='False')
5 changes: 5 additions & 0 deletions giveaminute/migrations/versions/001_Initial_models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

from sqlalchemy import *
from migrate import *

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

from sqlalchemy import *
from migrate import *

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

from sqlalchemy import *
from migrate import *

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

from sqlalchemy import *
from migrate import *

Expand Down
5 changes: 5 additions & 0 deletions giveaminute/migrations/versions/005_Add_Events_model.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

from sqlalchemy import *
from migrate import *

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

"""
SQLAlchemy migration to add Feeback Type column to
Feedback table.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

from sqlalchemy import *
from migrate import *

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

from sqlalchemy import *
from migrate import *

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

from sqlalchemy import *
from migrate import *

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

from sqlalchemy import *
from migrate import *

Expand Down
5 changes: 5 additions & 0 deletions giveaminute/models.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
"""
:copyright: (c) 2011 Local Projects, all rights reserved
:license: Affero GNU GPL v3, see LICENSE for more details.
"""

import re

from collections import defaultdict
Expand Down
Loading

0 comments on commit 711b2ea

Please sign in to comment.