The unified diff between revisions [03ca3690..] and [e32042bd..] is displayed below. It can also be downloaded as a raw diff.

#
#
# patch "Journal.py"
#  from [f3ab3eb8e35053f8498b37d7ce0a9cef2799b06d]
#    to [48fe8a501228b8a7cd0a8878a8f898db79428e37]
#
============================================================
--- Journal.py	f3ab3eb8e35053f8498b37d7ce0a9cef2799b06d
+++ Journal.py	48fe8a501228b8a7cd0a8878a8f898db79428e37
@@ -3,7 +3,59 @@
 # journal.py
 #

+from sqlite3 import dbapi2 as sqlite
+from SQLTemplates import *
+from Error import *
+
 class Journal:
-	def __init__(self):
+	def __init__(self,chart):
+		system = chart.system
+
+		if not system.connected:
+			raise ConnectionStatusError
+
+		self.store = system.store
+
+	def details(self,journalid):
 		pass

+	def balance(self,journalid):
+		pass
+
+	def find(self):
+		pass
+
+
+# seperate class to post journals
+
+
+class JournalPost:
+	def __init__(self,chart):
+		self.chart = chart
+
+		system = self.chart.system
+
+		if not system.connected:
+			raise ConnectionStatusError
+
+		self.store = system.store
+
+		# FIXME - init any structures needed
+
+	def header(self, explanation):
+		pass
+
+	def line(self):
+		# FIXME more args needs
+		pass
+
+	def review(self):
+		# FIXME return array of lines
+		pass
+
+	def delline(self):
+		pass
+
+	def post(self):
+		# check in appropriate state
+		pass