Permalink
Browse files

initialize repo

  • Loading branch information...
lonnen committed Mar 13, 2012
1 parent d0a5e48 commit 09a9a03334b1e7e6f1b16f2dc75875a84de68f8a
View
399 LICENSE

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,23 +1,7 @@
-playdoh
+Bramble
=======
-Mozilla's Playdoh is a web application template based on [Django][django].
-
-Patches are welcome! Feel free to fork and contribute to this project on
-[github][gh-playdoh].
-
-Full [documentation][docs] is available as well.
-
-
-[django]: http://www.djangoproject.com/
-[gh-playdoh]: https://github.com/mozilla/playdoh
-[docs]: http://playdoh.rtfd.org/
-
-
-License
--------
-This software is licensed under the [New BSD License][BSD]. For more
-information, read the file ``LICENSE``.
-
-[BSD]: http://creativecommons.org/licenses/BSD/
+A dashboard for the Mozilla [Briar Patch][bp] focused on the overall health
+of the Mozilla build farm.
+[bp]: https://github.com/mozilla/briar-patch
View
@@ -7,18 +7,13 @@
# and js files that can be bundled together by the minify app.
MINIFY_BUNDLES = {
'css': {
- 'example_css': (
- 'css/examples/main.css',
- ),
- 'example_mobile_css': (
- 'css/examples/mobile.css',
- ),
+ 'common_css': (),
},
'js': {
- 'example_js': (
- 'js/examples/libs/jquery-1.4.4.min.js',
- 'js/examples/libs/jquery.cookie.js',
- 'js/examples/init.js',
+ 'common_js': (
+ 'js/bramble/libs/jquery-1.4.4.min.js',
+ 'js/bramble/libs/jquery.cookie.js',
+ 'js/bramble/init.js',
),
}
}
@@ -29,8 +24,7 @@
INSTALLED_APPS = list(INSTALLED_APPS) + [
# Application base, containing global templates.
'bramble.base',
- # Example code. Can (and should) be removed for actual projects.
- 'bramble.examples',
+ 'django_extensions',
]
@@ -40,20 +34,24 @@
'admin',
]
-# Tells the extract script what files to look for L10n in and what function
-# handles the extraction. The Tower library expects this.
+MIDDLEWARE_EXCLUDE_CLASSES = [
+ 'funfactory.middleware.LocaleURLMiddleware',
+]
+
+MIDDLEWARE_CLASSES = list(MIDDLEWARE_CLASSES)
+
+for app in MIDDLEWARE_EXCLUDE_CLASSES:
+ if app in MIDDLEWARE_CLASSES:
+ MIDDLEWARE_CLASSES.remove(app)
+
+MIDDLEWARE_CLASSES = tuple(MIDDLEWARE_CLASSES)
+
+## Log settings
-# # Use this if you have localizable HTML files:
-# DOMAIN_METHODS['lhtml'] = [
-# ('**/templates/**.lhtml',
-# 'tower.management.commands.extract.extract_tower_template'),
-# ]
+SYSLOG_TAG = "http_app_bramble"
-# # Use this if you have localizable HTML files:
-# DOMAIN_METHODS['javascript'] = [
-# # Make sure that this won't pull in strings from external libraries you
-# # may use.
-# ('media/js/**.js', 'javascript'),
-# ]
+LOGGING = dict(loggers=dict(bramble = {'level': logging.DEBUG}))
-LOGGING = dict(loggers=dict(playdoh = {'level': logging.DEBUG}))
+# Common Event Format logging parameters
+CEF_PRODUCT = 'Bramble'
+CEF_VENDOR = 'Mozilla'
@@ -1,9 +1,10 @@
# This is an example settings/local.py file.
# These settings overrides what's in settings/base.py
-# To extend any settings from settings/base.py here's an example:
+# uncomment for better admin apps
#from . import base
-#INSTALLED_APPS = base.INSTALLED_APPS + ['debug_toolbar']
+#INSTALLED_APPS = (base.INSTALLED_APPS + ['debug_toolbar']
+# + ['django.contrib.admin'])
DATABASES = {
'default': {
@@ -53,21 +54,3 @@ DEV = True
# Make this unique, and don't share it with anybody. It cannot be blank.
SECRET_KEY = ''
-
-# Uncomment these to activate and customize Celery:
-# CELERY_ALWAYS_EAGER = False # required to activate celeryd
-# BROKER_HOST = 'localhost'
-# BROKER_PORT = 5672
-# BROKER_USER = 'playdoh'
-# BROKER_PASSWORD = 'playdoh'
-# BROKER_VHOST = 'playdoh'
-# CELERY_RESULT_BACKEND = 'amqp'
-
-## Log settings
-
-# SYSLOG_TAG = "http_app_playdoh" # Make this unique to your project.
-# LOGGING = dict(loggers=dict(playdoh={'level': logging.DEBUG}))
-
-# Common Event Format logging parameters
-#CEF_PRODUCT = 'Playdoh'
-#CEF_VENDOR = 'Mozilla'
File renamed without changes.
@@ -1,73 +0,0 @@
-/* http://meyerweb.com/eric/tools/css/reset/
- v2.0 | 20110126
- License: none (public domain)
-*/
-
-html, body, div, span, applet, object, iframe,
-h1, h2, h3, h4, h5, h6, p, blockquote, pre,
-a, abbr, acronym, address, big, cite, code,
-del, dfn, em, img, ins, kbd, q, s, samp,
-small, strike, strong, sub, sup, tt, var,
-b, u, i, center,
-dl, dt, dd, ol, ul, li,
-fieldset, form, label, legend,
-table, caption, tbody, tfoot, thead, tr, th, td,
-article, aside, canvas, details, embed,
-figure, figcaption, footer, header, hgroup,
-menu, nav, output, ruby, section, summary,
-time, mark, audio, video {
- margin: 0;
- padding: 0;
- border: 0;
- font-size: 100%;
- font: inherit;
- vertical-align: baseline;
-}
-/* HTML5 display-role reset for older browsers */
-article, aside, details, figcaption, figure,
-footer, header, hgroup, menu, nav, section {
- display: block;
-}
-body {
- line-height: 1;
-}
-ol, ul {
- list-style: none;
-}
-blockquote, q {
- quotes: none;
-}
-blockquote:before, blockquote:after,
-q:before, q:after {
- content: '';
- content: none;
-}
-table {
- border-collapse: collapse;
- border-spacing: 0;
-}
-/* end meyer reset */
-
-/************************************/
-/* STYLES */
-/************************************/
-
-h1, h2, h3 {
- font-family: Georgia, serif;
-}
-a:link {
- font-family: Georgia, serif;
- color: #447bc4;
- text-decoration: none;
-}
-body {
- background-color: rgb(56,142,222);
- margin: 0.3em;
- line-height: 1.1em;
-}
-p {
- margin: 0.5em 0 0 0;
-}
-#footer {
- margin-top: 1em;
-}
View
@@ -0,0 +1,3 @@
+$(function() {
+ // do things
+});
@@ -1,9 +0,0 @@
-$(function() {
- var cookie_name = $('body').attr('data-mobile-cookie');
- $(".desktop-link").attr("href", window.location).click(function() {
- $.cookie(cookie_name, "off", {expires:30});
- });
- $(".mobile-link").attr("href", window.location).click(function() {
- $.cookie(cookie_name, "on", {expires:30});
- });
-});
@@ -1,96 +0,0 @@
-/**
- * Cookie plugin
- *
- * Copyright (c) 2006 Klaus Hartl (stilbuero.de)
- * Dual licensed under the MIT and GPL licenses:
- * http://www.opensource.org/licenses/mit-license.php
- * http://www.gnu.org/licenses/gpl.html
- *
- */
-
-/**
- * Create a cookie with the given name and value and other optional parameters.
- *
- * @example $.cookie('the_cookie', 'the_value');
- * @desc Set the value of a cookie.
- * @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true });
- * @desc Create a cookie with all available options.
- * @example $.cookie('the_cookie', 'the_value');
- * @desc Create a session cookie.
- * @example $.cookie('the_cookie', null);
- * @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain
- * used when the cookie was set.
- *
- * @param String name The name of the cookie.
- * @param String value The value of the cookie.
- * @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
- * @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
- * If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
- * If set to null or omitted, the cookie will be a session cookie and will not be retained
- * when the the browser exits.
- * @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
- * @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
- * @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
- * require a secure protocol (like HTTPS).
- * @type undefined
- *
- * @name $.cookie
- * @cat Plugins/Cookie
- * @author Klaus Hartl/klaus.hartl@stilbuero.de
- */
-
-/**
- * Get the value of a cookie with the given name.
- *
- * @example $.cookie('the_cookie');
- * @desc Get the value of a cookie.
- *
- * @param String name The name of the cookie.
- * @return The value of the cookie.
- * @type String
- *
- * @name $.cookie
- * @cat Plugins/Cookie
- * @author Klaus Hartl/klaus.hartl@stilbuero.de
- */
-jQuery.cookie = function(name, value, options) {
- if (typeof value != 'undefined') { // name and value given, set cookie
- options = options || {};
- if (value === null) {
- value = '';
- options.expires = -1;
- }
- var expires = '';
- if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) {
- var date;
- if (typeof options.expires == 'number') {
- date = new Date();
- date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000));
- } else {
- date = options.expires;
- }
- expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE
- }
- // CAUTION: Needed to parenthesize options.path and options.domain
- // in the following expressions, otherwise they evaluate to undefined
- // in the packed version for some reason...
- var path = options.path ? '; path=' + (options.path) : '';
- var domain = options.domain ? '; domain=' + (options.domain) : '';
- var secure = options.secure ? '; secure' : '';
- document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join('');
- } else { // only name given, get cookie
- var cookieValue = null;
- if (document.cookie && document.cookie != '') {
- var cookies = document.cookie.split(';');
- for (var i = 0; i < cookies.length; i++) {
- var cookie = jQuery.trim(cookies[i]);
- // Does this cookie string begin with the name we want?
- if (cookie.substring(0, name.length + 1) == (name + '=')) {
- cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
- break;
- }
- }
- }
- return cookieValue;
- }
-};

0 comments on commit 09a9a03

Please sign in to comment.