Browse Source

bugpile directory cleaned up, files moved and renamed.

tj 8 years ago
parent
commit
331c2ee523
43 changed files with 1051 additions and 938 deletions
  1. 0 0
      bugpile-config.org
  2. 4 4
      simple/controller/simple-controller.el
  3. 68 0
      doc/old-stuff/edit-in-place.html
  4. 0 0
      doc/old-stuff/my-old-iorg-e-html.el
  5. 0 0
      doc/old-stuff/org-iorg-export.el
  6. 0 0
      doc/old-stuff/simple-old.el
  7. 0 0
      doc/old-stuff/simple-tests.el
  8. 186 0
      doc/old-stuff/simple.html
  9. 0 0
      doc/old-stuff/simple.org
  10. 232 0
      doc/old-stuff/simple2.html
  11. 0 0
      doc/old-stuff/simple2.org
  12. 84 85
      test/examples/simple.html
  13. 208 0
      doc/old-stuff/simple_bak2.html
  14. 233 0
      doc/old-stuff/simple_bak3.html
  15. 0 279
      iorg/doc/org-export-summary.txt
  16. 29 0
      iorg/lisp/iorg-generic-controller.el
  17. 0 0
      iorg/lisp/iorg-generic-logic.el
  18. 0 0
      iorg/lisp/iorg-html.el
  19. 0 0
      iorg/lisp/iorg-util.el
  20. 3 1
      iorg/lisp/org-iorg.el
  21. 4 0
      logic/bugpile-logic.el
  22. 0 26
      mvc/controller/bp-open-new-task-controller.el
  23. 0 9
      mvc/controller/my-elnode-hello-world.el
  24. 0 1
      mvc/objects/iorg-proto-user.org
  25. 0 32
      mvc/view/bp-login-view.org
  26. 0 85
      mvc/view/bp-open-new-task-scene.html
  27. 0 32
      mvc/view/bp-open-new-task-scene.org
  28. 0 85
      mvc/view/bp-register-scene.html
  29. 0 32
      mvc/view/bp-register-scene.org
  30. 0 85
      mvc/view/bugpile-login-scene.html
  31. 0 124
      mvc/view/index.html
  32. 0 46
      mvc/view/index.org
  33. 0 0
      objects/classes/html-class.org
  34. 0 0
      objects/classes/object-class.org
  35. 0 0
      objects/classes/task-class.org
  36. 0 0
      objects/task-obj.org
  37. 0 1
      simple/.gitignore
  38. 0 6
      simple/controller/iorg-generic-controller.el
  39. 0 5
      simple/logic/simple-logic.el
  40. 0 0
      test/iorg-testsuite.el
  41. 0 0
      view/css/lib.css
  42. 0 0
      view/edit-tasks/edit-task-view.org
  43. 0 0
      view/headers/iorg-proto-header.org

mvc/bugpile-config.org → bugpile-config.org


+ 4 - 4
simple/controller/simple-controller.el

@@ -1,5 +1,5 @@
-;;; simple-controller.el -- use case dependent controller
-;;; functionality for the 'simple' example.
+;;; bugpile-controller.el -- use case independent controller
+;;; functionality for bugpile
 
 (require 'org)
 (require 'elnode)
@@ -44,7 +44,7 @@
  (defun iorg-initialize-simple-handler (httpcon)
   "Serves the start-page of the 'simple' app"
   (elnode-send-file httpcon (iorg--org-to-html "simple.org")))
- 
+xo 
  (defun iorg-change-state-handler (httpcon)
   "Called by the elnode form handler to update task state."
   ;; TODO: (3) handle form post data and update an Org-mode file
@@ -153,4 +153,4 @@ in the Org file on that level."
     (elnode-log-access "simple" httpcon)
     (error "iorg: 404 handler invoked")))
 
-(provide 'simple)
+(provide 'bugpile-controller)

+ 68 - 0
doc/old-stuff/edit-in-place.html

@@ -0,0 +1,68 @@
+<html>
+  <head>
+    <title>Example: edit in place</title>
+    <style type="text/css">
+<!--/*--><![CDATA[/*><!--*/
+/* this class is used to highlight editable secitons on mouseover */
+.editable{ background: lightyellow; }
+/*]]>*/-->
+    </style>
+    <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
+    <script type="text/javascript">
+<!--/*--><![CDATA[/*><!--*/
+// after the page loads, run the set set_clickable function
+$(document).ready(function(){ set_clickable(); });
+
+function set_clickable(){
+  // to every element with class="edit_in_place"
+  $('.edit_in_place').click(function(){
+    // Replace the original html with the following text area.
+    // In this example we replace with the raw html, but in iorg we
+    // will replace with the raw Org-mode text.
+    $(this).after('<div><textarea rows="10" cols="80">'+$(this).html()+'</textarea>'+
+                  '<div><input type="button" value="SAVE" class="saveButton" /></div>'+
+                  '</div>')
+    // remove the orignal html
+    $(this).remove();;
+    // call this function when buttons are hit
+    $('.saveButton').click(function(){ save_changes(this); });
+  });
+  // make every div with class="edit_in_place" highlight on mouseover
+  $('.edit_in_place').mouseover(function(){ $(this).addClass("editable"); });
+  $('.edit_in_place').mouseout(function() { $(this).removeClass("editable"); });
+}
+
+function save_changes(obj){
+  var new_text = $(obj).parent().siblings(0).val();
+  $.post("update-this-org-file", {content: new_text}, function(txt){ alert(txt); });
+  // In real life the above post request would hit the elnode server,
+  // which would in turn respond with the HTML that we would use to
+  // replace the element.  For now we'll just replace with the raw
+  // text verbatim.
+  $(obj).parent().parent().after('<div class="edit_in_place">'+new_text+'</div>');
+  $(obj).parent().parent().remove();
+  set_clickable();
+};
+/*]]>*///-->
+    </script>
+  </head>
+  <body>
+    <h1>Edit in place</h1>
+    <p class="edit_in_place">Some of the elements of this page may be edited in place.</p>
+    <p>Some of them can't.</p>
+    <p class="edit_in_place">
+Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec
+hendrerit tempor tellus. Donec pretium posuere tellus. Proin
+quam nisl, tincidunt et, mattis eget, convallis nec, purus. Cum
+sociis natoque penatibus et magnis dis parturient montes,
+nascetur ridiculus mus. Nulla posuere. Donec vitae dolor. Nullam
+tristique diam non turpis. Cras placerat accumsan nulla. Nullam
+rutrum. Nam vestibulum accumsan nisl.
+    </p>
+    <ul class="edit_in_place">
+      <li>one</li>
+      <li>two</li>
+      <li>three</li>
+    </ul>
+  </body>
+</html>

simple/old-stuff/my-old-iorg-e-html.el → doc/old-stuff/my-old-iorg-e-html.el


simple/old-stuff/org-iorg-export.el → doc/old-stuff/org-iorg-export.el


simple/old-stuff/simple-old.el → doc/old-stuff/simple-old.el


simple/simple-tests.el → doc/old-stuff/simple-tests.el


+ 186 - 0
doc/old-stuff/simple.html

@@ -0,0 +1,186 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+	       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> 
+<head>
+<title>A simple example Org-mode file</title>
+
+<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
+<meta name="title" content="A simple example Org-mode file"/>
+<meta name="generator" content="Org-mode"/>
+<meta name="generated" content="2012-06-19 08:20:06 CEST"/>
+<meta name="author" content="Thorsten Jolitz"/>
+<meta name="description" content="nil"/>
+<meta name="keywords" content="nil"/>
+<style type="text/css">
+ <!--/*--><![CDATA[/*><!--*/
+  html { font-family: Times, serif; font-size: 12pt; }
+  .title  { text-align: center; }
+  .todo   { color: red; }
+  .done   { color: green; }
+  .tag    { background-color: #add8e6; font-weight:normal }
+  .target { }
+  .timestamp { color: #bebebe; }
+  .timestamp-kwd { color: #5f9ea0; }
+  .right  {margin-left:auto; margin-right:0px;  text-align:right;}
+  .left   {margin-left:0px;  margin-right:auto; text-align:left;}
+  .center {margin-left:auto; margin-right:auto; text-align:center;}
+  p.verse { margin-left: 3% }
+  pre {
+	border: 1pt solid #AEBDCC;
+	background-color: #F3F5F7;
+	padding: 5pt;
+	font-family: courier, monospace;
+        font-size: 90%;
+        overflow:auto;
+  }
+  table { border-collapse: collapse; }
+  td, th { vertical-align: top;  }
+  th.right  { text-align:center;  }
+  th.left   { text-align:center;   }
+  th.center { text-align:center; }
+  td.right  { text-align:right;  }
+  td.left   { text-align:left;   }
+  td.center { text-align:center; }
+  dt { font-weight: bold; }
+  div.figure { padding: 0.5em; }
+  div.figure p { text-align: center; }
+  div.inlinetask {
+    padding:10px;
+    border:2px solid gray;
+    margin:10px;
+    background: #ffffcc;
+  }
+  textarea { overflow-x: auto; }
+  .linenr { font-size:smaller }
+  .code-highlighted {background-color:#ffff00;}
+  .org-info-js_info-navigation { border-style:none; }
+  #org-info-js_console-label { font-size:10px; font-weight:bold;
+                               white-space:nowrap; }
+  .org-info-js_search-highlight {background-color:#ffff00; color:#000000;
+                                 font-weight:bold; }
+  /*]]>*/-->
+</style>
+<script type="text/javascript">
+<!--/*--><![CDATA[/*><!--*/
+ function CodeHighlightOn(elem, id)
+ {
+   var target = document.getElementById(id);
+   if(null != target) {
+     elem.cacheClassElem = elem.className;
+     elem.cacheClassTarget = target.className;
+     target.className = "code-highlighted";
+     elem.className   = "code-highlighted";
+   }
+ }
+ function CodeHighlightOff(elem, id)
+ {
+   var target = document.getElementById(id);
+   if(elem.cacheClassElem)
+     elem.className = elem.cacheClassElem;
+   if(elem.cacheClassTarget)
+     target.className = elem.cacheClassTarget;
+ }
+/*]]>*///-->
+</script><script type="text/javascript" src="http://orgmode.org/mathjax/MathJax.js">
+<!--/*--><![CDATA[/*><!--*/
+    MathJax.Hub.Config({
+        // Only one of the two following lines, depending on user settings
+        // First allows browser-native MathML display, second forces HTML/CSS
+        //  config: ["MMLorHTML.js"], jax: ["input/TeX"],
+            jax: ["input/TeX", "output/HTML-CSS"],
+        extensions: ["tex2jax.js","TeX/AMSmath.js","TeX/AMSsymbols.js",
+                     "TeX/noUndefined.js"],
+        tex2jax: {
+            inlineMath: [ ["\\(","\\)"] ],
+            displayMath: [ ['$$','$$'], ["\\[","\\]"], ["\\begin{displaymath}","\\end{displaymath}"] ],
+            skipTags: ["script","noscript","style","textarea","pre","code"],
+            ignoreClass: "tex2jax_ignore",
+            processEscapes: false,
+            processEnvironments: true,
+            preview: "TeX"
+        },
+        showProcessingMessages: true,
+        displayAlign: "center",
+        displayIndent: "2em",
+
+        "HTML-CSS": {
+             scale: 100,
+             availableFonts: ["STIX","TeX"],
+             preferredFont: "TeX",
+             webFont: "TeX",
+             imageFont: "TeX",
+             showMathMenu: true,
+        },
+        MMLorHTML: {
+             prefer: {
+                 MSIE:    "MML",
+                 Firefox: "MML",
+                 Opera:   "HTML",
+                 other:   "HTML"
+             }
+        }
+    });
+/*]]>*///-->
+</script>
+</head>
+<body>
+<div id="content">
+<h1 class="title">A simple example Org-mode file</h1>
+
+<div id="outline-container-1" class="outline-2"><form method=post action="http://localhost:8000/make-me-interactive-html">
+
+<h2 id="sec-1">1&nbsp;&nbsp;<span class="selectbox"><select name:"simple-todo" size="1"><option value="1" selected>HOLD</option><option>TODO</option><option>NEXT</option><option>DONE</option><option>WAITING</option><option>CANCELLED</option><option>PHONE</option></select></span>&nbsp;This file has a top level heading&nbsp;&nbsp;&nbsp;<span class="textfield"><input type="text" name="simple-tag" size="10"maxlenght="20" value=":bar:WAITING:HOLD:"></input></span></h2>
+<table border="0"><tr><td>html-button-value</td><td><input type="text" name="simple-prop"size="40" maxlength="80" value="Send edits"></input></td></tr><tr><td>html-form</td><td><input type="text" name="simple-prop"size="40" maxlength="80" value="http://localhost:8000/make-me-interactive-html"></input></td></tr></table><textarea class="textarea" name="simple-section"cols="80" rows="35">This heading has five components.  Lets see if we can edit all five
+through the web interface.
+1. task state, currently this is =TODO= lets change it to =DONE=.
+2. a property, try to change the =iorg-property= from =foo= to =bar=.
+3. tag, change the tag from =bar= to =foo=.
+4. heading text, allow the heading text to be edited through the web interface.
+5. body text, allow this text to be edited through the web interface
+
+The five items listed about should be in rough order of difficulty.
+So lets work through them in order.  The simplest should be changing
+the task state.  We can start with a simple button on the final html
+page next to the headline, the text of this button can be "finish",
+and pressing it will change the TODO state in this Org-mode file on
+the server to DONE.  The implementation should look like this...
+- add a function to the `org-export-html-final-hook' which will scan
+  through the resulting HTML and will add the html/JS necessary to
+  include this button on the final web page.
+- start an elnode server and add two different handlers, one will
+  serve up this web page (with the above hook), and the second will
+  handle the form data returned by the "finish" button.
+- the second handler will use the `org-todo' function to change the
+  actual state of the heading.
+
+Once this is working we should have a much better idea of what is
+required to make this process work end-to-end.  With luck we may have
+some initial functionality by the end of next week (some number of the
+above 5 parts being editable).
+
+Lets keep all of the code implementing this in file:simple.el, once it
+is written we can see what it look like and decide how to better
+organize it into a directory structure which we'll want to keep for
+the remainder of the iorg project.
+
+I've stubbed out a few functions in file:simple.el, add new functions
+as they are needed.
+</textarea>
+<table border=0>
+<tr>
+<td><input type="reset"></td>
+<td><input type="submit" value="Send edits"></td>
+</tr>
+</table>
+</form></div>
+
+</div>
+<div id="postamble">
+<p class="date"> Date: 2012-06-19 08:20:06 CEST </p> 
+<p class="author"> Author : Thorsten Jolitz</p>
+<p class="creator"> Generated by Org mode 7.8.09 in Emacs 24.0.93.1. </p><a href="http://validator.w3.org/check?uri=referer">Validate XHTML 1.0</a>
+
+</div>
+</body>
+</html>

simple/old-stuff/simple.org → doc/old-stuff/simple.org


+ 232 - 0
doc/old-stuff/simple2.html

@@ -0,0 +1,232 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+	       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> 
+<head>
+<title>A simple example Org-mode file</title>
+
+<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
+<meta name="title" content="A simple example Org-mode file"/>
+<meta name="generator" content="Org-mode"/>
+<meta name="generated" content="2012-06-07 10:06:23 CEST"/>
+<meta name="author" content="Thorsten Jolitz"/>
+<meta name="description" content="nil"/>
+<meta name="keywords" content="nil"/>
+<style type="text/css">
+ <!--/*--><![CDATA[/*><!--*/
+  html { font-family: Times, serif; font-size: 12pt; }
+  .title  { text-align: center; }
+  .todo   { color: red; }
+  .done   { color: green; }
+  .tag    { background-color: #add8e6; font-weight:normal }
+  .target { }
+  .timestamp { color: #bebebe; }
+  .timestamp-kwd { color: #5f9ea0; }
+  .right  {margin-left:auto; margin-right:0px;  text-align:right;}
+  .left   {margin-left:0px;  margin-right:auto; text-align:left;}
+  .center {margin-left:auto; margin-right:auto; text-align:center;}
+  p.verse { margin-left: 3% }
+  pre {
+	border: 1pt solid #AEBDCC;
+	background-color: #F3F5F7;
+	padding: 5pt;
+	font-family: courier, monospace;
+        font-size: 90%;
+        overflow:auto;
+  }
+  table { border-collapse: collapse; }
+  td, th { vertical-align: top;  }
+  th.right  { text-align:center;  }
+  th.left   { text-align:center;   }
+  th.center { text-align:center; }
+  td.right  { text-align:right;  }
+  td.left   { text-align:left;   }
+  td.center { text-align:center; }
+  dt { font-weight: bold; }
+  div.figure { padding: 0.5em; }
+  div.figure p { text-align: center; }
+  div.inlinetask {
+    padding:10px;
+    border:2px solid gray;
+    margin:10px;
+    background: #ffffcc;
+  }
+  textarea { overflow-x: auto; }
+  .linenr { font-size:smaller }
+  .code-highlighted {background-color:#ffff00;}
+  .org-info-js_info-navigation { border-style:none; }
+  #org-info-js_console-label { font-size:10px; font-weight:bold;
+                               white-space:nowrap; }
+  .org-info-js_search-highlight {background-color:#ffff00; color:#000000;
+                                 font-weight:bold; }
+  /*]]>*/-->
+</style>
+<script type="text/javascript">
+<!--/*--><![CDATA[/*><!--*/
+ function CodeHighlightOn(elem, id)
+ {
+   var target = document.getElementById(id);
+   if(null != target) {
+     elem.cacheClassElem = elem.className;
+     elem.cacheClassTarget = target.className;
+     target.className = "code-highlighted";
+     elem.className   = "code-highlighted";
+   }
+ }
+ function CodeHighlightOff(elem, id)
+ {
+   var target = document.getElementById(id);
+   if(elem.cacheClassElem)
+     elem.className = elem.cacheClassElem;
+   if(elem.cacheClassTarget)
+     target.className = elem.cacheClassTarget;
+ }
+/*]]>*///-->
+</script><script type="text/javascript" src="http://orgmode.org/mathjax/MathJax.js">
+<!--/*--><![CDATA[/*><!--*/
+    MathJax.Hub.Config({
+        // Only one of the two following lines, depending on user settings
+        // First allows browser-native MathML display, second forces HTML/CSS
+        //  config: ["MMLorHTML.js"], jax: ["input/TeX"],
+            jax: ["input/TeX", "output/HTML-CSS"],
+        extensions: ["tex2jax.js","TeX/AMSmath.js","TeX/AMSsymbols.js",
+                     "TeX/noUndefined.js"],
+        tex2jax: {
+            inlineMath: [ ["\\(","\\)"] ],
+            displayMath: [ ['$$','$$'], ["\\[","\\]"], ["\\begin{displaymath}","\\end{displaymath}"] ],
+            skipTags: ["script","noscript","style","textarea","pre","code"],
+            ignoreClass: "tex2jax_ignore",
+            processEscapes: false,
+            processEnvironments: true,
+            preview: "TeX"
+        },
+        showProcessingMessages: true,
+        displayAlign: "center",
+        displayIndent: "2em",
+
+        "HTML-CSS": {
+             scale: 100,
+             availableFonts: ["STIX","TeX"],
+             preferredFont: "TeX",
+             webFont: "TeX",
+             imageFont: "TeX",
+             showMathMenu: true,
+        },
+        MMLorHTML: {
+             prefer: {
+                 MSIE:    "MML",
+                 Firefox: "MML",
+                 Opera:   "HTML",
+                 other:   "HTML"
+             }
+        }
+    });
+/*]]>*///-->
+</script>
+</head>
+<body>
+<div id="content">
+<h1 class="title">A simple example Org-mode file</h1>
+
+<div id="outline-container-1" class="outline-2">
+<h2 id="sec-1"><span class="section-number-2">1</span> <span class="todo TODO">TODO</span> First top level heading&nbsp;&nbsp;&nbsp;<span class="tag"><span class="bar">bar</span></span></h2>
+<form action="http://localhost:8033/todo/">  <input type="submit" value=" Finish " name="outline-1"></form><div class="outline-text-2" id="text-1">
+</div>
+
+<div id="outline-container-1-1" class="outline-3">
+<h3 id="sec-1-1"><span class="section-number-3">1.1</span> <span class="todo NEXT">NEXT</span> First child of first entry&nbsp;&nbsp;&nbsp;<span class="tag"><span class="note">note</span></span></h3>
+<form action="http://localhost:8033/todo/">  <input type="submit" value=" Finish " name="outline-1"></form><div class="outline-text-3" id="text-1-1">
+
+
+<p>
+This heading has five components.  Lets see if we can edit all five
+through the web interface.
+</p>
+<ol>
+<li>task state, currently this is <code>TODO</code> lets change it to <code>DONE</code>.
+</li>
+<li>a property, try to change the <code>iorg-property</code> from <code>foo</code> to <code>bar</code>.
+</li>
+<li>tag, change the tag from <code>bar</code> to <code>foo</code>.
+</li>
+<li>heading text, allow the heading text to be edited through the web interface.
+</li>
+<li>body text, allow this text to be edited through the web interface
+</li>
+</ol>
+
+
+<p>
+The five items listed about should be in rough order of difficulty.
+So lets work through them in order.  The simplest should be changing
+the task state.  We can start with a simple button on the final html
+page next to the headline, the text of this button can be "finish",
+and pressing it will change the TODO state in this Org-mode file on
+the server to DONE.  The implementation should look like this&hellip;
+</p>
+<ul>
+<li>add a function to the `org-export-html-final-hook' which will scan
+through the resulting HTML and will add the html/JS necessary to
+include this button on the final web page.
+</li>
+<li>start an elnode server and add two different handlers, one will
+serve up this web page (with the above hook), and the second will
+handle the form data returned by the "finish" button.
+</li>
+<li>the second handler will use the `org-todo' function to change the
+actual state of the heading.
+</li>
+</ul>
+
+
+<p>
+Once this is working we should have a much better idea of what is
+required to make this process work end-to-end.  With luck we may have
+some initial functionality by the end of next week (some number of the
+above 5 parts being editable).
+</p>
+
+
+<p>
+Lets keep all of the code implementing this in <a href="file://simple.el">file://simple.el</a>, once it
+is written we can see what it look like and decide how to better
+organize it into a directory structure which we'll want to keep for
+the remainder of the iorg project.
+</p>
+
+
+<p>
+I've stubbed out a few functions in <a href="file://simple.el">file://simple.el</a>, add new functions
+as they are needed.
+</p>
+</div>
+</div>
+</div>
+
+<div id="outline-container-2" class="outline-2">
+<h2 id="sec-2"><span class="section-number-2">2</span> <span class="todo TODO">TODO</span> Second top level heading&nbsp;&nbsp;&nbsp;<span class="tag"><span class="ces">ces</span></span></h2>
+<form action="http://localhost:8033/todo/">  <input type="submit" value=" Finish " name="outline-1"></form><div class="outline-text-2" id="text-2">
+</div>
+
+<div id="outline-container-2-1" class="outline-3">
+<h3 id="sec-2-1"><span class="section-number-3">2.1</span> <span class="done DONE">DONE</span> First child of second entry&nbsp;&nbsp;&nbsp;<span class="tag"><span class="lab">lab</span></span></h3>
+<div class="outline-text-3" id="text-2-1">
+
+
+<p>
+Some more headlines, not to complicate things, but to be able to
+recognize the patterns in the exported html file.
+</p>
+</div>
+</div>
+</div>
+
+</div>
+<div id="postamble">
+<p class="date"> Date: 2012-06-07 10:06:23 CEST </p> 
+<p class="author"> Author : Thorsten Jolitz</p>
+<p class="creator"> Generated by Org mode 7.8.09 in Emacs 24.0.93.1. </p><a href="http://validator.w3.org/check?uri=referer">Validate XHTML 1.0</a>
+
+</div>
+</body>
+</html>

simple/old-stuff/simple2.org → doc/old-stuff/simple2.org


+ 84 - 85
test/examples/simple.html

@@ -3,12 +3,12 @@
 	       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> 
 <head>
-<title>simple example</title>
+<title>A simple example Org-mode file</title>
 
 <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
-<meta name="title" content="simple example"/>
+<meta name="title" content="A simple example Org-mode file"/>
 <meta name="generator" content="Org-mode"/>
-<meta name="generated" content="2012-06-19 08:35:09 CEST"/>
+<meta name="generated" content="2012-06-07 18:59:40 CEST"/>
 <meta name="author" content="Thorsten Jolitz"/>
 <meta name="description" content="nil"/>
 <meta name="keywords" content="nil"/>
@@ -60,62 +60,29 @@
   .org-info-js_search-highlight {background-color:#ffff00; color:#000000;
                                  font-weight:bold; }
   /*]]>*/-->
-</style><style type="text/css">
-<!--/*--><![CDATA[/*><!--*/
-/* highlight editable secitons on mouseover */
-.editable{ background: lightyellow; }
-
-/* hide Org-mode text from display */
-.raw-org{ display: none; }
-/*]]>*/-->
 </style>
-<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script><script type="text/javascript">
+<script type="text/javascript">
 <!--/*--><![CDATA[/*><!--*/
-// after the page loads, run the set set_clickable function
-$(document).ready(function(){ set_clickable(); });
-
-function set_clickable(){
-  // to every element with class="edit_in_place"
-  $('.edit_in_place').click(function(){
-    // Replace the original html with the following text area.
-    // In this example we replace with the raw html, but in iorg we
-    // will replace with the raw Org-mode text.
-    var org = $(this).next().html();
-    var html = $(this).html();                                  
-    $(this).after('<div><textarea rows="10" cols="80">'+org+'</textarea>'+
-                  '<div><input type="button" value="SAVE" class="save_button" />'+
-                  '     <input type="button" value="CANCEL" class="cancel_button" />'+
-                  '</div></div>');
-    // remove the orignal html
-    $(this).remove();;
-    // call these functions when buttons are hit
-    $('.save_button').click(function(){ save_changes(this, html); });
-    $('.cancel_button').click(function(){ abort_changes(this, html); });
-  });
-  // make every div with class="edit_in_place" highlight on mouseover
-  $('.edit_in_place').mouseover(function(){ $(this).addClass("editable"); });
-  $('.edit_in_place').mouseout(function() { $(this).removeClass("editable"); });
-};
-
-function save_changes(obj, new_html){
-  $.post("update-this-org-file", {content: new_html}, function(txt){ alert(txt); });
-  // In real life the above post request would hit the elnode server,
-  // which would in turn respond with the HTML that we would use to
-  // replace the element.  For now we'll just replace with the raw
-  // text verbatim.
-  $(obj).parent().parent().after('<div class="edit_in_place">'+new_html+'</div>');
-  $(obj).parent().parent().remove();
-  set_clickable();
-};
-
-function abort_changes(obj, old_html){
-  $(obj).parent().parent().after('<div class="edit_in_place">'+old_html+'</div>');
-  $(obj).parent().parent().remove();
-  set_clickable();
-};
+ function CodeHighlightOn(elem, id)
+ {
+   var target = document.getElementById(id);
+   if(null != target) {
+     elem.cacheClassElem = elem.className;
+     elem.cacheClassTarget = target.className;
+     target.className = "code-highlighted";
+     elem.className   = "code-highlighted";
+   }
+ }
+ function CodeHighlightOff(elem, id)
+ {
+   var target = document.getElementById(id);
+   if(elem.cacheClassElem)
+     elem.className = elem.cacheClassElem;
+   if(elem.cacheClassTarget)
+     target.className = elem.cacheClassTarget;
+ }
 /*]]>*///-->
-</script>
-<script type="text/javascript" src="http://orgmode.org/mathjax/MathJax.js">
+</script><script type="text/javascript" src="http://orgmode.org/mathjax/MathJax.js">
 <!--/*--><![CDATA[/*><!--*/
     MathJax.Hub.Config({
         // Only one of the two following lines, depending on user settings
@@ -159,50 +126,82 @@ function abort_changes(obj, old_html){
 </head>
 <body>
 <div id="content">
-<h1 class="title">simple example</h1>
-<p>
-A simple example with a headline and a paragraph.</p>
+<h1 class="title">A simple example Org-mode file</h1>
 
 <div id="outline-container-1" class="outline-2">
-<h2 id="sec-1"><span class="section-number-2">1</span> Top level headline&nbsp;&nbsp;&nbsp;<span class="tag"><span class="iorg">iorg</span></span></h2>
+<h2 id="sec-1"><span class="section-number-2">1</span> <span class="done DONE">DONE</span> This file has a top level heading&nbsp;&nbsp;&nbsp;<span class="tag"><span class="bar">bar</span></span></h2>
 <div class="outline-text-2" id="text-1">
-<div class="edit_in_place"><p>
-Lorem ipsum <b>dolor</b> sit amet, consectetuer adipiscing elit. Donec
-hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam
-nisl, tincidunt et, <i>mattis</i> eget, convallis nec, purus. Cum sociis
-natoque penatibus et magnis dis parturient montes, nascetur ridiculus
-mus. Nulla posuere. Donec vitae dolor. Nullam <span style="text-decoration:underline;">tristique</span> diam non
-turpis. Cras placerat accumsan nulla. Nullam rutrum. Nam vestibulum
-accumsan nisl.</p></div><div class="raw-org">Lorem ipsum *dolor* sit amet, consectetuer adipiscing elit. Donec
-hendrerit tempor tellus. Donec pretium posuere tellus. Proin quam
-nisl, tincidunt et, /mattis/ eget, convallis nec, purus. Cum sociis
-natoque penatibus et magnis dis parturient montes, nascetur ridiculus
-mus. Nulla posuere. Donec vitae dolor. Nullam _tristique_ diam non
-turpis. Cras placerat accumsan nulla. Nullam rutrum. Nam vestibulum
-accumsan nisl.
 
-</div>
 
-<div class="edit_in_place"><ul>
-<li>first
+<p>
+\(class=\"section-numberThis heading has five components.  Lets see if we can edit all five
+through the web interface.
+</p>
+<ol>
+<li>task state, currently this is <code>TODO</code> lets change it to <code>DONE</code>.
 </li>
-<li>second
+<li>a property, try to change the <code>iorg-property</code> from <code>foo</code> to <code>bar</code>.
 </li>
-<li>third
+<li>tag, change the tag from <code>bar</code> to <code>foo</code>.
 </li>
-</ul></div><div class="raw-org">- first
-- second
-- third
-</div>
+<li>heading text, allow the heading text to be edited through the web interface.
+</li>
+<li>body text, allow this text to be edited through the web interface
+</li>
+</ol>
+
+
+<p>
+The five items listed about should be in rough order of difficulty.
+So lets work through them in order.  The simplest should be changing
+the task state.  We can start with a simple button on the final html
+page next to the headline, the text of this button can be "finish",
+and pressing it will change the TODO state in this Org-mode file on
+the server to DONE.  The implementation should look like this&hellip;
+</p>
+<ul>
+<li>add a function to the `org-export-html-final-hook' which will scan
+through the resulting HTML and will add the html/JS necessary to
+include this button on the final web page.
+</li>
+<li>start an elnode server and add two different handlers, one will
+serve up this web page (with the above hook), and the second will
+handle the form data returned by the "finish" button.
+</li>
+<li>the second handler will use the `org-todo' function to change the
+actual state of the heading.
+</li>
+</ul>
+
+
+<p>
+Once this is working we should have a much better idea of what is
+required to make this process work end-to-end.  With luck we may have
+some initial functionality by the end of next week (some number of the
+above 5 parts being editable).
+</p>
+
+
+<p>
+Lets keep all of the code implementing this in <a href="file://simple.el">file://simple.el</a>, once it
+is written we can see what it look like and decide how to better
+organize it into a directory structure which we'll want to keep for
+the remainder of the iorg project.
+</p>
+
+
+<p>
+I've stubbed out a few functions in <a href="file://simple.el">file://simple.el</a>, add new functions
+as they are needed.
+</p>
 </div>
 </div>
 
 </div>
 <div id="postamble">
-<p class="date"> Date: 2012-06-19 08:35:09 CEST </p> 
+<p class="date"> Date: 2012-06-07 18:59:40 CEST </p> 
 <p class="author"> Author : Thorsten Jolitz</p>
 <p class="creator"> Generated by Org mode 7.8.09 in Emacs 24.0.93.1. </p><a href="http://validator.w3.org/check?uri=referer">Validate XHTML 1.0</a>
-
 </div>
 </body>
 </html>

+ 208 - 0
doc/old-stuff/simple_bak2.html

@@ -0,0 +1,208 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+	       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> 
+<head>
+<title>A simple example Org-mode file</title>
+
+<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
+<meta name="title" content="A simple example Org-mode file"/>
+<meta name="generator" content="Org-mode"/>
+<meta name="generated" content="2012-06-12 00:16:50 CEST"/>
+<meta name="author" content="Thorsten Jolitz"/>
+<meta name="description" content="nil"/>
+<meta name="keywords" content="nil"/>
+<style type="text/css">
+ <!--/*--><![CDATA[/*><!--*/
+  html { font-family: Times, serif; font-size: 12pt; }
+  .title  { text-align: center; }
+  .todo   { color: red; }
+  .done   { color: green; }
+  .tag    { background-color: #add8e6; font-weight:normal }
+  .target { }
+  .timestamp { color: #bebebe; }
+  .timestamp-kwd { color: #5f9ea0; }
+  .right  {margin-left:auto; margin-right:0px;  text-align:right;}
+  .left   {margin-left:0px;  margin-right:auto; text-align:left;}
+  .center {margin-left:auto; margin-right:auto; text-align:center;}
+  p.verse { margin-left: 3% }
+  pre {
+	border: 1pt solid #AEBDCC;
+	background-color: #F3F5F7;
+	padding: 5pt;
+	font-family: courier, monospace;
+        font-size: 90%;
+        overflow:auto;
+  }
+  table { border-collapse: collapse; }
+  td, th { vertical-align: top;  }
+  th.right  { text-align:center;  }
+  th.left   { text-align:center;   }
+  th.center { text-align:center; }
+  td.right  { text-align:right;  }
+  td.left   { text-align:left;   }
+  td.center { text-align:center; }
+  dt { font-weight: bold; }
+  div.figure { padding: 0.5em; }
+  div.figure p { text-align: center; }
+  div.inlinetask {
+    padding:10px;
+    border:2px solid gray;
+    margin:10px;
+    background: #ffffcc;
+  }
+  textarea { overflow-x: auto; }
+  .linenr { font-size:smaller }
+  .code-highlighted {background-color:#ffff00;}
+  .org-info-js_info-navigation { border-style:none; }
+  #org-info-js_console-label { font-size:10px; font-weight:bold;
+                               white-space:nowrap; }
+  .org-info-js_search-highlight {background-color:#ffff00; color:#000000;
+                                 font-weight:bold; }
+  /*]]>*/-->
+</style>
+<script type="text/javascript">
+<!--/*--><![CDATA[/*><!--*/
+ function CodeHighlightOn(elem, id)
+ {
+   var target = document.getElementById(id);
+   if(null != target) {
+     elem.cacheClassElem = elem.className;
+     elem.cacheClassTarget = target.className;
+     target.className = "code-highlighted";
+     elem.className   = "code-highlighted";
+   }
+ }
+ function CodeHighlightOff(elem, id)
+ {
+   var target = document.getElementById(id);
+   if(elem.cacheClassElem)
+     elem.className = elem.cacheClassElem;
+   if(elem.cacheClassTarget)
+     target.className = elem.cacheClassTarget;
+ }
+/*]]>*///-->
+</script><script type="text/javascript" src="http://orgmode.org/mathjax/MathJax.js">
+<!--/*--><![CDATA[/*><!--*/
+    MathJax.Hub.Config({
+        // Only one of the two following lines, depending on user settings
+        // First allows browser-native MathML display, second forces HTML/CSS
+        //  config: ["MMLorHTML.js"], jax: ["input/TeX"],
+            jax: ["input/TeX", "output/HTML-CSS"],
+        extensions: ["tex2jax.js","TeX/AMSmath.js","TeX/AMSsymbols.js",
+                     "TeX/noUndefined.js"],
+        tex2jax: {
+            inlineMath: [ ["\\(","\\)"] ],
+            displayMath: [ ['$$','$$'], ["\\[","\\]"], ["\\begin{displaymath}","\\end{displaymath}"] ],
+            skipTags: ["script","noscript","style","textarea","pre","code"],
+            ignoreClass: "tex2jax_ignore",
+            processEscapes: false,
+            processEnvironments: true,
+            preview: "TeX"
+        },
+        showProcessingMessages: true,
+        displayAlign: "center",
+        displayIndent: "2em",
+
+        "HTML-CSS": {
+             scale: 100,
+             availableFonts: ["STIX","TeX"],
+             preferredFont: "TeX",
+             webFont: "TeX",
+             imageFont: "TeX",
+             showMathMenu: true,
+        },
+        MMLorHTML: {
+             prefer: {
+                 MSIE:    "MML",
+                 Firefox: "MML",
+                 Opera:   "HTML",
+                 other:   "HTML"
+             }
+        }
+    });
+/*]]>*///-->
+</script>
+</head>
+<body>
+<div id="content">
+<h1 class="title">A simple example Org-mode file</h1>
+
+<div id="outline-container-1" class="outline-2">
+<h2 id="sec-1"><span class="section-number-2">1</span> <span class="selectbox"><select name:"simple-todo" size="1"><option selected>TODO</option><option>DONE</option><option>WAITING</option><option>CANCELLED</option><option>HOLD</option><option>NEXT</option></select></span> This file has a top level heading&nbsp;&nbsp;&nbsp;<span class="textfield"><input type="text" name:"simple-tag"size="3" maxlenght="6" value="bar"></input></span></h2>
+<div class="outline-text-2" id="text-1">
+
+
+<p>
+This heading has five components.  Lets see if we can edit all five
+through the web interface.
+</p>
+<ol>
+<li>task state, currently this is <code>TODO</code> lets change it to <code>DONE</code>.
+</li>
+<li>a property, try to change the <code>iorg-property</code> from <code>foo</code> to <code>bar</code>.
+</li>
+<li>tag, change the tag from <code>bar</code> to <code>foo</code>.
+</li>
+<li>heading text, allow the heading text to be edited through the web interface.
+</li>
+<li>body text, allow this text to be edited through the web interface
+</li>
+</ol>
+
+
+<p>
+The five items listed about should be in rough order of difficulty.
+So lets work through them in order.  The simplest should be changing
+the task state.  We can start with a simple button on the final html
+page next to the headline, the text of this button can be "finish",
+and pressing it will change the TODO state in this Org-mode file on
+the server to DONE.  The implementation should look like this&hellip;
+</p>
+<ul>
+<li>add a function to the `org-export-html-final-hook' which will scan
+through the resulting HTML and will add the html/JS necessary to
+include this button on the final web page.
+</li>
+<li>start an elnode server and add two different handlers, one will
+serve up this web page (with the above hook), and the second will
+handle the form data returned by the "finish" button.
+</li>
+<li>the second handler will use the `org-todo' function to change the
+actual state of the heading.
+</li>
+</ul>
+
+
+<p>
+Once this is working we should have a much better idea of what is
+required to make this process work end-to-end.  With luck we may have
+some initial functionality by the end of next week (some number of the
+above 5 parts being editable).
+</p>
+
+
+<p>
+Lets keep all of the code implementing this in <a href="file://simple.el">file://simple.el</a>, once it
+is written we can see what it look like and decide how to better
+organize it into a directory structure which we'll want to keep for
+the remainder of the iorg project.
+</p>
+
+
+<p>
+I've stubbed out a few functions in <a href="file://simple.el">file://simple.el</a>, add new functions
+as they are needed.
+</p>
+</div>
+</div>
+
+</div>
+<div id="postamble">
+<p class="date"> Date: 2012-06-12 00:16:50 CEST </p> 
+<p class="author"> Author : Thorsten Jolitz</p>
+<p class="creator"> Generated by Org mode 7.8.09 in Emacs 24.0.93.1. </p><a href="http://validator.w3.org/check?uri=referer">Validate XHTML 1.0</a>
+
+</div>
+</body>
+</html>

+ 233 - 0
doc/old-stuff/simple_bak3.html

@@ -0,0 +1,233 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+	       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> 
+<head>
+<title>A simple example Org-mode file</title>
+
+<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
+<meta name="title" content="A simple example Org-mode file"/>
+<meta name="generator" content="Org-mode"/>
+<meta name="generated" content="2012-06-12 22:36:47 CEST"/>
+<meta name="author" content="Thorsten Jolitz"/>
+<meta name="description" content="nil"/>
+<meta name="keywords" content="nil"/>
+<style type="text/css">
+ <!--/*--><![CDATA[/*><!--*/
+  html { font-family: Times, serif; font-size: 12pt; }
+  .title  { text-align: center; }
+  .todo   { color: red; }
+  .done   { color: green; }
+  .tag    { background-color: #add8e6; font-weight:normal }
+  .target { }
+  .timestamp { color: #bebebe; }
+  .timestamp-kwd { color: #5f9ea0; }
+  .right  {margin-left:auto; margin-right:0px;  text-align:right;}
+  .left   {margin-left:0px;  margin-right:auto; text-align:left;}
+  .center {margin-left:auto; margin-right:auto; text-align:center;}
+  p.verse { margin-left: 3% }
+  pre {
+	border: 1pt solid #AEBDCC;
+	background-color: #F3F5F7;
+	padding: 5pt;
+	font-family: courier, monospace;
+        font-size: 90%;
+        overflow:auto;
+  }
+  table { border-collapse: collapse; }
+  td, th { vertical-align: top;  }
+  th.right  { text-align:center;  }
+  th.left   { text-align:center;   }
+  th.center { text-align:center; }
+  td.right  { text-align:right;  }
+  td.left   { text-align:left;   }
+  td.center { text-align:center; }
+  dt { font-weight: bold; }
+  div.figure { padding: 0.5em; }
+  div.figure p { text-align: center; }
+  div.inlinetask {
+    padding:10px;
+    border:2px solid gray;
+    margin:10px;
+    background: #ffffcc;
+  }
+  textarea { overflow-x: auto; }
+  .linenr { font-size:smaller }
+  .code-highlighted {background-color:#ffff00;}
+  .org-info-js_info-navigation { border-style:none; }
+  #org-info-js_console-label { font-size:10px; font-weight:bold;
+                               white-space:nowrap; }
+  .org-info-js_search-highlight {background-color:#ffff00; color:#000000;
+                                 font-weight:bold; }
+  /*]]>*/-->
+</style>
+<script type="text/javascript">
+<!--/*--><![CDATA[/*><!--*/
+ function CodeHighlightOn(elem, id)
+ {
+   var target = document.getElementById(id);
+   if(null != target) {
+     elem.cacheClassElem = elem.className;
+     elem.cacheClassTarget = target.className;
+     target.className = "code-highlighted";
+     elem.className   = "code-highlighted";
+   }
+ }
+ function CodeHighlightOff(elem, id)
+ {
+   var target = document.getElementById(id);
+   if(elem.cacheClassElem)
+     elem.className = elem.cacheClassElem;
+   if(elem.cacheClassTarget)
+     target.className = elem.cacheClassTarget;
+ }
+/*]]>*///-->
+</script><script type="text/javascript" src="http://orgmode.org/mathjax/MathJax.js">
+<!--/*--><![CDATA[/*><!--*/
+    MathJax.Hub.Config({
+        // Only one of the two following lines, depending on user settings
+        // First allows browser-native MathML display, second forces HTML/CSS
+        //  config: ["MMLorHTML.js"], jax: ["input/TeX"],
+            jax: ["input/TeX", "output/HTML-CSS"],
+        extensions: ["tex2jax.js","TeX/AMSmath.js","TeX/AMSsymbols.js",
+                     "TeX/noUndefined.js"],
+        tex2jax: {
+            inlineMath: [ ["\\(","\\)"] ],
+            displayMath: [ ['$$','$$'], ["\\[","\\]"], ["\\begin{displaymath}","\\end{displaymath}"] ],
+            skipTags: ["script","noscript","style","textarea","pre","code"],
+            ignoreClass: "tex2jax_ignore",
+            processEscapes: false,
+            processEnvironments: true,
+            preview: "TeX"
+        },
+        showProcessingMessages: true,
+        displayAlign: "center",
+        displayIndent: "2em",
+
+        "HTML-CSS": {
+             scale: 100,
+             availableFonts: ["STIX","TeX"],
+             preferredFont: "TeX",
+             webFont: "TeX",
+             imageFont: "TeX",
+             showMathMenu: true,
+        },
+        MMLorHTML: {
+             prefer: {
+                 MSIE:    "MML",
+                 Firefox: "MML",
+                 Opera:   "HTML",
+                 other:   "HTML"
+             }
+        }
+    });
+/*]]>*///-->
+</script>
+</head>
+<body>
+<div id="content">
+<h1 class="title">A simple example Org-mode file</h1>
+
+<div id="outline-container-1" class="outline-2"><form method=post action="http://localhost:8000/make-me-interactive-html">
+
+<h2 id="sec-1"><span class="section-number-2">1</span> <span class="selectbox"><select name:"simple-todo" size="1"><option selected>TODO</option><option>DONE</option><option>WAITING</option><option>CANCELLED</option><option>HOLD</option><option>NEXT</option></select></span> This file has a top level heading&nbsp;&nbsp;&nbsp;<span class="textfield"><input type="text" name="simple-tag" size="3" maxlenght="6" value="bar"></input></span></h2>
+<table border=0>
+
+<tr>
+<td colspan=2>
+This heading has five components.  Lets see if we can edit all five
+through the web interface.</td>
+</tr>
+<tr>
+<td>task state, currently this is <code>TODO</code> lets change it to <code>DONE</code>.
+</td>
+<td><input type=nil name=""></td>
+</tr>
+<tr>
+<td>a property, try to change the <code>iorg-property</code> from <code>foo</code> to <code>bar</code>.
+</td>
+<td><input type=nil name=""></td>
+</tr>
+<tr>
+<td>tag, change the tag from <code>bar</code> to <code>foo</code>.
+</td>
+<td><input type=nil name=""></td>
+</tr>
+<tr>
+<td>heading text, allow the heading text to be edited through the web interface.
+</td>
+<td><input type=nil name=""></td>
+</tr>
+<tr>
+<td>body text, allow this text to be edited through the web interface
+</td>
+<td><input type=nil name=""></td>
+</tr>
+
+<tr>
+<td colspan=2>
+The five items listed about should be in rough order of difficulty.
+So lets work through them in order.  The simplest should be changing
+the task state.  We can start with a simple button on the final html
+page next to the headline, the text of this button can be "finish",
+and pressing it will change the TODO state in this Org-mode file on
+the server to DONE.  The implementation should look like this&hellip;</td>
+</tr>
+<tr>
+<td>add a function to the `org-export-html-final-hook' which will scan
+through the resulting HTML and will add the html/JS necessary to
+include this button on the final web page.
+</td>
+<td><input type=nil name=""></td>
+</tr>
+<tr>
+<td>start an elnode server and add two different handlers, one will
+serve up this web page (with the above hook), and the second will
+handle the form data returned by the "finish" button.
+</td>
+<td><input type=nil name=""></td>
+</tr>
+<tr>
+<td>the second handler will use the `org-todo' function to change the
+actual state of the heading.
+</td>
+<td><input type=nil name=""></td>
+</tr>
+
+<tr>
+<td colspan=2>
+Once this is working we should have a much better idea of what is
+required to make this process work end-to-end.  With luck we may have
+some initial functionality by the end of next week (some number of the
+above 5 parts being editable).</td>
+</tr>
+
+<tr>
+<td colspan=2>
+Lets keep all of the code implementing this in <a href="simple.el" >simple.el</a>, once it
+is written we can see what it look like and decide how to better
+organize it into a directory structure which we'll want to keep for
+the remainder of the iorg project.</td>
+</tr>
+
+<tr>
+<td colspan=2>
+I've stubbed out a few functions in <a href="simple.el" >simple.el</a>, add new functions
+as they are needed.</td>
+</tr>
+<tr>
+<td><input type="reset"></td>
+<td><input type="submit" value="Send edits"></td>
+</tr>
+</table>
+</form></div>
+
+</div>
+<div id="postamble">
+<p class="date"> Date: 2012-06-12 22:36:47 CEST </p> 
+<p class="author"> Author : Thorsten Jolitz</p>
+<p class="creator"> Generated by Org mode 7.8.09 in Emacs 24.0.93.1. </p><a href="http://validator.w3.org/check?uri=referer">Validate XHTML 1.0</a>
+
+</div>
+</body>
+</html>

+ 0 - 279
iorg/doc/org-export-summary.txt

@@ -1,279 +0,0 @@
-;;; org-export.el --- Generic Export Engine For Org
-
-;; Copyright (C) 2012  Free Software Foundation, Inc.
-
-;; Author: Nicolas Goaziou <n.goaziou at gmail dot com>
-;; Keywords: outlines, hypermedia, calendar, wp
-
-;; This program is free software; you can redistribute it and/or modify
-;; it under the terms of the GNU General Public License as published by
-;; the Free Software Foundation, either version 3 of the License, or
-;; (at your option) any later version.
-
-;; This program is distributed in the hope that it will be useful,
-;; but WITHOUT ANY WARRANTY; without even the implied warranty of
-;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-;; GNU General Public License for more details.
-
-;; You should have received a copy of the GNU General Public License
-;; along with this program.  If not, see <http://www.gnu.org/licenses/>.
-
-;;; Commentary:
-;;
-;; This library implements a generic export engine for Org, built on
-;; its syntactical parser: Org Elements.
-;;
-;; Besides that parser, the generic exporter is made of three distinct
-;; parts:
-;;
-;; - The communication channel consists in a property list, which is
-;;   created and updated during the process.  Its use is to offer
-;;   every piece of information, would it be about initial environment
-;;   or contextual data, all in a single place.  The exhaustive list
-;;   of properties is given in "The Communication Channel" section of
-;;   this file.
-;;
-;; - The transcoder walks the parse tree, ignores or treat as plain
-;;   text elements and objects according to export options, and
-;;   eventually calls back-end specific functions to do the real
-;;   transcoding, concatenating their return value along the way.
-;;
-;; - The filter system is activated at the very beginning and the very
-;;   end of the export process, and each time an element or an object
-;;   has been converted.  It is the entry point to fine-tune standard
-;;   output from back-end transcoders.
-;;
-;; The core function is `org-export-as'.  It returns the transcoded
-;; buffer as a string.
-;;
-;; In order to derive an exporter out of this generic implementation,
-;; one can define a transcode function for each element or object.
-;; Such function should return a string for the corresponding element,
-;; without any trailing space, or nil.  It must accept three
-;; arguments:
-;; 1. the element or object itself,
-;; 2. its contents, or nil when it isn't recursive,
-;; 3. the property list used as a communication channel.
-;;
-;; If no such function is found, that element or object type will
-;; simply be ignored, along with any separating blank line.  The same
-;; will happen if the function returns the nil value.  If that
-;; function returns the empty string, the type will be ignored, but
-;; the blank lines will be kept.
-;;
-;; Contents, when not nil, are stripped from any global indentation
-;; (although the relative one is preserved).  They also always end
-;; with a single newline character.
-;;
-;; These functions must follow a strict naming convention:
-;; `org-BACKEND-TYPE' where, obviously, BACKEND is the name of the
-;; export back-end and TYPE the type of the element or object handled.
-;;
-;; Moreover, two additional functions can be defined.  On the one
-;; hand, `org-BACKEND-template' returns the final transcoded string,
-;; and can be used to add a preamble and a postamble to document's
-;; body.  It must accept two arguments: the transcoded string and the
-;; property list containing export options.  On the other hand,
-;; `org-BACKEND-plain-text', when defined, is to be called on every
-;; text not recognized as an element or an object.  It must accept two
-;; arguments: the text string and the information channel.
-;;
-;; Any back-end can define its own variables.  Among them, those
-;; customizables should belong to the `org-export-BACKEND' group.
-;; Also, a special variable, `org-BACKEND-option-alist', allows to
-;; define buffer keywords and "#+options:" items specific to that
-;; back-end.  See `org-export-option-alist' for supported defaults and
-;; syntax.
-;;
-;; Tools for common tasks across back-ends are implemented in the
-;; penultimate part of this file.  A dispatcher for standard back-ends
-;; is provided in the last one.
-
-
-186 matches for "(def" in buffer: org-export.el
-    110:(defconst org-export-max-depth 19
-    113:(defconst org-export-option-alist
-    174:(defconst org-export-special-keywords
-    181:(defconst org-export-filters-alist
-    249:(defconst org-export-default-inline-image-rule
-    273:(defgroup org-export nil
-    278:(defgroup org-export-general nil
-    283:(defcustom org-export-with-archived-trees 'headline
-    299:(defcustom org-export-with-author t
-    306:(defcustom org-export-with-clocks nil
-    313:(defcustom org-export-with-creator 'comment
-    326:(defcustom org-export-creator-string
-    334:(defcustom org-export-with-drawers t
-    350:(defcustom org-export-with-email nil
-    357:(defcustom org-export-with-emphasize t
-    368:(defcustom org-export-exclude-tags '("noexport")
-    380:(defcustom org-export-with-fixed-width t
-    386:  : (while (defc cnt)
-    395:(defcustom org-export-with-footnotes t
-    402:(defcustom org-export-headline-levels 3
-    413:(defcustom org-export-default-language "en"
-    420:(defcustom org-export-preserve-breaks nil
-    430:(defcustom org-export-with-entities t
-    444:(defcustom org-export-with-planning nil
-    451:(defcustom org-export-with-priority nil
-    461:(defcustom org-export-with-section-numbers t
-    472:(defcustom org-export-select-tags '("export")
-    485:(defcustom org-export-with-special-strings t
-    502:(defcustom org-export-with-sub-superscripts t
-    531:(defcustom org-export-with-toc t
-    549:(defcustom org-export-with-tables t
-    561:(defcustom org-export-with-tags t
-    576:(defcustom org-export-with-tasks t
-    593:(defcustom org-export-time-stamp-file t
-    602:(defcustom org-export-with-timestamps t
-    618:(defcustom org-export-with-todo-keywords t
-    624:(defcustom org-export-allow-BIND 'confirm
-    634:(defcustom org-export-snippet-translation-alist nil
-    648:(defcustom org-export-coding-system nil
-    653:(defcustom org-export-copy-to-kill-ring t
-    658:(defcustom org-export-initial-scope 'buffer
-    666:(defcustom org-export-show-temporary-export-buffer t
-    676:(defcustom org-export-dispatch-use-expert-ui nil
-    956:(defun org-export-get-environment (&optional backend subtreep ext-plist)
-    990:(defun org-export-parse-option-keyword (options &optional backend)
-   1019:(defun org-export-get-subtree-options ()
-   1046:(defun org-export-get-inbuffer-options (&optional backend files)
-   1174:(defun org-export-get-buffer-attributes ()
-   1200:(defun org-export-get-global-options (&optional backend)
-   1219:(defun org-export-store-footnote-definitions (info)
-   1244:	(let ((def (org-footnote-at-definition-p)))
-   1260:(defvar org-export-allow-BIND-local nil)
-   1261:(defun org-export-confirm-letbind ()
-   1272:(defun org-export-install-letbind-maybe ()
-   1302:(defun org-export-collect-tree-properties (data info)
-   1345:  (let ((defs (plist-get info :footnote-definition-alist)))
-   1366:(defun org-export-get-min-level (data options)
-   1384:(defun org-export-collect-headline-numbering (data options)
-   1408:(defun org-export-populate-ignore-list (data options)
-   1440:(defun org-export--selected-trees (data info)
-   1467:(defun org-export--skip-p (blob options select-tags)
-   1547:(defun org-export-transcoder (blob info)
-   1557:(defun org-export-data (data info)
-   1647:(defun org-export-interpret-p (blob info)
-   1671:(defsubst org-export-expand (blob contents)
-   1679:(defun org-export-ignore-element (element info)
-   1726:(defvar org-export-before-parsing-hook nil
-   1736:(defvar org-export-filter-parse-tree-functions nil
-   1743:(defvar org-export-filter-final-output-functions nil
-   1750:(defvar org-export-filter-plain-text-functions nil
-   1760:(defvar org-export-filter-center-block-functions nil
-   1766:(defvar org-export-filter-clock-functions nil
-   1772:(defvar org-export-filter-drawer-functions nil
-   1778:(defvar org-export-filter-dynamic-block-functions nil
-   1784:(defvar org-export-filter-headline-functions nil
-   1790:(defvar org-export-filter-inlinetask-functions nil
-   1796:(defvar org-export-filter-plain-list-functions nil
-   1802:(defvar org-export-filter-item-functions nil
-   1808:(defvar org-export-filter-comment-functions nil
-   1814:(defvar org-export-filter-comment-block-functions nil
-   1820:(defvar org-export-filter-example-block-functions nil
-   1826:(defvar org-export-filter-export-block-functions nil
-   1832:(defvar org-export-filter-fixed-width-functions nil
-   1838:(defvar org-export-filter-footnote-definition-functions nil
-   1844:(defvar org-export-filter-horizontal-rule-functions nil
-   1850:(defvar org-export-filter-keyword-functions nil
-   1856:(defvar org-export-filter-latex-environment-functions nil
-   1862:(defvar org-export-filter-babel-call-functions nil
-   1868:(defvar org-export-filter-paragraph-functions nil
-   1874:(defvar org-export-filter-planning-functions nil
-   1880:(defvar org-export-filter-property-drawer-functions nil
-   1886:(defvar org-export-filter-quote-block-functions nil
-   1893:(defvar org-export-filter-quote-section-functions nil
-   1899:(defvar org-export-filter-section-functions nil
-   1905:(defvar org-export-filter-special-block-functions nil
-   1911:(defvar org-export-filter-src-block-functions nil
-   1917:(defvar org-export-filter-table-functions nil
-   1923:(defvar org-export-filter-table-cell-functions nil
-   1929:(defvar org-export-filter-table-row-functions nil
-   1935:(defvar org-export-filter-verse-block-functions nil
-   1944:(defvar org-export-filter-bold-functions nil
-   1950:(defvar org-export-filter-code-functions nil
-   1956:(defvar org-export-filter-entity-functions nil
-   1962:(defvar org-export-filter-export-snippet-functions nil
-   1968:(defvar org-export-filter-footnote-reference-functions nil
-   1974:(defvar org-export-filter-inline-babel-call-functions nil
-   1980:(defvar org-export-filter-inline-src-block-functions nil
-   1986:(defvar org-export-filter-italic-functions nil
-   1992:(defvar org-export-filter-latex-fragment-functions nil
-   1998:(defvar org-export-filter-line-break-functions nil
-   2004:(defvar org-export-filter-link-functions nil
-   2010:(defvar org-export-filter-macro-functions nil
-   2016:(defvar org-export-filter-radio-target-functions nil
-   2022:(defvar org-export-filter-statistics-cookie-functions nil
-   2028:(defvar org-export-filter-strike-through-functions nil
-   2034:(defvar org-export-filter-subscript-functions nil
-   2040:(defvar org-export-filter-superscript-functions nil
-   2046:(defvar org-export-filter-target-functions nil
-   2052:(defvar org-export-filter-timestamp-functions nil
-   2058:(defvar org-export-filter-underline-functions nil
-   2064:(defvar org-export-filter-verbatim-functions nil
-   2070:(defun org-export-filter-apply-functions (filters value info)
-   2080:(defun org-export-install-filters (info)
-   2135:(defun org-export-as
-   2220:(defun org-export-to-buffer
-   2243:(defun org-export-to-file
-   2268:(defun org-export-output-file-name (extension &optional subtreep pub-dir)
-   2315:(defmacro org-export-with-current-buffer-copy (&rest body)
-   2343:(def-edebug-spec org-export-with-current-buffer-copy (body))
-   2345:(defun org-export-expand-include-keyword (&optional included dir)
-   2428:(defun org-export-prepare-file-contents (file &optional lines ind minlevel)
-   2519:(defun org-export-snippet-backend (export-snippet)
-   2544:(defun org-export-collect-footnote-definitions (data info)
-   2562:		 (let ((def (org-export-get-footnote-definition fn info)))
-   2577:(defun org-export-footnote-first-reference-p (footnote-reference info)
-   2609:(defun org-export-get-footnote-definition (footnote-reference info)
-   2616:(defun org-export-get-footnote-number (footnote info)
-   2676:(defun org-export-get-relative-level (headline info)
-   2682:(defun org-export-low-level-p (headline info)
-   2697:(defun org-export-get-headline-number (headline info)
-   2702:(defun org-export-numbered-headline-p (headline info)
-   2709:(defun org-export-number-to-roman (n)
-   2725:(defun org-export-first-sibling-p (headline info)
-   2731:(defun org-export-last-sibling-p (headline info)
-   2760:(defun org-export-solidify-link-text (s)
-   2765:(defun org-export-get-coderef-format (path desc)
-   2774:(defun org-export-inline-image-p (link &optional rules)
-   2798:(defun org-export-resolve-fuzzy-link (link info)
-   2867:(defun org-export-resolve-id-link (link info)
-   2883:(defun org-export-resolve-coderef (ref info)
-   2916:(defun org-export-expand-macro (macro info)
-   2944:(defun org-export-get-ordinal (element info &optional types predicate)
-   3028:(defun org-export-get-loc (element info)
-   3057:(defun org-export-unravel-code (element)
-   3108:(defun org-export-format-code (code fun &optional num-lines ref-alist)
-   3137:(defun org-export-format-code-default (element info)
-   3201:(defun org-export-table-has-special-column-p (table)
-   3222:(defun org-export-table-has-header-p (table info)
-   3240:(defun org-export-table-row-is-special-p (table-row info)
-   3276:(defun org-export-table-row-group (table-row info)
-   3298:(defun org-export-table-cell-width (table-cell info)
-   3333:(defun org-export-table-cell-alignment (table-cell info)
-   3392:(defun org-export-table-cell-borders (table-cell info)
-   3482:(defun org-export-table-cell-starts-colgroup-p (table-cell info)
-   3494:(defun org-export-table-cell-ends-colgroup-p (table-cell info)
-   3504:(defun org-export-table-row-starts-rowgroup-p (table-row info)
-   3513:(defun org-export-table-row-ends-rowgroup-p (table-row info)
-   3522:(defun org-export-table-row-starts-header-p (table-row info)
-   3530:(defun org-export-table-row-ends-header-p (table-row info)
-   3538:(defun org-export-table-dimensions (table info)
-   3559:(defun org-export-table-cell-address (table-cell info)
-   3593:(defun org-export-get-table-cell-at (address table info)
-   3631:(defun org-export-collect-headlines (info &optional n)
-   3649:(defun org-export-collect-elements (type info &optional predicate)
-   3671:(defun org-export-collect-tables (info)
-   3680:(defun org-export-collect-figures (info predicate)
-   3695:(defun org-export-collect-listings (info)
-   3719:(defun org-export-get-genealogy (blob info)
-   3751:(defun org-export-get-parent (blob info)
-   3757:(defun org-export-get-parent-headline (blob info)
-   3767:(defun org-export-get-parent-paragraph (object info)
-   3777:(defun org-export-get-parent-table (object info)
-   3787:(defun org-export-get-previous-element (blob info)
-   3797:(defun org-export-get-next-element (blob info)
-   3816:(defun org-export-dispatch ()
-   3904:(defun org-export-dispatch-ui (options expertp)

+ 29 - 0
iorg/lisp/iorg-generic-controller.el

@@ -0,0 +1,29 @@
+;;; iorg-generic-controller.el -- generic reusable and use case
+;;; independent controller functions for the iOrg framework
+
+(defun iorg-static-export-handler (httpcon file)
+  "Exports an Org file to static html"
+  (elnode-send-file httpcon (iorg--org-to-html file 'STATIC)))
+
+
+(defun iorg--org-to-html (org-file &optional STATIC)
+  "Export ORG-FILE to html and return the expanded filename. If STATIC is non nil, export to static html, otherwise use the iOrg exporter"
+  (if (not (file-exists-p (expand-file-name org-file simple-dir)))
+      (error "File doesn't exist")
+    (save-window-excursion
+      (with-current-buffer
+          (find-file (expand-file-name org-file simple-dir))
+        (and
+         (org-check-for-org-mode)
+         (org-export-to-file
+          (if STATIC 'e-html 'iorg) 
+          (expand-file-name
+           (concat
+            (file-name-sans-extension
+             (file-name-nondirectory org-file))
+            ".html") simple-dir )))))))
+
+
+
+
+(provide 'iorg-generic-controller)

simple/logic/iorg-generic-logic.el → iorg/lisp/iorg-generic-logic.el


simple/org-iorg-basic-export.el → iorg/lisp/iorg-html.el


simple/util.el → iorg/lisp/iorg-util.el


+ 3 - 1
iorg/lisp/org-iorg.el

@@ -1,4 +1,4 @@
-;;; org-iorg.el --- A webframework based on Org-mode and Elnode
+;;; iorg.el --- A webframework based on Org-mode and Elnode
 
 ;; Programming interactive web-applications with Org-mode 
 ;; Copyright (C) 2012  Thorsten Jolitz 
@@ -462,3 +462,5 @@ the iOrg framework."
 ;; Integration with and fixes for other packages
 ;; Experimental code
 ;; Finish up
+
+(provide 'iorg)

+ 4 - 0
logic/bugpile-logic.el

@@ -0,0 +1,4 @@
+;;; bugpile-logic.el --- use-case independent logic functions for bugpile.
+
+
+(provide 'bugpile-logic)

+ 0 - 26
mvc/controller/bp-open-new-task-controller.el

@@ -1,26 +0,0 @@
-; url mappings
-(defconst bp-open-new-task-urls
-  '(("$" . bp-show-open-new-task-handler)
-    ("store/.*$" . bp-validate-store-new-task-handler)))
-
-; dispatcher
-(defun bp-open-new-task-dispatcher-handler (httpcon)
-  (elnode-dispatcher httpcon bp-open-new-task-urls))
-
-; system action
-(defun bp-show-open-new-task-handler (httpcon)
-  (elnode-http-start httpcon 200 '("Content-Type" . "text/html"))
-  (elnode-http-return
-   httpcon
-   "<html><body><h1>Hello World</h1></body></html>"))
-
-; system action 
-(defun bp-validate-store-new-task-handler (httpcon)
-  (elnode-http-start httpcon 200 '("Content-Type" . "text/html"))
-  (elnode-http-return
-   httpcon
-   "<html><body><h1>Hello World</h1></body></html>"))
-
-(elnode-start 'bp-open-new-task-dispatcher-handler :port 8028 :host "localhost")
-
-                

+ 0 - 9
mvc/controller/my-elnode-hello-world.el

@@ -1,9 +0,0 @@
-(defun my-elnode-hello-world-handler (httpcon)
-  (elnode-http-start httpcon 200 '("Content-Type" . "text/html"))
-  (elnode-http-return
-   httpcon
-   "<html><body><h1>Hello World</h1></body></html>"))
-
-(elnode-start 'my-elnode-hello-world-handler :port 8028 :host "localhost")
-
-                

+ 0 - 1
mvc/objects/iorg-proto-user.org

@@ -1 +0,0 @@
-* User

+ 0 - 32
mvc/view/bp-login-view.org

@@ -1,32 +0,0 @@
-#+OPTIONS:    H:3 num:nil toc:2 \n:nil @:t ::t |:t ^:{} -:t f:t *:t TeX:t LaTeX:t skip:nil d:(HIDE) tags:not-in-toc
-#+STARTUP:    align fold nodlcheck hidestars oddeven lognotestate hideblocks
-#+SEQ_TODO:   TODO(t) INPROGRESS(i) WAITING(w@) | DONE(d) CANCELED(c@)
-#+TAGS:       Write(w) Update(u) Fix(f) Check(c) noexport(n)
-#+TITLE:      Bugpile - Login
-#+AUTHOR:     Thorsten Jolitz
-#+EMAIL:      tj[at]data-driven[dot]de
-#+LANGUAGE:   en
-#+STYLE:      <style type="text/css">#outline-container-introduction{ clear:both; }</style>
-#+LINK_UP:    index.html
-#+LINK_HOME:  http://orgmode.org/worg/
-#+EXPORT_EXCLUDE_TAGS: noexport
-
-# #+name: banner
-# #+begin_html
-#   <div id="subtitle" style="float: center; text-align: center;">
-#   <p>
-#   A Web-Framework based on <a href="http://orgmode.org/">Org-mode</a> and
-#                                 <a href="http://picolisp.com/5000/!wiki?home/">PicoLisp</a>
-#   </p>
-#   <p>
-#   <a href="http://picolisp.com/5000/!wiki?home/">
-#   <img src="http://picolisp.com/5000/wiki/logo.png"/>
-#   </a>
-#   </p>
-#   </div>
-# #+end_html
-
-/A Bugtracker based on GNU Emacs Org-mode and Elnode/
-
-* Login
-

+ 0 - 85
mvc/view/bp-open-new-task-scene.html

@@ -1,85 +0,0 @@
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-               "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
-<head>
-<title>Bugpile - Open New Task</title>
-<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
-<meta name="title" content="Bugpile - Open New Task"/>
-<meta name="generator" content="Org-mode"/>
-<meta name="generated" content="2012-05-10 17:45:32 CEST"/>
-<meta name="author" content="Thorsten Jolitz"/>
-<meta name="description" content=""/>
-<meta name="keywords" content=""/>
-
-<style type="text/css">#outline-container-introduction{ clear:both; }</style>
-<script type="text/javascript">
-<!--/*--><![CDATA[/*><!--*/
- function CodeHighlightOn(elem, id)
- {
-   var target = document.getElementById(id);
-   if(null != target) {
-     elem.cacheClassElem = elem.className;
-     elem.cacheClassTarget = target.className;
-     target.className = "code-highlighted";
-     elem.className   = "code-highlighted";
-   }
- }
- function CodeHighlightOff(elem, id)
- {
-   var target = document.getElementById(id);
-   if(elem.cacheClassElem)
-     elem.className = elem.cacheClassElem;
-   if(elem.cacheClassTarget)
-     target.className = elem.cacheClassTarget;
- }
-/*]]>*///-->
-</script>
-
-</head>
-<body>
-<div id="org-div-home-and-up" style="text-align:right;font-size:70%;white-space:nowrap;">
- <a accesskey="h" href="index.html"> UP </a>
- |
- <a accesskey="H" href="http://orgmode.org/worg/"> HOME </a>
-</div>
-
-<div id="preamble">
-
-</div>
-
-<div id="content">
-<h1 class="title">Bugpile - Open New Task</h1>
-
-
-<p>
-<i>A Bugtracker based on GNU Emacs Org-mode and Elnode</i>
-</p>
-
-<div id="table-of-contents">
-<h2>Table of Contents</h2>
-<div id="text-table-of-contents">
-<ul>
-<li><a href="#sec-1">Open New Task</a></li>
-</ul>
-</div>
-</div>
-
-<div id="outline-container-1" class="outline-2">
-<h2 id="sec-1">Open New Task</h2>
-<div class="outline-text-2" id="text-1">
-
-
-</div>
-</div>
-</div>
-
-<div id="postamble">
-<p class="date">Date: 2012-05-10 17:45:32 CEST</p>
-<p class="author">Author: Thorsten Jolitz</p>
-<p class="creator">Org version 7.8.03 with Emacs version 24</p>
-<a href="http://validator.w3.org/check?uri=referer">Validate XHTML 1.0</a>
-
-</div>
-</body>
-</html>

+ 0 - 32
mvc/view/bp-open-new-task-scene.org

@@ -1,32 +0,0 @@
-#+OPTIONS:    H:3 num:nil toc:2 \n:nil @:t ::t |:t ^:{} -:t f:t *:t TeX:t LaTeX:t skip:nil d:(HIDE) tags:not-in-toc
-#+STARTUP:    align fold nodlcheck hidestars oddeven lognotestate hideblocks
-#+SEQ_TODO:   TODO(t) INPROGRESS(i) WAITING(w@) | DONE(d) CANCELED(c@)
-#+TAGS:       Write(w) Update(u) Fix(f) Check(c) noexport(n)
-#+TITLE:      Bugpile - Open New Task
-#+AUTHOR:     Thorsten Jolitz
-#+EMAIL:      tj[at]data-driven[dot]de
-#+LANGUAGE:   en
-#+STYLE:      <style type="text/css">#outline-container-introduction{ clear:both; }</style>
-#+LINK_UP:    index.html
-#+LINK_HOME:  http://orgmode.org/worg/
-#+EXPORT_EXCLUDE_TAGS: noexport
-
-# #+name: banner
-# #+begin_html
-#   <div id="subtitle" style="float: center; text-align: center;">
-#   <p>
-#   A Web-Framework based on <a href="http://orgmode.org/">Org-mode</a> and
-#                                 <a href="http://picolisp.com/5000/!wiki?home/">PicoLisp</a>
-#   </p>
-#   <p>
-#   <a href="http://picolisp.com/5000/!wiki?home/">
-#   <img src="http://picolisp.com/5000/wiki/logo.png"/>
-#   </a>
-#   </p>
-#   </div>
-# #+end_html
-
-/A Bugtracker based on GNU Emacs Org-mode and Elnode/
-
-* Open New Task
-

+ 0 - 85
mvc/view/bp-register-scene.html

@@ -1,85 +0,0 @@
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-               "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
-<head>
-<title>Bugpile - Register as User</title>
-<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
-<meta name="title" content="Bugpile - Register as User"/>
-<meta name="generator" content="Org-mode"/>
-<meta name="generated" content="2012-05-10 17:44:50 CEST"/>
-<meta name="author" content="Thorsten Jolitz"/>
-<meta name="description" content=""/>
-<meta name="keywords" content=""/>
-
-<style type="text/css">#outline-container-introduction{ clear:both; }</style>
-<script type="text/javascript">
-<!--/*--><![CDATA[/*><!--*/
- function CodeHighlightOn(elem, id)
- {
-   var target = document.getElementById(id);
-   if(null != target) {
-     elem.cacheClassElem = elem.className;
-     elem.cacheClassTarget = target.className;
-     target.className = "code-highlighted";
-     elem.className   = "code-highlighted";
-   }
- }
- function CodeHighlightOff(elem, id)
- {
-   var target = document.getElementById(id);
-   if(elem.cacheClassElem)
-     elem.className = elem.cacheClassElem;
-   if(elem.cacheClassTarget)
-     target.className = elem.cacheClassTarget;
- }
-/*]]>*///-->
-</script>
-
-</head>
-<body>
-<div id="org-div-home-and-up" style="text-align:right;font-size:70%;white-space:nowrap;">
- <a accesskey="h" href="index.html"> UP </a>
- |
- <a accesskey="H" href="http://orgmode.org/worg/"> HOME </a>
-</div>
-
-<div id="preamble">
-
-</div>
-
-<div id="content">
-<h1 class="title">Bugpile - Register as User</h1>
-
-
-<p>
-<i>A Bugtracker based on GNU Emacs Org-mode and Elnode</i>
-</p>
-
-<div id="table-of-contents">
-<h2>Table of Contents</h2>
-<div id="text-table-of-contents">
-<ul>
-<li><a href="#sec-1">Register as User</a></li>
-</ul>
-</div>
-</div>
-
-<div id="outline-container-1" class="outline-2">
-<h2 id="sec-1">Register as User</h2>
-<div class="outline-text-2" id="text-1">
-
-
-</div>
-</div>
-</div>
-
-<div id="postamble">
-<p class="date">Date: 2012-05-10 17:44:50 CEST</p>
-<p class="author">Author: Thorsten Jolitz</p>
-<p class="creator">Org version 7.8.03 with Emacs version 24</p>
-<a href="http://validator.w3.org/check?uri=referer">Validate XHTML 1.0</a>
-
-</div>
-</body>
-</html>

+ 0 - 32
mvc/view/bp-register-scene.org

@@ -1,32 +0,0 @@
-#+OPTIONS:    H:3 num:nil toc:2 \n:nil @:t ::t |:t ^:{} -:t f:t *:t TeX:t LaTeX:t skip:nil d:(HIDE) tags:not-in-toc
-#+STARTUP:    align fold nodlcheck hidestars oddeven lognotestate hideblocks
-#+SEQ_TODO:   TODO(t) INPROGRESS(i) WAITING(w@) | DONE(d) CANCELED(c@)
-#+TAGS:       Write(w) Update(u) Fix(f) Check(c) noexport(n)
-#+TITLE:      Bugpile - Register as User
-#+AUTHOR:     Thorsten Jolitz
-#+EMAIL:      tj[at]data-driven[dot]de
-#+LANGUAGE:   en
-#+STYLE:      <style type="text/css">#outline-container-introduction{ clear:both; }</style>
-#+LINK_UP:    index.html
-#+LINK_HOME:  http://orgmode.org/worg/
-#+EXPORT_EXCLUDE_TAGS: noexport
-
-# #+name: banner
-# #+begin_html
-#   <div id="subtitle" style="float: center; text-align: center;">
-#   <p>
-#   A Web-Framework based on <a href="http://orgmode.org/">Org-mode</a> and
-#                                 <a href="http://picolisp.com/5000/!wiki?home/">PicoLisp</a>
-#   </p>
-#   <p>
-#   <a href="http://picolisp.com/5000/!wiki?home/">
-#   <img src="http://picolisp.com/5000/wiki/logo.png"/>
-#   </a>
-#   </p>
-#   </div>
-# #+end_html
-
-/A Bugtracker based on GNU Emacs Org-mode and Elnode/
-
-* Register as User
-

+ 0 - 85
mvc/view/bugpile-login-scene.html

@@ -1,85 +0,0 @@
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-               "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
-<head>
-<title>Bugpile - Login</title>
-<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
-<meta name="title" content="Bugpile - Login"/>
-<meta name="generator" content="Org-mode"/>
-<meta name="generated" content="2012-05-10 17:45:06 CEST"/>
-<meta name="author" content="Thorsten Jolitz"/>
-<meta name="description" content=""/>
-<meta name="keywords" content=""/>
-
-<style type="text/css">#outline-container-introduction{ clear:both; }</style>
-<script type="text/javascript">
-<!--/*--><![CDATA[/*><!--*/
- function CodeHighlightOn(elem, id)
- {
-   var target = document.getElementById(id);
-   if(null != target) {
-     elem.cacheClassElem = elem.className;
-     elem.cacheClassTarget = target.className;
-     target.className = "code-highlighted";
-     elem.className   = "code-highlighted";
-   }
- }
- function CodeHighlightOff(elem, id)
- {
-   var target = document.getElementById(id);
-   if(elem.cacheClassElem)
-     elem.className = elem.cacheClassElem;
-   if(elem.cacheClassTarget)
-     target.className = elem.cacheClassTarget;
- }
-/*]]>*///-->
-</script>
-
-</head>
-<body>
-<div id="org-div-home-and-up" style="text-align:right;font-size:70%;white-space:nowrap;">
- <a accesskey="h" href="index.html"> UP </a>
- |
- <a accesskey="H" href="http://orgmode.org/worg/"> HOME </a>
-</div>
-
-<div id="preamble">
-
-</div>
-
-<div id="content">
-<h1 class="title">Bugpile - Login</h1>
-
-
-<p>
-<i>A Bugtracker based on GNU Emacs Org-mode and Elnode</i>
-</p>
-
-<div id="table-of-contents">
-<h2>Table of Contents</h2>
-<div id="text-table-of-contents">
-<ul>
-<li><a href="#sec-1">Login</a></li>
-</ul>
-</div>
-</div>
-
-<div id="outline-container-1" class="outline-2">
-<h2 id="sec-1">Login</h2>
-<div class="outline-text-2" id="text-1">
-
-
-</div>
-</div>
-</div>
-
-<div id="postamble">
-<p class="date">Date: 2012-05-10 17:45:06 CEST</p>
-<p class="author">Author: Thorsten Jolitz</p>
-<p class="creator">Org version 7.8.03 with Emacs version 24</p>
-<a href="http://validator.w3.org/check?uri=referer">Validate XHTML 1.0</a>
-
-</div>
-</body>
-</html>

+ 0 - 124
mvc/view/index.html

@@ -1,124 +0,0 @@
-
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-               "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
-<head>
-<title>Bugpile - Home</title>
-<meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"/>
-<meta name="title" content="Bugpile - Home"/>
-<meta name="generator" content="Org-mode"/>
-<meta name="generated" content="2012-05-10 17:44:11 CEST"/>
-<meta name="author" content="Thorsten Jolitz"/>
-<meta name="description" content=""/>
-<meta name="keywords" content=""/>
-
-<style type="text/css">#outline-container-introduction{ clear:both; }</style>
-<script type="text/javascript">
-<!--/*--><![CDATA[/*><!--*/
- function CodeHighlightOn(elem, id)
- {
-   var target = document.getElementById(id);
-   if(null != target) {
-     elem.cacheClassElem = elem.className;
-     elem.cacheClassTarget = target.className;
-     target.className = "code-highlighted";
-     elem.className   = "code-highlighted";
-   }
- }
- function CodeHighlightOff(elem, id)
- {
-   var target = document.getElementById(id);
-   if(elem.cacheClassElem)
-     elem.className = elem.cacheClassElem;
-   if(elem.cacheClassTarget)
-     target.className = elem.cacheClassTarget;
- }
-/*]]>*///-->
-</script>
-
-</head>
-<body>
-<div id="org-div-home-and-up" style="text-align:right;font-size:70%;white-space:nowrap;">
- <a accesskey="h" href="index.html"> UP </a>
- |
- <a accesskey="H" href="http://orgmode.org/worg/"> HOME </a>
-</div>
-
-<div id="preamble">
-
-</div>
-
-<div id="content">
-<h1 class="title">Bugpile - Home</h1>
-
-
-<p>
-<i>A Bugtracker based on GNU Emacs Org-mode and Elnode</i>
-</p>
-
-<div id="table-of-contents">
-<h2>Table of Contents</h2>
-<div id="text-table-of-contents">
-<ul>
-<li><a href="#sec-1">Home</a>
-<ul>
-<li><a href="#sec-1-1">Introduction</a></li>
-<li><a href="#sec-1-2">Links</a></li>
-</ul>
-</li>
-</ul>
-</div>
-</div>
-
-<div id="outline-container-1" class="outline-2">
-<h2 id="sec-1">Home</h2>
-<div class="outline-text-2" id="text-1">
-
-
-</div>
-
-<div id="outline-container-1-1" class="outline-3">
-<h3 id="sec-1-1">Introduction</h3>
-<div class="outline-text-3" id="text-1-1">
-
-<p>You can search the tasklist for feature-requests and bugs. When you
-register and login, you are allowed to open new tasks, submit feature
-requests and write comments yourself. Once the site admins added you
-to the assignees list, you can assign tasks to yourself (or tasks
-might be assigned to you by the admins) and change the status of tasks
-assigned to you.
-</p></div>
-
-</div>
-
-<div id="outline-container-1-2" class="outline-3">
-<h3 id="sec-1-2">Links</h3>
-<div class="outline-text-3" id="text-1-2">
-
-<ul>
-<li><a href="bp-register-scene.html">Register</a>
-</li>
-<li><a href="bp-login-scene.html">Login</a>
-</li>
-<li><a href="bp-open-new-task.html">Open new task</a>
-</li>
-</ul>
-
-
-
-
-
-</div>
-</div>
-</div>
-</div>
-
-<div id="postamble">
-<p class="date">Date: 2012-05-10 17:44:11 CEST</p>
-<p class="author">Author: Thorsten Jolitz</p>
-<p class="creator">Org version 7.8.03 with Emacs version 24</p>
-<a href="http://validator.w3.org/check?uri=referer">Validate XHTML 1.0</a>
-
-</div>
-</body>
-</html>

+ 0 - 46
mvc/view/index.org

@@ -1,46 +0,0 @@
-#+OPTIONS:    H:3 num:nil toc:2 \n:nil @:t ::t |:t ^:{} -:t f:t *:t TeX:t LaTeX:t skip:nil d:(HIDE) tags:not-in-toc
-#+STARTUP:    align fold nodlcheck hidestars oddeven lognotestate hideblocks
-#+SEQ_TODO:   TODO(t) INPROGRESS(i) WAITING(w@) | DONE(d) CANCELED(c@)
-#+TAGS:       Write(w) Update(u) Fix(f) Check(c) noexport(n)
-#+TITLE:      Bugpile - Home
-#+AUTHOR:     Thorsten Jolitz
-#+EMAIL:      tj[at]data-driven[dot]de
-#+LANGUAGE:   en
-#+STYLE:      <style type="text/css">#outline-container-introduction{ clear:both; }</style>
-#+LINK_UP:    index.html
-#+LINK_HOME:  http://orgmode.org/worg/
-#+EXPORT_EXCLUDE_TAGS: noexport
-
-# #+name: banner
-# #+begin_html
-#   <div id="subtitle" style="float: center; text-align: center;">
-#   <p>
-#   A Web-Framework based on <a href="http://orgmode.org/">Org-mode</a> and
-#                                 <a href="http://picolisp.com/5000/!wiki?home/">PicoLisp</a>
-#   </p>
-#   <p>
-#   <a href="http://picolisp.com/5000/!wiki?home/">
-#   <img src="http://picolisp.com/5000/wiki/logo.png"/>
-#   </a>
-#   </p>
-#   </div>
-# #+end_html
-
-/A Bugtracker based on GNU Emacs Org-mode and Elnode/
-
-* Home
-** Introduction
-You can search the tasklist for feature-requests and bugs. When you
-register and login, you are allowed to open new tasks, submit feature
-requests and write comments yourself. Once the site admins added you
-to the assignees list, you can assign tasks to yourself (or tasks
-might be assigned to you by the admins) and change the status of tasks
-assigned to you.
-** Links
-- [[file:bp-register-scene.org][Register]]
-- [[file:bp-login-scene.org][Login]]
-- [[file:bp-open-new-task.org][Open new task]]
-
-
-
-

simple/objects/html-class.org → objects/classes/html-class.org


simple/objects/object-class.org → objects/classes/object-class.org


simple/objects/simple-class.org → objects/classes/task-class.org


mvc/logic/iorg-proto-authentification-model.org → objects/task-obj.org


+ 0 - 1
simple/.gitignore

@@ -1 +0,0 @@
-*.html

+ 0 - 6
simple/controller/iorg-generic-controller.el

@@ -1,6 +0,0 @@
-;;; iorg-generic-controller.el -- generic reusable and use case
-;;; independent controller functions for the iOrg framework
-
-
-
-(provide 'iorg-generic-controller)

+ 0 - 5
simple/logic/simple-logic.el

@@ -1,5 +0,0 @@
-;;; simple-logic.el --- use-case dependent logic functions for the
-;;; 'simple' example.
-
-
-(provide 'simple-logic)

mvc/view/css/lib.css → test/iorg-testsuite.el


simple/objects/simple-obj.org → view/css/lib.css


+ 0 - 0
view/edit-tasks/edit-task-view.org


mvc/view/headers/iorg-proto-header.org → view/headers/iorg-proto-header.org