Skip to content
Permalink
f5215298d6
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
28 lines (25 sloc) 891 Bytes
# -*- coding: UTF-8 -*-
__author__ = 'kai'
from django.core.management.base import BaseCommand
from django.conf import settings
from publications.models import *
import ConfigParser
import os
import shutil
from lxml import etree
import Image
import shlex
import subprocess
"""
export PYTHONPATH="/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages"
"""
class Command(BaseCommand):
help = "RTFM!"
# process as string to be used to create html text for elements
def handle(self, **options):
Publications = Publication.objects.all()
print ("Number of Publications: " + str(len(Publications)))
Chapters = Chapter.objects.all()
print ("Number of Chapters: " + str(len(Chapters)))
Elements = Element.objects.all()
print ("Number of Elementes (i.e. Paragraphs, Figures,...): " + str(len(Elements)))