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/lib/MT/XMLRPCServer.pm b/lib/MT/XMLRPCServer.pm | |
index d627f5c..7f89547 100644 | |
--- a/lib/MT/XMLRPCServer.pm | |
+++ b/lib/MT/XMLRPCServer.pm | |
@@ -610,7 +610,14 @@ sub _get_entries { | |
my($author, $perms) = $class->_login($user, $pass, $blog_id); | |
die _fault(MT->translate("Invalid login")) unless $author; | |
die _fault(MT->translate("Permission denied.")) unless $perms && $perms->can_create_post; | |
- my $iter = MT->model($obj_type)->load_iter({ blog_id => $blog_id }, | |
+ |
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
#!/usr/bin/env python | |
import gconf | |
import myxmlrpc as xmlrpclib | |
RPC_URL = "http://write.arstechnica.com/mt-xmlrpc.cgi" | |
RPC_USER = gconf.Client().get_string("/apps/cms/username") | |
RPC_PASS = gconf.Client().get_string("/apps/cms/password") | |
RPC_BLOG = "1" | |
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
try: | |
import gnomekeyring | |
except: | |
gnomekeyring = None | |
... | |
# Edited version of getitem/setitem in the config.py Account class | |
# This will probably fix the gnomekeyring fallback | |
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
<?xml version="1.0"?> | |
<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> | |
<fontconfig> | |
<match target="font"> | |
<edit name="autohint" mode="assign"> | |
<bool>true</bool> | |
</edit> | |
</match> | |
</fontconfig> |
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
/* | |
* Testing new GTK+ 2.16 features | |
* SegPhault (Ryan Paul) - 03/20/2009 | |
*/ | |
#include <gtk/gtk.h> | |
#include <glib/gprintf.h> | |
GtkWidget *entry; |
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
# MurrinaSegPhault v0.04 | |
# Uses Murrina Engine by Cimi | |
style "theme-default" | |
{ | |
GtkButton::default_border = { 1, 1, 1, 1 } | |
GtkButton::default_outside_border = { 2, 2, 2, 2 } | |
GtkRange ::trough_border = 0 | |
GtkPaned ::handle_size = 8 | |
GtkRange ::slider_width = 15 |
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
#!/usr/bin/env python | |
import gtk, gobject, indicate, dbus, webkit | |
from xdg.DesktopEntry import DesktopEntry | |
from mako.template import Template | |
class IndicatorInspector: | |
def __init__(self): | |
self.servers = [] | |
self.listener = indicate.Listener() |
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
jetpack.statusBar.append({ | |
html: '<span id="count">Digg</span>', | |
width: 55, | |
onReady: function(doc) { | |
var url = jetpack.tabs.focused.contentWindow.location.href; | |
function updateDiggs() { | |
if (url != jetpack.tabs.focused.contentWindow.location.href) { | |
url = jetpack.tabs.focused.contentWindow.location.href; | |
console.log(url); |
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
#!/usr/bin/env python | |
import SimpleHTTPServer | |
from gwibber import microblog, config | |
from mako.template import Template | |
PORT = 10002 | |
def generate_html(messages): | |
return Template(""" |
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
#!/usr/bin/env python | |
""" | |
NOTE: This example is outdated and no longer works properly. | |
For the latest working example, please see the GTG wiki: | |
http://live.gnome.org/gtg/dbus | |
""" | |
import dbus |