code
stringlengths
1
1.72M
language
stringclasses
1 value
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2008 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http:...
Python
#!/usr/bin/env python """ FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2008 Frederico Caldeira Knabben == BEGIN LICENSE == Licensed under the terms of any of the following licenses at your choice: - GNU General Public License Version 2 or later (the "GPL") http:...
Python
# coding: UTF-8 from django.conf.urls.defaults import * from views import feeds_dic urlpatterns = patterns('', (r'^$', 'views.index'), (r'^login/$', 'views.login'), (r'^robots.txt$', 'views.robots'), (r'^blog/((?P<p_id>[\w-]+...
Python
import os DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( ('Leo ZHOU', 'zhlwish@gmail.com'), ) MANAGERS = ADMINS DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'. DATABASE_NAME = '' # Or path to database file if using sqlite3. DATABA...
Python
# coding=utf-8 from google.appengine.ext import db #分类 class Category(db.Model): name = db.StringProperty( required = True) order = db.IntegerProperty(required = True, default = 0) #日志 class Link(db.Model): url = db.URLProperty(required = True) title = db.StringProperty(required = True) order = db.I...
Python
# -*- coding: UTF-8 -*- from django import template from django.template import Node, NodeList, Template, Context, Variable from django.template import TemplateSyntaxError, VariableDoesNotExist, BLOCK_TAG_START, BLOCK_TAG_END, VARIABLE_TAG_START, VARIABLE_TAG_END, SINGLE_BRACE_START, SINGLE_BRACE_END, COMMENT_TAG_ST...
Python
# coding=utf-8 from django.http import HttpResponse,HttpResponseRedirect from django.shortcuts import render_to_response from django.core import serializers from django.utils import simplejson from django.template import Template from django.template import Context import template from google.appengine.ap...
Python
# coding=utf-8 from __future__ import division from django.template import Template from django.template import Context from django.core.paginator import * from google.appengine.api import users from google.appengine.ext import db from blog.models import Category from blog.models import Diary from blog.m...
Python
#coding=utf-8 from django.http import HttpResponse from django.http import HttpResponsePermanentRedirect from django.shortcuts import render_to_response from syndication.feeds import Feed from blog.models import Diary def index(request): return render_to_response('index.html') def login(request): if ...
Python
import random def rand_color(): hex_char = ('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f') color = "#" for i in range(6): color += random.choice(hex_char) if color == "#ffffff": return rand_color() else: return color
Python
# coding=utf-8 from google.appengine.ext import db #留言 class Message(db.Model): content = db.StringProperty( multiline=True ) author = db.UserProperty(auto_current_user=True) nick_name = db.StringProperty() email = db.EmailProperty() post_time = db.DateTimeProperty( auto_now_add = True ) parent = db.Re...
Python
import os.path import csv import glob weather_years = [2008, 2009] # Load the mapping from airports to weather station WBAN codes. airports = { } with open('data/airport_weather_stations.csv') as f : data = csv.DictReader(f, delimiter=',', quotechar='"') for line in data : airports[line["airport"]] = line["wban"]...
Python
import csv import sys import glob import os import os.path holidays = { "2008-05-25": "memorial-1", "2008-05-26": "memorial", "2008-05-27": "memorial+1", "2008-09-01": "labor", "2008-11-26": "thanksgiving-1", "2008-11-27": "thanksgiving", "2008-11-28": "thanksgiving+1", "2008-11-29": "thanksgiving+2", "2008-1...
Python
# Match up three-letter airport codes to three-letter weather # station call signs, as best we can. import os.path import csv import glob weather_years = [2008, 2009] # Get list of airport codes in the data. airports = { } airport_descr = { } with open('data/ontime/meta/L_AIRPORTS.csv') as f : data = csv.DictReader...
Python
import csv import sys import glob import os import os.path def mean(data) : if len(data) < 10 : return None m = 0.0 for x in data : if x == True : x = 1 elif x == False : x = 0 m += x m /= float(len(data)) return m def percentiles(data) : if len(data) < 10 : return [None,None,None] data.sort() ...
Python
#!/usr/bin/python -S """ curl_.py """ import os import sys import time import urllib2 import tnet class Error(Exception): pass def log(msg, *args): if args: msg = msg % args # TODO: Sometimes when running through xmap.py, I get this -- EWOULDBLOCK. # Why? Oh because in xmap.py, I capture stderr and s...
Python
#!/usr/bin/python -S """ Usage: fly [options] run [--] <dir> <args>... fly [options] stop <dir> fly [options] state <dir> fly -h | --help fly --version Actions: run Run the given command. If a process doesn't exist already, it will start it. It won't start more than once process per state...
Python
#!/usr/bin/python -S """ See how much slower it is to read char by char vs line-by line. """ __author__ = 'Andy Chu' import os import sys import time class Error(Exception): pass def main(argv): """Returns an exit code.""" style = argv[1] if style == 'char': while True: c = os.read(sys.stdin.f...
Python
#!/usr/bin/python -S """ lock_demo.py """ __author__ = 'Andy Chu' import sys import fcntl import time class Error(Exception): pass def main(argv): """Returns an exit code.""" FILE = 'lock' # This could just be 'r' if we pre-create the lock file. print 'Opening' f = open(FILE, "w") print 'Waiting...
Python
#!/usr/bin/python -S """ interleave.py """ __author__ = 'Andy Chu' import os import sys import tnet class Error(Exception): pass def main(argv): """Returns an exit code.""" boundary = os.getenv('PGI_BOUNDARY') assert boundary, 'PGI_BOUNDARY required' while True: try: request = tnet.load(sy...
Python
#!/usr/bin/python -S """ fly_test.py: Tests for fly.py """ import os import unittest import fly # module under test class FlyTest(unittest.TestCase): def testPipes(self): # TODO: This test depends on real files. result = fly.GetWorkerState('fly-state/curl') # This fails if the process isn't up! ...
Python
#!/usr/bin/python -S """ count_.py Demonstrates the simple protocol, where you just print a record with 'stdout', instead of a header with 'stdout_boundary', and then the actual stdout. """ import os import json import sys import time import tnet def log(msg, *args): if args: msg = msg % args print >>sys.s...
Python
#!/usr/bin/python ## mkboard.py -- atmel pio mux utility ## ## Copyright 2006, Brian Swetland. All rights reserved. ## See provided LICENSE file or http://frotz.net/LICENSE for details. ## import os, sys, string # pindef -> num, out, pull, pio, sela, selb reg_output_disable = 0 reg_output_enable = 0 reg_pullup_dis...
Python
#!/usr/bin/python2.6 # # Simple http server to emulate api.playfoursquare.com import logging import shutil import sys import urlparse import SimpleHTTPServer import BaseHTTPServer class RequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): """Handle playfoursquare.com requests, for testing.""" def do_GET(self...
Python
#!/usr/bin/python import os import subprocess import sys BASEDIR = '../main/src/com/joelapenna/foursquare' TYPESDIR = '../captures/types/v1' captures = sys.argv[1:] if not captures: captures = os.listdir(TYPESDIR) for f in captures: basename = f.split('.')[0] javaname = ''.join([c.capitalize() for c in basena...
Python
#!/usr/bin/python """ Pull a oAuth protected page from foursquare. Expects ~/.oget to contain (one on each line): CONSUMER_KEY CONSUMER_KEY_SECRET USERNAME PASSWORD Don't forget to chmod 600 the file! """ import httplib import os import re import sys import urllib import urllib2 import urlparse import user from xml....
Python
#!/usr/bin/python import datetime import sys import textwrap import common from xml.dom import pulldom PARSER = """\ /** * Copyright 2009 Joe LaPenna */ package com.joelapenna.foursquare.parsers; import com.joelapenna.foursquare.Foursquare; import com.joelapenna.foursquare.error.FoursquareError; import com.joel...
Python
#!/usr/bin/python import logging from xml.dom import minidom from xml.dom import pulldom BOOLEAN = "boolean" STRING = "String" GROUP = "Group" # Interfaces that all FoursquareTypes implement. DEFAULT_INTERFACES = ['FoursquareType'] # Interfaces that specific FoursqureTypes implement. INTERFACES = { } DEFAULT_CLA...
Python
import time db=DAL() db.define_table('a',Field('b')) while True: t0=time.time() id=db.a.insert(b='x'*512) db.commit() print id, time.time()-t0
Python
import sys, os, re, time, datetime ticker=sys.argv[1] print sys.argv productid=db.product(name=ticker).id filename=os.path.join('applications',request.application,'modules',ticker+'.log') filenameidx=os.path.join('applications',request.application,'modules',ticker+'.idx') re_match=re.compile('(?P<t>\d+(\.\d+)?)\: ma...
Python
import random, hmac, urllib, time, optparse def robot_order(price,owner='1,2'): owners=str(owner).split(',') owner=owners[random.randint(0,len(owners)-1)] i=random.randint(0,3) p=price if i is 1: p=p-abs(random.gauss(0,10)) # dollars if p<=20: p=20+abs(random.gauss(0,20)) ...
Python
#!/usr/bin/python # example based on http://thomas.pelletier.im/2010/08/websocket-tornado-redis/ hmac_key = 'secret' import tornado.httpserver import tornado.websocket import tornado.ioloop import tornado.web import hmac import re import time import sys import optparse import simplejson (TYPE,QUANTITY,PRICE,STOP,OID...
Python
response.title = settings.title response.subtitle = settings.subtitle response.meta.author = '%s <%s>' % (settings.author, settings.author_email) response.meta.keywords = settings.keywords response.meta.description = settings.description response.menu = [ (T('Index'),URL('index').xml()==URL().xml(),URL('index'),[])...
Python
from gluon.storage import Storage settings = Storage() settings.migrate = True settings.title = '[E]xchange [M]atching and [T]trading [E]ngine' settings.subtitle = 'full-stack exchange and trading plaform (fast, scalable, secure)' settings.author = 'mdipierro' settings.author_email = 'mdipierro@cs.depaul.edu' settings...
Python
# -*- coding: utf-8 -*- db = DAL('sqlite://storage.sqlite') # if not, use SQLite or other DB from gluon.tools import * mail = Mail() # mailer auth = Auth(globals(),db) # authentication/authorization crud = Crud(globals(),db) # for CRUD ...
Python
### we prepend t_ to tablenames and f_ to fieldnames for disambiguity ######################################## db.define_table('product', Field('name', type='string',label=T('Name'),requires=[IS_MATCH('[_a-z]+'),IS_NOT_IN_DB(db,'product.name')]), Field('description', typ...
Python
# -*- coding: utf-8 -*- # ########################################################## # ## make sure administrator is on localhost # ########################################################### import os import socket import datetime import copy import gluon.contenttype import gluon.fileutils # ## critical --- make a ...
Python
# -*- coding: utf-8 -*- ### required - do no delete def user(): return dict(form=auth()) def download(): return response.download(request,db) def call(): session.forget() return service() ### end requires def index(): return dict() def error(): return dict() @auth.requires_login() def products(): ...
Python
import socket debug = True ## Trace debugging messages. # @param aString String to be printed. def printd( aString ): if debug: print aString # FlyerSettings # define the default settings class FlyerSettings( dict ): ## The constructor # @param self: The object pointer. def _...
Python
import socket debug = True ## Trace debugging messages. # @param aString String to be printed. def printd( aString ): if debug: print aString # FlyerSettings # define the default settings class FlyerSettings( dict ): ## The constructor # @param self: The object pointer. def _...
Python
#!/usr/bin/python import os import os.path import sys # you're going to want to change this location. appFolder = "/Volumes/srv/Users/gus/Applications" if not os.path.exists(appFolder): print("The folder " + appFolder + " does not exist.") sys.exit(1) s = os.popen("curl http://nightly.webkit.org/builds/trun...
Python
#!/usr/bin/env python3.0 ''' HELLO, This is Gus's command line interface for Time Machine, because he can't stand the built in way to restore. There are probably alllllllll kinds of problems with this script, so use at your own risk. BUILT WITH BBEDIT ''' import os import os.path import sys import shutil baseDi...
Python
#!/usr/bin/env python3.0 ''' HELLO, This is Gus's command line interface for Time Machine, because he can't stand the built in way to restore. There are probably alllllllll kinds of problems with this script, so use at your own risk. BUILT WITH BBEDIT ''' import os import os.path import sys import shutil baseDi...
Python
#!/usr/bin/python import os import os.path import sys # you're going to want to change this location. appFolder = "/Volumes/srv/Users/gus/Applications" if not os.path.exists(appFolder): print("The folder " + appFolder + " does not exist.") sys.exit(1) s = os.popen("curl http://nightly.webkit.org/builds/trun...
Python
#!/usr/bin/python -u # -*- coding: utf-8 -*- """ Python Highlighter Version: 0.8 py2html.py [options] files... options: -h print help - read from stdin, write to stdout -stdout read from files, write to stdout -files ...
Python
#!/usr/bin/python -u # -*- coding: utf-8 -*- """ Python Highlighter Version: 0.8 py2html.py [options] files... options: -h print help - read from stdin, write to stdout -stdout read from files, write to stdout -files ...
Python
"""Module to analyze Python source code; for syntax coloring tools. Interface: tags = fontify(pytext, searchfrom, searchto) The 'pytext' argument is a string containing Python source code. The (optional) arguments 'searchfrom' and 'searchto' may contain a slice in pytext. The returned value is a list of tuples, for...
Python
#!/usr/bin/env python # encoding: utf-8 """ BLIPConnectionTest.py Created by Jens Alfke on 2008-06-04. This source file is test/example code, and is in the public domain. """ from BLIP import Connection, OutgoingRequest, kOpening import asyncore from cStringIO import StringIO from datetime import datetime import log...
Python
#!/usr/bin/env python # encoding: utf-8 """ BLIPListenerTest.py Created by Jens Alfke on 2008-06-04. This source file is test/example code, and is in the public domain. """ from BLIP import Listener import asyncore import logging import unittest class BLIPListenerTest(unittest.TestCase): def testListener(...
Python
# encoding: utf-8 """ BLIP.py Created by Jens Alfke on 2008-06-03. Copyright notice and BSD license at end of file. """ import asynchat import asyncore from cStringIO import StringIO import logging import socket import struct import sys import traceback import zlib # Connection status enumeration: kDisconnected = -...
Python
#!/usr/bin/env python # encoding: utf-8 """ BLIPListenerTest.py Created by Jens Alfke on 2008-06-04. This source file is test/example code, and is in the public domain. """ from BLIP import Listener import asyncore import logging import unittest class BLIPListenerTest(unittest.TestCase): def testListener(...
Python
#!/usr/bin/env python # encoding: utf-8 """ BLIPConnectionTest.py Created by Jens Alfke on 2008-06-04. This source file is test/example code, and is in the public domain. """ from BLIP import Connection, OutgoingRequest, kOpening import asyncore from cStringIO import StringIO from datetime import datetime import log...
Python
import JSTalk vp = JSTalk.application("VoodooPad Pro") print(vp) firstDoc = vp.orderedDocuments().objectAtIndex_(0) for pageKey in firstDoc.keys(): print(pageKey) page = firstDoc.pageForKey_(pageKey) if (page.uti() == "com.fm.page"): pageText = page.dataAsAttributedString().string() ...
Python
from Foundation import * from AppKit import * import time def application(appName): appPath = NSWorkspace.sharedWorkspace().fullPathForApplication_(appName); if (not appPath): print("Could not find application '" + appName + "'") return None appBundle = NSBundle.bundleWithPat...
Python
#!/usr/bin/python import sys,string from socket import * import hashlib import random server_host_port=[ ["127.0.0.1",12324], ["127.0.0.1",12322], ["127.0.0.1",12323] ] sock_con_fd=[] def store_key(key): host_index = int(hashlib.md5(key).hexdigest(),16) % len(server_host_port) ...
Python
#!/usr/bin/python import sys,string from socket import * import hashlib import random server_host_port=[ ["127.0.0.1",12324], ["127.0.0.1",12322], ["127.0.0.1",12323] ] sock_con_fd=[] def store_key(key): host_index = int(hashlib.md5(key).hexdigest(),16) % len(server_host_port) ...
Python
#!/usr/bin/python import sys from socket import * serverHost = 'localhost' # servername is localhost serverPort = 12321# use arbitrary port > 1024 s = socket(AF_INET, SOCK_STREAM) # create a TCP socket s.connect((serverHost, serverPort)) # connect to server on the port s.send('set xguru 0 0 3 123'); d...
Python
#!/usr/bin/python import sys from socket import * serverHost = 'localhost' # servername is localhost serverPort = 12321# use arbitrary port > 1024 s = socket(AF_INET, SOCK_STREAM) # create a TCP socket s.connect((serverHost, serverPort)) # connect to server on the port s.send('set xguru 0 0 3 123'); d...
Python
from libflycached import * if __name__=="__main__": print("now in main") connect_host() store_item('xguru',0,0,3,123) get_item('xguru') close_connection()
Python
#!/usr/bin/python import sys,string import hashlib from socket import * server_host_port=[ ["127.0.0.1",12324], ["127.0.0.1",12322], ["127.0.0.1",12325] ] sock_con_fd=[] def store_item(key,flags,exptime,length,data): host_index = get_host_index(key) now_host_hostname = server...
Python
#!/usr/bin/python import sys,string import hashlib from socket import * server_host_port=[ ["127.0.0.1",12324], ["127.0.0.1",12322], ["127.0.0.1",12325] ] sock_con_fd=[] def store_item(key,flags,exptime,length,data): host_index = get_host_index(key) now_host_hostname = server...
Python
#!/usr/bin/python import sys,string from socket import * import hashlib import random server_host_port=[ ["127.0.0.1",12324], ["127.0.0.1",12322], ["127.0.0.1",12323] ] sock_con_fd=[] def store_key(key): host_index = int(hashlib.md5(key).hexdigest(),16) % len(server_host_port) ...
Python
#!/usr/bin/python import sys,string from socket import * import hashlib import random server_host_port=[ ["127.0.0.1",12324], ["127.0.0.1",12322], ["127.0.0.1",12323] ] sock_con_fd=[] def store_key(key): host_index = int(hashlib.md5(key).hexdigest(),16) % len(server_host_port) ...
Python
import os # My os is Windows 7 ,change this to your os.name if os.name == 'nt': DEBUG = True else: DEBUG = False TEMPLATE_DEBUG = DEBUG TIME_ZONE = 'Asia/Shanghai' #TIME_ZONE = 'PRC' LANGUAGE_CODE = 'zh-cn' SITE_ID = 1 USE_I18N = True SESSION_ENGINE = 'django.contrib.sessions.backends.ca...
Python
#!/usr/bin/env python ''' GAEUnit: Google App Engine Unit Test Framework Usage: 1. Put gaeunit.py into your application directory. Modify 'app.yaml' by adding the following mapping below the 'handlers:' section: - url: /test.* script: gaeunit.py 2. Write your own test cases by extending unittest.TestCas...
Python
# -*- coding:utf-8 -*- #from django.db import models import os import datetime import datastore_cache datastore_cache.DatastoreCachingShim.Install() from appengine_django.models import BaseModel from google.appengine.ext import db from django.utils.encoding import iri_to_uri #themes = os.listdir(os.path.di...
Python
# -*- coding:utf-8 -*- import datetime import md5 from google.appengine.api import users from google.appengine.api import memcache from django.http import HttpResponseRedirect from django.http import HttpResponse from django.utils import simplejson from django.conf import settings def login_required( fun...
Python
from django.shortcuts import render_to_response from blog.models import * def index(request): archives = Archive.all().order('-pub_date') host = request.get_host() return render_to_response('sitemap.xml',dict(archives=archives, host = host))
Python
from google.appengine.ext.db import djangoforms from models import * class CommentForm(djangoforms.ModelForm): class Meta: model = Comment exclude = ['mblog','source','date','archive','avatar'] class ArchiveForm(djangoforms.ModelForm): class Meta: model = Archive exc...
Python
""" """ #from django.test import TestCase import unittest from django.test.client import Client from blog.models import * Author.get_or_insert(key_name='author',name='test') class LoginTest(unittest.TestCase): def setUp(self): self.user = User(name='test',password='password',google_user=None) ...
Python
# -*- coding:utf-8 -*- from google.appengine.api import users from django import template from blog.models import * register = template.Library() class BlogInit(template.Node): def __init__(self): pass def render(self,context): context['env_blog'] = Blog.get_or_insert('blog') ...
Python

Python
from blog.models import * def q_new_comments(num): """Return num comments order by date desc"""
Python
from django.contrib.syndication.feeds import Feed from models import * class LatestArchives(Feed): title = Blog.get_or_insert(key_name='blog').name link = "/" description = Blog.get_or_insert(key_name='blog').description def item_pubdate(self,item): return item.pub_date def ite...
Python
# -*- coding:utf-8 -*- import random import datetime from google.appengine.api import users from google.appengine.ext.webapp.util import login_required from google.appengine.api import memcache from django.http import HttpResponse from django.http import HttpResponseRedirect from django.http import HttpResp...
Python
# coding:utf-8 from django.http import HttpResponseRedirect,HttpResponse from django.shortcuts import render_to_response from django.template.loader import render_to_string from blog.models import * from blog.utils import * def index(request): return render_to_response('mblog/index.html') @master_req...
Python
from google.appengine.api import users from django.shortcuts import render_to_response from django.http import HttpResponseRedirect,HttpResponse from django.core.paginator import Paginator from blog.models import * from blog.utils import * from blog.utils import _cntime def index(request): """WAP 首页"...
Python
# Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
Python
from django.conf.urls.defaults import * from blog.feeds import LatestArchives from blog.sitemaps import * from blog.models import * feeds = { 'latest': LatestArchives, } # #archive_map = { # 'queryset': Archive.all(), # 'date_field': 'pub_date', #} # #sitemaps = { # 'blog': GenericSitemap...
Python
#!/usr/bin/env python # encoding: utf-8 """ datastore_cache.py Created by Alkis Evlogimenos on 2009-04-19. """ import itertools import logging import threading from google.appengine.api import memcache from google.appengine.api import apiproxy_stub_map from google.appengine.datastore import datastore_pb """Provides...
Python
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Python
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Python
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Python
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Python
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Python
# Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
Python
from appengine_django.models import BaseModel from google.appengine.ext import db # Create your models here.
Python
# Create your views here.
Python
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
Python
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or ag...
Python
# Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
Python
# Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
Python
# Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
Python
# Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
Python
# Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
Python
# Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
Python
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Python
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Python
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Python
#!/usr/bin/python2.4 # # Copyright 2008 Google Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
Python