This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOGGING = { | |
'version': 1, | |
'disable_existing_loggers': False, | |
'formatters': { | |
'verbose': { | |
'format': '%(asctime)s - %(name)s - %(levelname)s: %(message)s', | |
}, | |
'simple': { | |
'format': '%(levelname)s: %(message)s', | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Log switchboard stuff to logfile | |
LOGGING['loggers']['switchboard']['handlers'] = ['logfile'] | |
LOGGING['loggers']['switchboard']['level'] = 'WARNING' | |
LOGGING['handlers']['logfile']['filename'] = '/var/log/apache2/capstone.savidworks.com/switchboard.log' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/leadmachine/admin/sites/listadmin.py b/leadmachine/admin/sites/listadmin.py | |
index cae72e5..435a403 100644 | |
--- a/leadmachine/admin/sites/listadmin.py | |
+++ b/leadmachine/admin/sites/listadmin.py | |
@@ -488,7 +488,8 @@ class SourceListAdmin(LeadMachineModelAdmin): | |
for f in ['first_name', 'last_name', 'middle_name', 'title', 'suffix', 'external_uid']: | |
val = getattr(item, f, getattr(contact, f)) | |
if f in ('first_name', 'last_name', 'middle_name'): | |
- val = val.lower().title() | |
+ if val in (val.upper(), val.lower()): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/leadmachine/admin/sites/listadmin.py b/leadmachine/admin/sites/listadmin.py | |
index cae72e5..435a403 100644 | |
--- a/leadmachine/admin/sites/listadmin.py | |
+++ b/leadmachine/admin/sites/listadmin.py | |
@@ -488,7 +488,8 @@ class SourceListAdmin(LeadMachineModelAdmin): | |
for f in ['first_name', 'last_name', 'middle_name', 'title', 'suffix', 'external_uid']: | |
val = getattr(item, f, getattr(contact, f)) | |
if f in ('first_name', 'last_name', 'middle_name'): | |
- val = val.lower().title() | |
+ if val in (val.upper(), val.lower()): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/leadmachine/admin/sites/listadmin.py b/leadmachine/admin/sites/listadmin.py | |
index cae72e5..435a403 100644 | |
--- a/leadmachine/admin/sites/listadmin.py | |
+++ b/leadmachine/admin/sites/listadmin.py | |
@@ -488,7 +488,8 @@ class SourceListAdmin(LeadMachineModelAdmin): | |
for f in ['first_name', 'last_name', 'middle_name', 'title', 'suffix', 'external_uid']: | |
val = getattr(item, f, getattr(contact, f)) | |
if f in ('first_name', 'last_name', 'middle_name'): | |
- val = val.lower().title() | |
+ if val in (val.upper(), val.lower()): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
var initializing = false, fnTest = /xyz/.test(function(){xyz;}) ? /\b_super\b/ : /.*/; | |
// The base Class implementation (does nothing) | |
this.Class = function(){}; | |
// Create a new Class that inherits from this class | |
Class.extend = function(prop) { | |
var _super = this.prototype; | |
// Instantiate a base class (but only create the instance, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
noremap <Up> <Nop> | |
noremap <Down> <Nop> | |
noremap <Left> <Nop> | |
noremap <Right> <Nop> | |
noremap <PageUp> <Nop> | |
noremap <PageDown> <Nop> | |
inoremap <Up> <Nop> | |
inoremap <Down> <Nop> | |
inoremap <Left> <Nop> | |
inoremap <Right> <Nop> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if exists("b:current_syntax") | |
finish | |
endif | |
runtime! syntax/css.vim | |
syn case ignore | |
syn match lessCombinator "&" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% load formhelper %} | |
{% error_list form "non_field" %} | |
<fieldset> | |
<legend>Your Info</legend> | |
{% form_row first_name middle_name last_name %} | |
{% form_row email birth_date %} | |
{% form_field referred_by %} | |
</fieldset> | |
<fieldset> | |
<legend>Phone Numbers</legend> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from defaults import * | |
ENVIRONMENT = 'development' | |
DEBUG = True | |
TEMPLATE_DEBUG = True | |
DATABASES = { | |
'default': { | |
'ENGINE': 'django.db.backends.postgresql_psycopg2', |
OlderNewer