User Tools

Site Tools


pracro:pracro

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
pracro:pracro [2008/11/25 08:58] devapracro:pracro [2012/11/08 10:36] (current) deva
Line 1: Line 1:
 ======Pracro - Praxis Macro system ====== ======Pracro - Praxis Macro system ======
 +=====New concepts=====
 +[[pracro:speed-key concepts]]\\
 +[[pracro:post-commit-hook]]\\
 +[[pracro:course]]\\
 +[[pracro:praxisd]]\\
 +[[pracro:acl]]\\
 +[[pracro:template_concept_redesign]]
 +=====Upgrade from old to new database structure=====
 +Remove duplicate entries from fieldnames table:
 +<code>
 +delete from fieldnames where ctid not in (select max(dup.ctid) from fieldnames as dup group by dup.name);
 +</code>
 +
 +Remove duplicates from fields:
 +<code>
 +delete from fields where ctid not in (select max(dup.ctid) from fields as dup group by dup.transaction, dup.name, dup.value);
 +</code>
 +
 +<code>
 +ALTER TABLE transactions RENAME TO transactions_old;
 +</code>
 +
 +<code>
 +CREATE TYPE session_status AS ENUM ('active', 'idle', 'committed');
 +</code>
 =====Roadmap===== =====Roadmap=====
 See the [[pracro:roadmap]] page for details on how and when releases are made. See the [[pracro:roadmap]] page for details on how and when releases are made.
Line 10: Line 35:
  
 =====Random Stuff===== =====Random Stuff=====
 +[[Devas corner]]\\
 +[[Senators corner]]
 +
 +====Open/Close logic====
 +GOALS:
 +  * Only one open macro at any point of time.
 +  * Not possible to close an unchanged macro by saving it.
 +  * Warn the user if an unsaved macro is about to be collapsed.
 +When clicking on the expand/collapse button (the one with the ± on it) or on the title/line on top of the macro resume, the macro will be expanded.\\
 +Initially the 'Commit' button will be disabled, and stay that way until the user changes something in the macro.
 +The only exception to this is if the macro is loaded, prefilled with commit-able data, ie. data from Pentominos or other external sources, that simply needs to be committed to the database without further actions of the user.\\
 +When the commit button (or optionally abort button) is clicked, the macro will be collapsed, and its data either committed to the server, or thrown away.\\
 +If the expand/collapse button, or the title/line on the top of the macro is clicked, the macro will enter an 'about to collapse' mode:\\
 +If the macro contains no changes, it will simply be collapsed.\\
 +If the macro contains unsaved data, the user will be prompted to save these data and collapse, ignore the changes and collapse or stay open and do nothing.\\
 +If another macro is already open when the expansion is about to be initiated, the already open macro will enter 'about to collapse' mode. If the stay open option is selected, the new about to expand macro will stay collapsed.
  
 ====Types==== ====Types====
Line 146: Line 187:
   * <del>{{:uncheck.png}} Make startup criteria. Design the startpage macro, with deps as colours.</del>   * <del>{{:uncheck.png}} Make startup criteria. Design the startpage macro, with deps as colours.</del>
   * <del>{{:uncheck.png}} Automatic generation of continue button based on 'completed' and deps.</del>   * <del>{{:uncheck.png}} Automatic generation of continue button based on 'completed' and deps.</del>
 +
 +
  
 ====Documentation==== ====Documentation====
Line 151: Line 194:
   * {{:uncheck.png}} Document dbwidget.   * {{:uncheck.png}} Document dbwidget.
   * {{:uncheck.png}} Button continue_nocommit action.   * {{:uncheck.png}} Button continue_nocommit action.
-  * {{:uncheck.png}} New resume tag, with ''store_in_journal'' attribute.+  * {{:uncheck.png}} ''storechildren'' in metawidget
   * {{:uncheck.png}} Header tags in course.   * {{:uncheck.png}} Header tags in course.
 +  * {{:uncheck.png}} ''service'' attribute on query tags.
 +  * {{:uncheck.png}} DateTime widget
 +
  
 ====Macros (local)==== ====Macros (local)====
   * {{:uncheck.png}} B.2.2 nethinde tykkelse skal have et 'andet' felt.   * {{:uncheck.png}} B.2.2 nethinde tykkelse skal have et 'andet' felt.
   * {{:uncheck.png}} B.1 Præparat skal laves om til noget andet.   * {{:uncheck.png}} B.1 Præparat skal laves om til noget andet.
pracro/pracro.1227599934.txt.gz · Last modified: 2008/11/25 08:58 by deva