Skip to content

Instantly share code, notes, and snippets.

LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'formatters': {
'verbose': {
'format': '%(asctime)s - %(name)s - %(levelname)s: %(message)s',
},
'simple': {
'format': '%(levelname)s: %(message)s',
}
# 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'
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()):
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()):
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()):
(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,
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>
@bendavis78
bendavis78 / gist:1051858
Created June 28, 2011 18:44
Syntax for the Less CSS framework. This is a cleaned-up version from some of the others floating around the internet.
if exists("b:current_syntax")
finish
endif
runtime! syntax/css.vim
syn case ignore
syn match lessCombinator "&"
{% 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>
from defaults import *
ENVIRONMENT = 'development'
DEBUG = True
TEMPLATE_DEBUG = True
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.postgresql_psycopg2',