Skip to content

Instantly share code, notes, and snippets.

View andymckay's full-sized avatar

Andy McKay andymckay

View GitHub Profile
Oct 27 11:50:57 dev1.addons.phx1.mozilla.com: [<anon>][173.0.82.126] z.paypal:INFO IPN received: test_ipn=1&payment_type=instant&payment_date=11%3A50%3A51+Oct+27%2C+2011+PDT&payment_status=Completed&address_status=confirmed&payer_status=verified&first_name=John&last_name=Smith&payer_email=buyer%40paypalsandbox.com&payer_id=TESTBUYERID01&address_name=John+Smith&address_country=United+States&address_country_code=US&address_zip=95131&address_state=CA&address_city=San+Jose&address_street=123%2C+any+street&business=seller%40paypalsandbox.com&receiver_email=seller%40paypalsandbox.com&receiver_id=TESTSELLERID1&residence_country=US&item_name=something&item_number=AK-1234&quantity=1&shipping=3.04&tax=2.02&mc_currency=USD&mc_fee=0.44&mc_gross=12.34&mc_gross_1=9.34&txn_type=web_accept&txn_id=5110271850&notify_version=2.1&custom=xyz123&charset=windows-1252&verify_sign=AFcWxV21C7fd0v3bYYYRCpSSRl31AEmSFXCx2AgqFdkWg3d0lKigoW9X :/data/www/addons-dev.allizom.org/zamboni/apps/amo/views.py:122
diff --git a/.gitmodules b/.gitmodules
index 8eed3f7..165c5df 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -1,6 +1,3 @@
-[submodule "lib/product_details/json"]
- path = lib/product_details/json
- url = git://github.com/jbalogh/mozilla-product-details.git
[submodule "templates/global"]
path = templates/global
Traceback (most recent call last):
File "./manage.py", line 62, in <module>
import session_csrf
File "/Users/andy/sandboxes/zamboni/vendor/lib/python/session_csrf/__init__.py", line 5, in <module>
from django.core.cache import cache
File "/Users/andy/sandboxes/zamboni/vendor/src/django/django/core/cache/__init__.py", line 182, in <module>
cache = get_cache(DEFAULT_CACHE_ALIAS)
File "/Users/andy/sandboxes/zamboni/vendor/src/django/django/core/cache/__init__.py", line 180, in get_cache
return backend_cls(location, params)
File "/Users/andy/sandboxes/zamboni/vendor/src/django-pylibmc/django_pylibmc/memcached.py", line 43, in __init__
Traceback (most recent call last):
File "./manage.py", line 62, in <module>
import session_csrf
File "/Users/andy/sandboxes/zamboni/vendor/lib/python/session_csrf/__init__.py", line 5, in <module>
from django.core.cache import cache
File "/Users/andy/sandboxes/zamboni/vendor/src/django/django/core/cache/__init__.py", line 182, in <module>
cache = get_cache(DEFAULT_CACHE_ALIAS)
File "/Users/andy/sandboxes/zamboni/vendor/src/django/django/core/cache/__init__.py", line 180, in get_cache
return backend_cls(location, params)
File "/Users/andy/sandboxes/zamboni/vendor/src/django-pylibmc/django_pylibmc/memcached.py", line 43, in __init__
diff --git a/apps/addons/cron.py b/apps/addons/cron.py
index e55f49b..c018074 100644
--- a/apps/addons/cron.py
+++ b/apps/addons/cron.py
@@ -63,6 +63,7 @@ def _build_reverse_name_lookup(data, **kw):
ReverseNameLookup(webapp).add(translations.get(addon['name_id']),
addon['id'])
+
# TODO(jbalogh): removed from cron on 6/27/11. If the site doesn't break,
diff --git a/apps/addons/cron.py b/apps/addons/cron.py
index e55f49b..c018074 100644
--- a/apps/addons/cron.py
+++ b/apps/addons/cron.py
@@ -112,6 +113,9 @@ def _update_addons_current_version(data, **kw):
@cronjobs.register
def update_addon_average_daily_users():
"""Update add-ons ADU totals."""
+ if settings.IGNORE_NON_CRITICAL_CRONS:
+ return
diff --git a/apps/users/views.py b/apps/users/views.py
index 68dbea6..d84f621 100644
--- a/apps/users/views.py
+++ b/apps/users/views.py
@@ -369,7 +369,7 @@ def _login(request, template=None, data=None, dont_redirect=False):
'to your email address mentioned above.') % url
messages.error(request, _('Activation Email Sent'), msg1)
messages.info(request, _('Having Trouble?'), msg2,
- title_safe=True)
+ title_safe=True, message_safe=True)
oremj
rsyslog sends local7 to syslog1 which also has rsyslog
oremj
messages will not be sent if the exceed the max size of a udp packet
oremj
which has happened before
andym
right
clouserw
I thought rsyslog switched to tcp
In [3]: log.info(u'Attempt to log in with unconfirmed account (TESTING ANDY)')
Traceback (most recent call last):
File "/data/www/addons-dev.allizom.org/zamboni/log_settings.py", line 52, in emit
elif self.socktype == socket.SOCK_DGRAM:
AttributeError: UTFFixedSysLogHandler instance has no attribute 'socktype'
class ULogger(logging.handlers.SysLogHandler):
def emit(self, record):
msg = self.format(record) + '\000'
prio = '<%d>' % self.encodePriority(self.facility,
self.mapPriority(record.levelname))
if type(msg) is unicode:
msg = msg.encode('utf-8')
#if codecs:
# msg = codecs.BOM_UTF8 + msg