Skip to content

Commit

Permalink
Docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
kthoden committed Jan 27, 2020
1 parent db5325a commit 9c9d372
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions eoapublications/management/commands/publicationimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@
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
help = "Import a publication into the Django database."

def process_as_string(self,xmlElement):
"""Create html text for elements"""

strResult = xmlElement.text or ""
for xmlChild in xmlElement.iterchildren():
strResult = strResult + etree.tostring(xmlChild).decode()
Expand Down Expand Up @@ -241,6 +239,8 @@ def progress(self, count, total, status=''):


def handle(self, **options):
"""The main bit."""

# Get current directory, and append /import
strDir = os.getcwd() + '/import'
# Read .cfg-File
Expand Down

0 comments on commit 9c9d372

Please sign in to comment.