This file contains hidden or 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
// Simple usecase here is I want to override the document title function from chrome.js | |
// Make sure the code is loaded, i.e. set to module name | |
openerp.profile_hsd = function(instance) { | |
// Override the set_title method to our own to have recognizable document titles | |
// FIXME: this comes *after* it has already been set to OpenERP earlier, perhaps no biggie | |
instance.web.WebClient.include({ | |
set_title: function(title) { | |
title = _.str.clean(title); | |
var sep = _.isEmpty(title) ? '' : ' - '; |
This file contains hidden or 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/mediagoblin/plugins/api/views.py b/mediagoblin/plugins/api/views.py | |
index 69fae7b..e239f7e 100644 | |
--- a/mediagoblin/plugins/api/views.py | |
+++ b/mediagoblin/plugins/api/views.py | |
@@ -111,6 +111,11 @@ def get_entries(request): | |
# TODO: Make it possible to fetch unprocessed media, or media in-processing | |
entries = entries.filter_by(state=u'processed') | |
+ # allow getting one entry | |
+ m_id = int(request.GET.get('id') or 0) |
This file contains hidden or 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
=== modified file 'asterisk_click2dial/asterisk_click2dial.py' | |
--- asterisk_click2dial/asterisk_click2dial.py 2013-10-12 23:17:22 +0000 | |
+++ asterisk_click2dial/asterisk_click2dial.py 2013-11-21 19:37:30 +0000 | |
@@ -235,8 +235,8 @@ | |
ast_manager = Manager.Manager((ast_server.ip_address, ast_server.port), ast_server.login, ast_server.password) | |
except Exception, e: | |
_logger.error("Error in the Originate request to Asterisk server %s" % ast_server.ip_address) | |
- _logger.error("Here is the detail of the error : %s" % e.strerror) | |
- raise orm.except_orm(_('Error :'), _("Problem in the request from OpenERP to Asterisk. Here is the detail of the error: %s." % e.strerror)) | |
+ _logger.error("Here is the detail of the error : %s" % unicode(e)) |
This file contains hidden or 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
#!/bin/bash | |
#set -x | |
# This is an improved version of my edit script. The original one is | |
# still available as edit.old. This one does not use any window | |
# manager trickery to see if the daemon is already there. This one | |
# just starts it if it is not already there. | |
# | |
# TODO: see if we can have some output when the daemon is not there, | |
# it is now very silent |
This file contains hidden or 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/plugins/TwitterBridge/lib/twitterimport.php b/plugins/TwitterBridge/lib/twitterimport.php | |
index 47cf44d..d9ea93e 100644 | |
--- a/plugins/TwitterBridge/lib/twitterimport.php | |
+++ b/plugins/TwitterBridge/lib/twitterimport.php | |
@@ -519,7 +519,7 @@ class TwitterImport | |
static function tagLink($tag, $orig) | |
{ | |
- return "<a href='https://search.twitter.com/search?q=%23{$tag}' class='hashtag'>{$orig}</a>"; | |
+ return "<a href='https://twitter.com/search?q=%23{$tag}' class='hashtag'>{$orig}</a>"; |
This file contains hidden or 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
2013-12-05 13:24:02 LOG_ERR: [o.mrblog.nl:queuedaemon.php:31718] Unhandled exception: [File] DB_DataObject error []: DB Error: already exists | |
#0 /usr/local/statusnet/extlib/DB/DataObject.php(2611): Memcached_DataObject->raiseError(Object(DB_Error)) | |
#1 /usr/local/statusnet/classes/Memcached_DataObject.php(629): DB_DataObject->_query('INSERT INTO fil...') | |
#2 /usr/local/statusnet/extlib/DB/DataObject.php(1174): Memcached_DataObject->_query('INSERT INTO fil...') | |
#3 /usr/local/statusnet/classes/Memcached_DataObject.php(383): DB_DataObject->insert() | |
#4 /usr/local/statusnet/classes/File.php(92): Memcached_DataObject->insert() | |
#5 /usr/local/statusnet/classes/File.php(174): File::saveNew(Array, 'http://blogs.ws...') | |
#6 /usr/local/statusnet/lib/util.php(2157): File::processNew('http://blogs.ws...') | |
#7 /usr/local/statusnet/classes/File_redirection.php(245): common_shorten_url('http://blogs.ws...', NULL, false) | |
#8 /usr/local/statusnet/classes/File_redirection.php(205): File_redirection::_userMakeShort('http://blogs.ws... |
This file contains hidden or 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
2014-01-19 11:31:28.301457 > Error while processing Event callbacks: | |
2014-01-19 11:31:28.301691 > Traceback (most recent call last): | |
2014-01-19 11:31:28.301810 > File "/home/mrb/src/p2pool/p2pool/p2p.py", line 283, in handle_shares | |
2014-01-19 11:31:28.301934 > self.node.handle_shares(result, self) | |
2014-01-19 11:31:28.302063 > File "/home/mrb/src/p2pool/p2pool/node.py", line 48, in handle_shares | |
2014-01-19 11:31:28.302208 > self.node.set_best_share() | |
2014-01-19 11:31:28.302315 > File "/home/mrb/src/p2pool/p2pool/node.py", line 297, in set_best_share | |
2014-01-19 11:31:28.302419 > self.best_share_var.set(best) | |
2014-01-19 11:31:28.302563 > File "/home/mrb/src/p2pool/p2pool/util/variable.py", line 74, in set | |
2014-01-19 11:31:28.302670 > self.changed.happened(value) |
This file contains hidden or 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
2014-01-19 11:30:53.276284 > Share check failed: | |
2014-01-19 11:30:53.276475 > Traceback (most recent call last): | |
2014-01-19 11:30:53.276526 > File "/home/mrb/src/p2pool/p2pool/util/deferral.py", line 233, in it | |
2014-01-19 11:30:53.276572 > res = gen.send(cur) # external code is run here | |
2014-01-19 11:30:53.276627 > File "/home/mrb/src/p2pool/p2pool/util/deferral.py", line 284, in _worker | |
2014-01-19 11:30:53.276672 > self.func(*self.args, **self.kwargs) | |
2014-01-19 11:30:53.276717 > File "/home/mrb/src/p2pool/p2pool/node.py", line 304, in clean_tracker | |
2014-01-19 11:30:53.276766 > best, desired, decorated_heads = self.tracker.think(self.get_height_rel_highest, self.bitcoind_work.value['previous_block'], self.bitco | |
ind_work.value['bits'], self.known_txs_var.value) | |
2014-01-19 11:30:53.276817 > File "/home/mrb/src/p2pool/p2pool/data.py", line 452, in think |
This file contains hidden or 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
2014-02-12 20:24:35 LOG_ERR: [o.mrblog.nl:queuedaemon.php:12378] StompQueueManager (main): Exception on queue tweetin: [File] DB_DataObject error []: DB Error: already exists | |
2014-02-12 20:24:35 LOG_WARNING: [o.mrblog.nl:queuedaemon.php:12378] StompQueueManager (main): Failed handling array with 2 elements (keys:[status,for_user]) posted at 2014-02-12 20:24:35 in queue tweetin from curie.hsdev.com:61613 | |
2014-02-12 20:24:35 LOG_ERR: [o.mrblog.nl:queuedaemon.php:12384] StompQueueManager (main): Exception on queue tweetin: [File] DB_DataObject error []: DB Error: already exists | |
2014-02-12 20:24:35 LOG_WARNING: [o.mrblog.nl:queuedaemon.php:12384] StompQueueManager (main): Failed handling array with 2 elements (keys:[status,for_user]) posted at 2014-02-12 20:24:35 in queue tweetin from curie.hsdev.com:61613 | |
2014-02-12 20:24:35 LOG_ERR: [o.mrblog.nl:queuedaemon.php:12378] StompQueueManager (main): Exception on queue tweetin: [File] DB_DataObject error []: DB Error: already exists | |
2014-02-12 20:24:35 LOG_WARNING: |