This document describes the approach for a first iteration to implement building blocks that aim to easily develop XML-TEI related applications for the Django web framework.
This file contains hidden or 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
# read on mixins: https://www.linuxjournal.com/article/4540 | |
# i have just read the first or two paragraphs, but it resembles what i remember | |
# please inform me if you think applying that concept makes no sense, and inheritence would be preferable | |
# the methods would be implemented by the plugin/extension/mixin-class, | |
# this provides a client code perspective | |
class Document: | |
def exist_push(): | |
self.config.exist.client._update_document(data=str(self), self.config.exist.docuemnt_path) |
This file contains hidden or 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
APP_NAME = Gitea: Git with a cup of tea | |
RUN_MODE = prod | |
RUN_USER = git | |
[repository] | |
ROOT = /data/git/repositories | |
[repository.upload] | |
TEMP_PATH = /data/gitea/uploads |
This file contains hidden or 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 | |
# Author: Chris Eberle <[email protected]> | |
# Watch for any changes in a module or package, and reload it automatically | |
import pyinotify | |
import imp | |
import os | |
class ModuleWatcher(pyinotify.ProcessEvent): | |
""" |