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 lxml import etree | |
from flask import Flask, request, Response, render_template, abort | |
from oaipmh import server, metadata | |
from oai_auth import auth_info, ip_check_init, ip_to_inst, set_auth, get_ip | |
import logging | |
import re | |
import ss_server | |
def getServer(): |
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
var ExcelSuccessDialog = Ext.extend(Ext.Window, { | |
constructor: function(config) { | |
this.importsuccessForm = new Ext.FormPanel({ | |
frame: true, | |
bodyStyle: 'padding: 10px 10px 0 10px;', | |
labelWidth: 50, | |
defaults: { anchor: '95%', allowBlank: false, msgTarget: 'side'}, | |
items: [{ | |
xtype: 'displayfield', | |
itemID: 'numnew', |
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 sharedshelf.tests import * | |
from sharedshelf.lib import imatacache | |
class TestImataCache(TestCase): | |
def test_adding_value_to_cache(self): | |
cache = imatacache.ImataCache() | |
myvalue = 'bar' | |
key = cache.add(myvalue) | |
self.assertEqual(myvalue, cache.get(key)) |
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 decorator import decorator | |
import inspect | |
@decorator | |
def deco(f, *a, **kw): | |
# set a default keyword arg | |
if 'foo' not in kw: | |
kw['foo'] = 'bar' | |
return f(*a, **kw) |