code
stringlengths
1
1.72M
language
stringclasses
1 value
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting field 'ListMembership.rank' db.delete_column('lists_listmembership', 'rank') def backward...
Python
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding field 'List.ordering' db.add_column('lists_list', 'ordering', self.gf('django.db.models.fields.Co...
Python
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Photo' db.create_table('lists_photo', ( ('id', self.gf('django.db.models.field...
Python
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'NumberedItem' db.create_table('lists_numbereditem', ( ('item_ptr', self.gf('dj...
Python
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'Item' db.create_table('lists_item', ( ('id', self.gf('django.db.models.fields....
Python
# encoding: utf-8 import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'PhotoItem' db.create_table('lists_photoitem', ( ('photo_ptr', self.gf('django....
Python
from django.conf.urls.defaults import * from django.contrib import admin admin.autodiscover() urlpatterns = patterns('lists.views', (r'^$', 'home'), (r'^(\w+)$', 'profile'), (r'^api/upload/photo/list/(\d*)$', 'api_upload_list_photo'), ...
Python
class SubdomainMiddleware: def process_request(self, request): """Parse out the subdomain from the request""" request.subdomain = None host = request.META.get('HTTP_HOST', '') host_s = host.replace('www.', '').split('.') if len(host_s) > 2: request.subdomain = ''...
Python
from django.contrib import admin from django.contrib.contenttypes import generic from lists.models import List, Item, ListMembership, Photo, PhotoItem, OList from tagging.models import GenericTag admin.site.register(Item) admin.site.register(ListMembership) admin.site.register(Photo) admin.site.register(PhotoItem) adm...
Python
from django.http import HttpResponse from django.template import RequestContext from django.shortcuts import render_to_response, get_object_or_404 from lists.models import List, Item, ListMembership, PhotoItem from django.conf import settings from django.contrib.auth.models import User from django.contrib.auth.decorato...
Python
#!/usr/bin/env python from django.core.management import execute_manager import imp try: imp.find_module('settings') # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized t...
Python
#!/usr/bin/env python from django.core.management import execute_manager import imp try: imp.find_module('settings') # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized t...
Python
from django.conf.urls.defaults import patterns, include, url import os from django.conf import settings # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Examples: # Uncomment the admin/doc line below to enable admin docu...
Python
# Django settings for spindle project. import os DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'postgresql_psycopg2', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'. ...
Python
from django.db import models from common.models import NameSlugModel from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes import generic class TagManager(models.Manager): def get_by_natural_key(self, name): return self.get(name=name) class Tag(NameSlugModel): rel...
Python
""" This file demonstrates writing tests using the unittest module. These will pass when you run "manage.py test". Replace this with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): """ Tests that 1 + 1 a...
Python
# Create your views here.
Python
bind = "127.0.0.1:8888" logfile = "/home/ubuntu/code/spindle/gunicorn.log" workers = 3
Python
from django.db import models from django.template.defaultfilters import slugify from django.db import IntegrityError, transaction class NameSlugModel(models.Model): name = models.CharField(max_length=255) slug = models.SlugField(unique=True, editable=False) class Meta: abstract = True def sav...
Python
""" This file demonstrates writing tests using the unittest module. These will pass when you run "manage.py test". Replace this with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): """ Tests that 1 + 1 a...
Python
# Create your views here.
Python
#!/usr/bin/env python from django.core.management import execute_manager import imp try: imp.find_module('settings') # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized t...
Python
from django.core import serializers def serialize_dishes(dishes): #, extras=('get_thumbnail_url', 'medium_img_url', 'is_liked_by_curr_user', 'is_disliked_by_curr_user', 'is_okd_by_curr_user', 'get_place_name'), relations=('dishimage_set',), use_natural_keys=True) return serializers.serialize('json', dishe...
Python
from django.core.serializers.json import DateTimeAwareJSONEncoder from django.db import models from django.utils.functional import Promise from django.utils.encoding import force_unicode # from django.utils import simplejson as json import cjson from decimal import Decimal from django.core import serializers from djang...
Python
#!/usr/bin/env python from django.core.management import execute_manager import imp try: imp.find_module('settings') # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized t...
Python
from django.conf.urls.defaults import patterns, include, url from django.conf import settings # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('', # Examples: # Uncomment the admin/doc line below to enable admin documentation:...
Python
# Django settings for totm project. import os DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@example.com'), ) SITE_ROOT = os.path.abspath(os.path.dirname(__file__)) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'postgresql_psycopg2', # Add 'postgresql_psycopg2',...
Python
from django import forms from models import Dish class DishForm(forms.ModelForm): class Meta: model = Dish class DishReviewForm(forms.Form): rating = forms.DecimalField() text = forms.CharField(widget=forms.Textarea(attrs={'size' : '50'})) img = forms.ImageField(required=False) #class UploadI...
Python
from imagekit.specs import ImageSpec from imagekit import processors # first we define our thumbnail resize processor class ResizeThumb(processors.Resize): width = 150 height = 150 crop = True # now we define a display size resize processor class ResizeDisplay(processors.Resize): width = 600 # now le...
Python
from django.conf import settings from django.contrib.auth.models import User from django.contrib.contenttypes import generic from django.contrib.contenttypes.models import ContentType from django.core.exceptions import ObjectDoesNotExist from django.core.files import File from django.db.models.signals import post_save...
Python
from django.conf.urls.defaults import patterns from django.contrib import admin admin.autodiscover() consts = { 'CATEGORY' : 'c', 'DISH' : 'd', 'PLACE' : 'p', 'PROFILE' : 'u', 'EDIT_REVIEW' : 'edit_review', 'ADD_REVIEW' : 'add_review', 'DELETE_PIC' : 'delete/photo', 'RATE' : 'rate' } ...
Python
from django.contrib import admin from django.contrib.contenttypes import generic from apps.food.models import Category, CategoryMembership, Dish, UserProfile, Review, Place, Chain, Restaurant, Photo, ProfilePhoto class PhotoAdmin(admin.ModelAdmin): list_display = ('content_object', 'content_type', 'admin_imag...
Python
from imagekit.specs import ImageSpec from imagekit import processors # first we define our thumbnail resize processor class ResizeThumb(processors.Resize): width = 35 height = 35 crop = True # now we define a display size resize processor class ResizeProfile(processors.Resize): width = 150 # now we d...
Python
from django.conf import settings from django.contrib.auth import authenticate, login from django.contrib.auth.models import User from django.contrib.auth.decorators import login_required from django.contrib.auth.forms import UserCreationForm from django.http import HttpResponse, HttpResponseRedirect from django.templat...
Python
from django.db import models # Create your models here.
Python
""" This file demonstrates two different styles of tests (one doctest and one unittest). These will both pass when you run "manage.py test". Replace these with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): ...
Python
from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('misc.views', (r'^about/', 'about'), )
Python
from django.http import Http404, HttpResponseRedirect, HttpResponse from django.shortcuts import render_to_response, get_object_or_404 from django.template import RequestContext from django.contrib.auth import logout, login, authenticate from django.contrib.auth.models import User from django.contrib.auth.decorato...
Python
#!/usr/bin/env python from django.core.management import execute_manager import sys try: import settings # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized thin...
Python
from django.db import models # Create your models here.
Python
""" This file demonstrates two different styles of tests (one doctest and one unittest). These will both pass when you run "manage.py test". Replace these with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): ...
Python
from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('accounts.views', # Example: # (r'^dishpop/', include('dishpop.foo.urls')), # Uncomment the admin/doc line below to enable adm...
Python
from django.http import Http404, HttpResponseRedirect, HttpResponse from django.shortcuts import render_to_response, get_object_or_404 from django.template import RequestContext from django.contrib.auth import logout, login, authenticate from django.contrib.auth.models import User from django.contrib.auth.decorato...
Python
from django import forms from django.forms import ModelForm from reviews.models import DishImage import re from django.contrib.auth.models import User RATING_CHOICES = ( ('1', '1 Horrible'), ('2', '2 Poor'), ('3', '3 Just ok'), ('4', '4 Good'), ('5', '5 Excellent'), ) class SearchFor...
Python
from imagekit.specs import ImageSpec from imagekit import processors # first we define our thumbnail resize processor class ResizeThumb(processors.Resize): width = 100 height = 75 crop = True class ResizeMedium(processors.Resize): width = 275 height = 275 crop = True # no...
Python
from datetime import datetime from django.db import models, IntegrityError, transaction from django.template.defaultfilters import slugify from tagging.models import Tag from common.models import NameSlugModel, DateAwareModel, MyImageModel, UserOwnedModel, LocationAwareModel class Place(NameSlugModel, DateAwareM...
Python
""" This file demonstrates two different styles of tests (one doctest and one unittest). These will both pass when you run "manage.py test". Replace these with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): ...
Python
from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('reviews.views', # Example: # (r'^dishpop/', include('dishpop.foo.urls')), # Uncomment the admin/doc line below to enable admi...
Python
from django.contrib import admin from reviews.models import Dish, Place, Review, DishImage from tagging.models import Tag, Tag_Relation class ImageAdmin(admin.ModelAdmin): list_display = ('name', 'admin_thumbnail_view',) class PlaceAdmin(admin.ModelAdmin): exclude = ('modified_date', 'created_date') ...
Python
from reviews.models import Dish, Place, Review, DishImage from tagging.models import Tag from django.http import Http404, HttpResponseRedirect, HttpResponse from django.shortcuts import render_to_response, get_object_or_404 from django.template import RequestContext from django.contrib.auth import logout, login, a...
Python
#!/usr/bin/env python from django.core.management import execute_manager import sys try: import settings # Assumed to be in the same directory. except ImportError: import sys sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized thin...
Python
from django.conf.urls.defaults import * import os # Uncomment the next two lines to enable the admin:## from django.contrib import admin admin.autodiscover() site_media = os.path.join(os.path.dirname(__file__), 'site_media') urlpatterns = patterns('', # Example: # (r'^kokoomi/', include('kokoomi.f...
Python
from django import forms from django.forms import ModelForm from django.contrib.auth.models import User from profile.models import ProfileImage, UserProfile class UploadProfilePhotoForm(ModelForm): class Meta: model = ProfileImage exclude = ('user', 'isPrimary', 'name') class EditProfile...
Python
from imagekit.specs import ImageSpec from imagekit import processors # first we define our thumbnail resize processor class ResizeThumb(processors.Resize): width = 100 height = 75 crop = True # now we define a display size resize processor class ResizeDisplay(processors.Resize): width ...
Python
from django.db import models from django.db.models.signals import post_save from django.contrib.auth.models import User from common.models import MyImageModel, UserOwnedModel class ProfileImage(MyImageModel, UserOwnedModel): isPrimary = models.BooleanField() class IKOptions: # This inner class i...
Python
""" This file demonstrates two different styles of tests (one doctest and one unittest). These will both pass when you run "manage.py test". Replace these with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): ...
Python
from django.conf.urls.defaults import * # Uncomment the next two lines to enable the admin: from django.contrib import admin admin.autodiscover() urlpatterns = patterns('profile.views', # Example: # (r'^dishpop/', include('dishpop.foo.urls')), # Uncomment the admin/doc line below to enable admi...
Python
from django.http import Http404, HttpResponseRedirect, HttpResponse from django.shortcuts import render_to_response, get_object_or_404 from django.template import RequestContext from django.contrib.auth import logout, login, authenticate from django.contrib.auth.models import User from django.contrib.auth.decorato...
Python
# Django settings for kokoomi project. import os SITE_ROOT = os.path.abspath(os.path.dirname(__file__)) DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@domain.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', # A...
Python
from django.db import models class Tag(models.Model): name = models.CharField(max_length=200, unique=True) related_tags = models.ManyToManyField('self', blank=True, symmetrical=False, through='Tag_Relation') def rec_lookup(self, f, st): for obj in f(): st.add(obj) ...
Python
""" This file demonstrates two different styles of tests (one doctest and one unittest). These will both pass when you run "manage.py test". Replace these with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): ...
Python
from django.utils.encoding import force_unicode def parse_tags(tagstring): """ Parses tag input, with multiple word input being activated and delineated by commas and double quotes. Quotes take precedence, so they may contain commas. Returns a sorted list of unique tag names. Ported from Jona...
Python
# Create your views here.
Python
import settings def GetGenericAvatarImgURL(): return settings.MEDIA_URL + 'images/generic.jpg' def GetGenericFoodImgURL(): return settings.MEDIA_URL + 'images/common/missingfoodpicture.jpg'
Python
from datetime import datetime from django.db import models, IntegrityError, transaction from django.contrib.auth.models import User from django.template.defaultfilters import slugify from imagekit.models import ImageModel class LocationAwareModel(models.Model): lat = models.FloatField(null=True, blank=True)...
Python
""" This file demonstrates two different styles of tests (one doctest and one unittest). These will both pass when you run "manage.py test". Replace these with more appropriate tests for your application. """ from django.test import TestCase class SimpleTest(TestCase): def test_basic_addition(self): ...
Python
# Create your views here.
Python
# Imports from re import sub, findall import string # Globals F_DEBUG = False HEXBIN_TRANS = {'0': '0000', '1': '0001', '2': '0010', '3': '0011', '4': '0100', '5': '0101', '6': '0110', '7': '0111', '8': '1000', '9': '1001', 'a': '1010', 'b': '1011', 'c': '1100', 'd': '1101', 'e': '1110', 'f': '1111', 'A': '1010'...
Python
# Wave Imports from waveapi import events from waveapi import robot from waveapi import appengine_robot_runner import logging # Other Imports from Forensie import Forensie from re import sub def OnWaveletSelfAdded(event, wavelet): """ When Forensie is added to an existing wave, this method posts inf...
Python
#!/usr/bin/env python # # Copyright 2007 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 o...
Python
#!/usr/bin/python # # didn't use generateDS because it required a slew of packages to be installed, # like pulling on a sweater. """horrible regexp-based converter from XSD to human-readable HTML.""" # disable line too long-- irrelevant here # pylint: disable-msg=C0301 # usage: python spec2html.py < spec0.1.xsd > sp...
Python
#!/usr/bin/python # # didn't use generateDS because it required a slew of packages to be installed, # like pulling on a sweater. """horrible regexp-based converter from XSD to human-readable HTML.""" # disable line too long-- irrelevant here # pylint: disable-msg=C0301 # usage: python spec2html.py < spec0.1.xsd > sp...
Python
#!/usr/bin/env python # # Copyright 2009 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 o...
Python
""" Copyright (c) 2003-2007 Gustavo Niemeyer <gustavo@niemeyer.net> This module offers extensions to the standard python 2.3+ datetime module. """ __author__ = "Gustavo Niemeyer <gustavo@niemeyer.net>" __license__ = "PSF License" __version__ = "1.4.1"
Python
""" Copyright (c) 2003-2007 Gustavo Niemeyer <gustavo@niemeyer.net> This module offers extensions to the standard python 2.3+ datetime module. """ __author__ = "Gustavo Niemeyer <gustavo@niemeyer.net>" __license__ = "PSF License" import itertools import datetime import calendar import thread import sys __all__ = ["...
Python
""" Copyright (c) 2003-2007 Gustavo Niemeyer <gustavo@niemeyer.net> This module offers extensions to the standard python 2.3+ datetime module. """ __author__ = "Gustavo Niemeyer <gustavo@niemeyer.net>" __license__ = "PSF License" import datetime __all__ = ["easter", "EASTER_JULIAN", "EASTER_ORTHODOX", "EASTER_WESTE...
Python
""" Copyright (c) 2003-2007 Gustavo Niemeyer <gustavo@niemeyer.net> This module offers extensions to the standard python 2.3+ datetime module. """ __author__ = "Gustavo Niemeyer <gustavo@niemeyer.net>" __license__ = "PSF License" import datetime import struct import time import sys import os relativedelta = None pa...
Python
""" Copyright (c) 2003-2005 Gustavo Niemeyer <gustavo@niemeyer.net> This module offers extensions to the standard python 2.3+ datetime module. """ from dateutil.tz import tzfile from tarfile import TarFile import os __author__ = "Gustavo Niemeyer <gustavo@niemeyer.net>" __license__ = "PSF License" __all__ = ["setca...
Python
# This code was originally contributed by Jeffrey Harris. import datetime import struct import _winreg __author__ = "Jeffrey Harris & Gustavo Niemeyer <gustavo@niemeyer.net>" __all__ = ["tzwin", "tzwinlocal"] ONEWEEK = datetime.timedelta(7) TZKEYNAMENT = r"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones" TZ...
Python
""" Copyright (c) 2003-2007 Gustavo Niemeyer <gustavo@niemeyer.net> This module offers extensions to the standard python 2.3+ datetime module. """ __author__ = "Gustavo Niemeyer <gustavo@niemeyer.net>" __license__ = "PSF License" import datetime import calendar __all__ = ["relativedelta", "MO", "TU", "WE", "TH", "F...
Python
# Copyright 2009 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 2009 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 2009 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 2009 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/python # Copyright 2009 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 agre...
Python
# Copyright 2009 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 2009 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/python # Copyright 2009 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 agre...
Python
#!/usr/bin/env python # """ script for loading into googlebase. Usage: load_gbase.py username password """ import sys import re import logging import subprocess from datetime import datetime import footprint_lib USERNAME = "" PASSWORD = "" LOGPATH = "/home/footprint/public_html/datahub/dashboard/" LOG_FN = LOGPATH ...
Python
#!/usr/bin/python # Copyright 2009 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 agre...
Python
#!/usr/bin/python # Copyright 2009 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 agre...
Python
#!/usr/bin/python # Copyright 2009 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 agre...
Python
# Copyright 2009 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/env python # """ script for loading into googlebase. Usage: load_gbase.py username password """ import sys import re import logging import subprocess from datetime import datetime import footprint_lib USERNAME = "" PASSWORD = "" LOGPATH = "/home/footprint/public_html/datahub/dashboard/" LOG_FN = LOGPATH ...
Python
# Copyright 2009 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 2009 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/python # Copyright 2009 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 agre...
Python
# Copyright 2009 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 2009 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 2009 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