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
#coding: utf-8 | |
import itertools | |
import zipfile | |
import xml.etree.cElementTree as etree | |
class SPSMixin(object): | |
@property | |
def xmls(self): |
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 pyramid.response import Response | |
from pyramid.config import Configurator | |
from wsgiref.simple_server import make_server | |
from pyramid.httpexceptions import HTTPNotFound | |
from pyramid.view import notfound_view_config, view_config | |
from sqlalchemy.orm.exc import NoResultFound | |
import utils | |
import models |
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/python | |
import socket | |
import os, os.path | |
print "Connecting..." | |
if os.path.exists('./example.sock'): | |
client = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) | |
client.connect('./example.sock') |
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
#coding: utf-8 | |
from django.db import models | |
from django.utils.translation import ugettext_lazy as _ | |
from journalmanager.models import Issue | |
class EditorialBoard(models.Model): | |
""" |
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
# coding: utf-8 | |
import factory | |
from editorialmanager import models | |
from journalmanager.tests.modelfactories import IssueFactory | |
class EditorialBoardFactory(factory.Factory): | |
FACTORY_FOR = models.EditorialBoard |
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
{ | |
"took" : 14, | |
"timed_out" : false, | |
"_shards" : { | |
"total" : 5, | |
"successful" : 5, | |
"failed" : 0 | |
}, | |
"hits" : { |
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
DELETE /icatman | |
PUT /icatman | |
PUT /icatman/article/_mapping | |
{ | |
"article" : { | |
"_timestamp" : { | |
"enabled" : true, | |
"store" : true |
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
# -*- coding: utf-8 -*- | |
from south.utils import datetime_utils as datetime | |
from south.db import db | |
from south.v2 import SchemaMigration | |
from django.db import models | |
class Migration(SchemaMigration): | |
def forwards(self, orm): |
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
# coding: utf-8 | |
import requests | |
from lxml import html | |
ISSN_URL = "http://articlemeta.scielo.org/api/v1/journal/identifiers/?collection=scl" | |
STATBILIO_URL = "http://statbiblio.scielo.org//stat_biblio/index.php?state=15&lang=en&country=scl&issn=ISSN&CITED[]=ISSN&YNG[]=YEAR" | |
YEARS = range(2005, 2016) |
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 | |
# -*- coding: utf-8 -*- | |
from __future__ import absolute_import | |
from __future__ import unicode_literals | |
from __future__ import print_function | |
from __future__ import division | |
import pygraphviz as pgv |
OlderNewer