app/soc/views/site/home.py
changeset 88 9a8180f0941a
parent 81 b03b1ec17727
child 141 e120c24b89e2
equal deleted inserted replaced
87:7ccc026f5793 88:9a8180f0941a
    12 # distributed under the License is distributed on an "AS IS" BASIS,
    12 # distributed under the License is distributed on an "AS IS" BASIS,
    13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14 # See the License for the specific language governing permissions and
    14 # See the License for the specific language governing permissions and
    15 # limitations under the License.
    15 # limitations under the License.
    16 
    16 
    17 """Melange home page
    17 """Site-wide Melange home page views.
       
    18 
       
    19 public: how the general public sees the site home page of a Melange
       
    20   site
       
    21   
       
    22 There may (eventually) be different views of the site home page for
       
    23 logged-in Users (such as a debug() view for logged-in Developers). 
    18 """
    24 """
    19 
    25 
    20 __authors__ = [
    26 __authors__ = [
    21   '"Pawel Solyga" <pawel.solyga@gmail.com>',
    27   '"Pawel Solyga" <pawel.solyga@gmail.com>',
    22   ]
    28   ]
    23 
    29 
    24 
    30 
    25 from google.appengine.api import users
    31 from google.appengine.api import users
    26 from django import http
       
    27 from django import shortcuts
       
    28 from soc.views.helpers import response_helpers
    32 from soc.views.helpers import response_helpers
    29 
    33 
       
    34 
    30 def public(request, template='soc/site/home/public.html'):
    35 def public(request, template='soc/site/home/public.html'):
    31   """Home site view of Melange.
    36   """How the "general public" sees the Melange site home page.
    32 
    37 
    33   Args:
    38   Args:
    34     request: the standard django request object.
    39     request: the standard django request object.
    35     template: the template path to use for rendering the template.
    40     template: the template path to use for rendering the template.
    36 
    41