code stringlengths 1 1.72M | language stringclasses 1
value |
|---|---|
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
#
# Copyright (c) 2010 Sony Pictures Imageworks Inc.
#
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# Redistributions of source code must retain the above copyright
# notice, this list of c... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with... | Python |
#!/usr/bin/env mayapy
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks, Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source ... | Python |
#!/usr/bin/env python2.5
#-*- mode: python -*-
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistrib... | Python |
#!/usr/bin/env python2.6
#-*- mode: python -*-
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistrib... | Python |
##-*****************************************************************************
##
## Copyright (c) 2009-2011,
## Sony Pictures Imageworks Inc. and
## Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
##
## All rights reserved.
##
## Redistribution and use in source and binary forms, with ... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Datastore model classes for the members.
#
# Created on 2008-10-28.
# $Id: models.py 29 2009-09-23 21:22:49Z guolin.mobi $
#
import logging
import datetime
from google.appengine.ext import db
from google.appengine.api import users
from afcpweb.apps.commo... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Views for the members app.
#
# Created on 2008-10-28.
# $Id: views.py 40 2010-03-08 23:05:09Z guolin.mobi $
#
import logging
import urllib
from django.template import loader
from django.template import Context
from django.http import HttpResponseRedirect
fr... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Created on 2008-10-28
# $Id: __init__.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
| Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# all info about Paristech ecole and universities in China
# Created on 2008-11-19.
# $Id: paristech.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
class Ecole(object):
def __init__(self, acronym, name, website, desc=None):
self.acronym = acronym
self... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Datastore model classes for the members.
#
# Created on 2008-10-28.
# $Id: models.py 29 2009-09-23 21:22:49Z guolin.mobi $
#
import logging
import datetime
from google.appengine.ext import db
from google.appengine.api import users
from afcpweb.apps.commo... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Inscription app URL mappings.
#
# Created on 2008-10-28.
# $Id: urls.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
from django.conf.urls.defaults import patterns
urlpatterns = patterns( "afcpweb.apps.members.views",
( r"^$" , "view_... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Config for the members app.
#
# Created on 2008-10-28.
# $Id: views.py 40 2010-03-08 23:05:09Z guolin.mobi $
#
class Config(object):
"""This class contains constants for the inscription app."""
APP_NAME = "members"
URL_PREFIX = "/members" | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Inscription app URL mappings.
#
# Created on 2008-10-28.
# $Id: urls.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
from django.conf.urls.defaults import patterns
urlpatterns = patterns( "afcpweb.apps.members.views",
( r"^$" , "view_... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
# all info about Paristech ecole and universities in China
# Created on 2008-11-19.
# $Id: paristech.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
class Ecole(object):
def __init__(self, acronym, name, website, desc=None):
self.acronym = acronym
self... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Created on 2008-10-28
# $Id: __init__.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
| Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Views for the members app.
#
# Created on 2008-10-28.
# $Id: views.py 40 2010-03-08 23:05:09Z guolin.mobi $
#
import logging
import urllib
from django.template import loader
from django.template import Context
from django.http import HttpResponseRedirect
fr... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Config for the members app.
#
# Created on 2008-10-28.
# $Id: views.py 40 2010-03-08 23:05:09Z guolin.mobi $
#
class Config(object):
"""This class contains constants for the inscription app."""
APP_NAME = "members"
URL_PREFIX = "/members" | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Views for the members app.
#
# Created on 2008-10-28.
# $Id: views.py 40 2010-03-08 23:05:09Z guolin.mobi $
#
from afcpweb.apps.common import utils
from afcpweb.apps.common.actions import get_common_data
from afcpweb.apps.members import paristech
from afcpweb.a... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Created on 2008-10-28
# $Id: __init__.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
| Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Inscription app URL mappings.
#
# Created on 2008-10-28.
# $Id: urls.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
from django.conf.urls.defaults import patterns
urlpatterns = patterns( "afcpweb.apps.test.views",
( r"^$" , "view_tes... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Inscription app URL mappings.
#
# Created on 2008-10-28.
# $Id: urls.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
from django.conf.urls.defaults import patterns
urlpatterns = patterns( "afcpweb.apps.test.views",
( r"^$" , "view_tes... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Created on 2008-10-28
# $Id: __init__.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
| Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Views for the members app.
#
# Created on 2008-10-28.
# $Id: views.py 40 2010-03-08 23:05:09Z guolin.mobi $
#
from afcpweb.apps.common import utils
from afcpweb.apps.common.actions import get_common_data
from afcpweb.apps.members import paristech
from afcpweb.a... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Datastore model classes for admin app.
#
# Created on 2010-07-18.
# $Id: models.py 29 2010-07-18 21:22:49Z guolin.mobi $
#
from google.appengine.ext import db
class AFCPActivity(db.Model):
"This class represents an Activity"
uid = db.StringProperty(r... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Access for admin app.
#
# Created on 2010-07-18.
# $Id: models.py 29 2010-07-18 21:22:49Z guolin.mobi $
#
from afcpweb.apps.common.access import Access
class AdminAccess(Access):
def can_consult(self):
return is_webmaster(self._user)
def can_edi... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Views for the admin app.
#
# Created on 2008-10-28.
# $Id: views.py 40 2010-03-08 23:05:09Z guolin.mobi $
#
import urllib
import logging
import datetime
from django.template import loader
from django.template import Context
from django.http import HttpRespo... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Access for admin app.
#
# Created on 2010-07-18.
# $Id: models.py 29 2010-07-18 21:22:49Z guolin.mobi $
#
from afcpweb.apps.common.access import Access
class AdminAccess(Access):
def can_consult(self):
return is_webmaster(self._user)
def can_edi... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Datastore model classes for admin app.
#
# Created on 2010-07-18.
# $Id: models.py 29 2010-07-18 21:22:49Z guolin.mobi $
#
from google.appengine.ext import db
class AFCPActivity(db.Model):
"This class represents an Activity"
uid = db.StringProperty(r... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Admin app URL mappings.
#
# Created on 2008-10-28.
# $Id: urls.py 40 2010-03-08 23:05:09Z guolin.mobi $
#
from django.conf.urls.defaults import patterns
urlpatterns = patterns( "afcpweb.apps.admin.views",
( r"^$" , "admin" ),
( ... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Created on 2008-05-06.
# $Id: views.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
class Config(object):
"""This class contains constants for the admin app."""
APP_NAME = "admin"
URL_PREFIX = "/admin" | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Admin app URL mappings.
#
# Created on 2008-10-28.
# $Id: urls.py 40 2010-03-08 23:05:09Z guolin.mobi $
#
from django.conf.urls.defaults import patterns
urlpatterns = patterns( "afcpweb.apps.admin.views",
( r"^$" , "admin" ),
( ... | Python |
# !/usr/bin/python
# -*- coding: utf-8 -*-
#
# Created on 2008-04-28
# $Id: __init__.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
| Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Views for the admin app.
#
# Created on 2008-10-28.
# $Id: views.py 40 2010-03-08 23:05:09Z guolin.mobi $
#
import urllib
import logging
import datetime
from django.template import loader
from django.template import Context
from django.http import HttpRespo... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Created on 2008-05-06.
# $Id: views.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
class Config(object):
"""This class contains constants for the admin app."""
APP_NAME = "admin"
URL_PREFIX = "/admin" | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Created on 2008-05-06.
# $Id: views.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
import logging
from django.template import loader
from django.template import Context
from django.http import HttpRequest
from django.http import HttpResponse
from django.http impo... | Python |
# !/usr/bin/python
# -*- coding: utf-8 -*-
#
# Created on 2008-10-28
# $Id: __init__.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
| Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Created on 2008-05-06.
# $Id: views.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
import logging
from django.template import loader
from django.template import Context
from django.http import HttpRequest
from django.http import HttpResponse
from django.http impo... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Views for the Forum webapp.
#
# Created on 2008-10-28.
# $Id: views.py 41 2010-07-21 10:33:30Z guolin.mobi $
#
from afcpweb.apps.common import utils
from afcpweb.apps.common.actions import get_common_data
from afcpweb.apps.forum import resources
from afcpweb.... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008 ZHENG Zhong <heavyzheng nospam-at gmail D0T com>
# - http://heavyz.blogspot.com/
# - http://buggarden.blogspot.com/
#
# Created on 2008-12-08.
# $Id: resources.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
class BannerImage(object):
def __in... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
#
# Forum app URL mappings.
#
# Created on 2008-10-28.
# $Id: urls.py 41 2010-07-21 10:33:30Z guolin.mobi $
#
from django.conf.urls.defaults import patterns, include
urlpatterns = patterns("afcpweb.apps.forum.views",
( r"^lang/$" ... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Forum app global configurations.
#
# Created on 2008-10-28.
# $Id: config.py 41 2010-07-21 10:33:30Z guolin.mobi $
#
class Config(object):
"""This class contains constants for the AFCP webapp."""
APP_NAME = "forum"
URL_PREFIX = "/forum... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
#
# Forum app URL mappings.
#
# Created on 2008-10-28.
# $Id: urls.py 41 2010-07-21 10:33:30Z guolin.mobi $
#
from django.conf.urls.defaults import patterns, include
urlpatterns = patterns("afcpweb.apps.forum.views",
( r"^lang/$" ... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008 ZHENG Zhong <heavyzheng nospam-at gmail D0T com>
# - http://heavyz.blogspot.com/
# - http://buggarden.blogspot.com/
#
# Created on 2008-04-28
# $Id: __init__.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
| Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Views for the Forum webapp.
#
# Created on 2008-10-28.
# $Id: views.py 41 2010-07-21 10:33:30Z guolin.mobi $
#
from afcpweb.apps.common import utils
from afcpweb.apps.common.actions import get_common_data
from afcpweb.apps.forum import resources
from afcpweb.... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Forum app global configurations.
#
# Created on 2008-10-28.
# $Id: config.py 41 2010-07-21 10:33:30Z guolin.mobi $
#
class Config(object):
"""This class contains constants for the AFCP webapp."""
APP_NAME = "forum"
URL_PREFIX = "/forum... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008 ZHENG Zhong <heavyzheng nospam-at gmail D0T com>
# - http://heavyz.blogspot.com/
# - http://buggarden.blogspot.com/
#
# Created on 2008-12-08.
# $Id: resources.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
class BannerImage(object):
def __in... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Created on 2008-04-28
# $Id: __init__.py 49 2010-07-21 15:54:10Z guolin.mobi $
#
| Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008 ZHENG Zhong <heavyzheng nospam-at gmail D0T com>
# - http://heavyz.blogspot.com/
# - http://buggarden.blogspot.com/
#
# Modified Django session middleware classes for Google App Engine. This middleware uses google's
# memcache instead of relationa... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008 ZHENG Zhong <heavyzheng nospam-at gmail D0T com>
# - http://heavyz.blogspot.com/
# - http://buggarden.blogspot.com/
#
# Django common middleware classes for the Bug Garden webapp.
#
# Created on 2008-10-20.
# $Id: common.py 26 2009-08-04 22:06:0... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008 ZHENG Zhong <heavyzheng nospam-at gmail D0T com>
# - http://heavyz.blogspot.com/
# - http://buggarden.blogspot.com/
#
# Modified Django session middleware classes for Google App Engine. This middleware uses google's
# memcache instead of relationa... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008 ZHENG Zhong <heavyzheng nospam-at gmail D0T com>
# - http://heavyz.blogspot.com/
# - http://buggarden.blogspot.com/
#
# Created on 2008-11-12.
# $Id: __init__.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
| Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008 ZHENG Zhong <heavyzheng nospam-at gmail D0T com>
# - http://heavyz.blogspot.com/
# - http://buggarden.blogspot.com/
#
# Django common middleware classes for the Bug Garden webapp.
#
# Created on 2008-10-20.
# $Id: common.py 26 2009-08-04 22:06:0... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008 ZHENG Zhong <heavyzheng nospam-at gmail D0T com>
# - http://heavyz.blogspot.com/
# - http://buggarden.blogspot.com/
#
# Utility functions.
#
# Created on 2008-11-05.
# $Id: utils.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
import logging
imp... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Access for global app.
#
# Created on 2010-07-18.
# $Id: models.py 29 2010-07-18 21:22:49Z guolin.mobi $
#
from afcpweb.apps.common.config import Config
def is_webmaster(user):
if not user:
return False
else:
return user.email() in Config.ADMINS
... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Views for the global app.
#
# Created on 2008-10-28.
# $Id: views.py 40 2010-03-08 23:05:09Z guolin.mobi $
#
from django.http import HttpResponseRedirect
from afcpweb.apps.members.models import get_current_user
from afcpweb.apps.common import utils
from afcpweb.apps.commo... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Access for global app.
#
# Created on 2010-07-18.
# $Id: models.py 29 2010-07-18 21:22:49Z guolin.mobi $
#
from afcpweb.apps.common.config import Config
def is_webmaster(user):
if not user:
return False
else:
return user.email() in Config.ADMINS
... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# afcpweb app commom actions.
#
# Created on 2008-10-28.
# $Id: urls.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
import urllib
from afcpweb.apps.common.config import Config
from afcpweb.apps.members.models import get_current_user
from afcpweb.apps.members.models import creat... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Common URL mappings.
#
# Created on 2008-10-28.
# $Id: urls.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
from django.conf.urls.defaults import patterns
urlpatterns = patterns( "afcpweb.apps.common.views",
( r"^login_ok/(?P<url>.*)$" , "login_ok" ... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# AFCP webapp global configurations.
#
# Created on 2008-10-28.
# $Id: config.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
class Config(object):
"""This class contains constants for the AFCP webapp."""
APP_NAME = "common"
STATIC_PREFIX = "/static"
VE... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008 ZHENG Zhong <heavyzheng nospam-at gmail D0T com>
# - http://heavyz.blogspot.com/
# - http://buggarden.blogspot.com/
#
# Utility functions.
#
# Created on 2008-11-05.
# $Id: utils.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
import logging
imp... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Common URL mappings.
#
# Created on 2008-10-28.
# $Id: urls.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
from django.conf.urls.defaults import patterns
urlpatterns = patterns( "afcpweb.apps.common.views",
( r"^login_ok/(?P<url>.*)$" , "login_ok" ... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# afcpweb app commom actions.
#
# Created on 2008-10-28.
# $Id: urls.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
import urllib
from afcpweb.apps.common.config import Config
from afcpweb.apps.members.models import get_current_user
from afcpweb.apps.members.models import creat... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2008 ZHENG Zhong <heavyzheng nospam-at gmail D0T com>
# - http://heavyz.blogspot.com/
# - http://buggarden.blogspot.com/
#
# Created on 2008-04-28
# $Id: __init__.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
| Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Views for the global app.
#
# Created on 2008-10-28.
# $Id: views.py 40 2010-03-08 23:05:09Z guolin.mobi $
#
from django.http import HttpResponseRedirect
from afcpweb.apps.members.models import get_current_user
from afcpweb.apps.common import utils
from afcpweb.apps.commo... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# AFCP webapp global configurations.
#
# Created on 2008-10-28.
# $Id: config.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
class Config(object):
"""This class contains constants for the AFCP webapp."""
APP_NAME = "common"
STATIC_PREFIX = "/static"
VE... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Django settings for afcpweb project.
#
# Created on 2008-04-28
# $Id: settings.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
import os
# importation du module de traduction de python en mode paresseux
# pour pouvoir l'utiliser avec _ comme nom de fonction.
from ... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Django settings for afcpweb project.
#
# Created on 2008-04-28
# $Id: settings.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
import os
# importation du module de traduction de python en mode paresseux
# pour pouvoir l'utiliser avec _ comme nom de fonction.
from ... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2008 ZHENG Zhong <heavyzheng nospam at gmail D0T com>
# - http://heavyz.blogspot.com/
# - http://buggarden.blogspot.com/
#
# Created on 2008-04-28
# $Id: __init__.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
| Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# $Id: urls.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
# Django URL mappings.
from django.conf.urls.defaults import patterns
from django.conf.urls.defaults import include
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns( "",
... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# $Id: urls.py 26 2009-08-04 22:06:00Z guolin.mobi $
#
# Django URL mappings.
from django.conf.urls.defaults import patterns
from django.conf.urls.defaults import include
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns( "",
... | Python |
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Created on 2009-11-18.
# $Id$
#
from django import template
from django.utils.safestring import mark_safe
register = template.Library()
@register.filter
def mark_escape(value):
return mark_safe(value)
# EOF
| Python |
Subsets and Splits
SQL Console for ajibawa-2023/Python-Code-Large
Provides a useful breakdown of language distribution in the training data, showing which languages have the most samples and helping identify potential imbalances across different language groups.