Skip to content

Commit

Permalink
Minor CSS Renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayson Vantuyl committed Mar 6, 2009
1 parent 76d0132 commit bf2a056
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion html/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ html body {
overflow:auto;
}

#commentaccordian {
#commentpane {
position:absolute;
top:0;
bottom:0;
Expand Down
2 changes: 1 addition & 1 deletion html/workflow.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ <h1 class="title">Example Workflow</h1>
<div><div class="comment indent">&lt;!--<div class="indent"> Example Workflow for Vertebra</div>--&gt;</div></div><div><div class="element hotzone indent" target="workflow">&lt;<span class="tag">workflow</span> <span class="attrkey">name</span>=<span class="attrval">"/sales/accept_order"</span> <span class="attrkey">start</span>=<span class="attrval">"get_data"</span>&gt;<div class="indent"> Sales: Receive Order</div><div class="indent"></div><div class="indent"> Receives an order and gets things rolling.</div><div class="indent"></div><div class="element hotzone indent" target="global,import">&lt;<span class="tag">import</span>&gt;<div class="element hotzone indent" target="type,res,assert">&lt;<span class="tag">res</span> <span class="attrkey">assert</span>=<span class="attrval">"company"</span>&gt;/company/engineyard"&lt;/<span class="tag">res</span>&gt;</div><div class="element hotzone indent" target="type,res,assert">&lt;<span class="tag">res</span> <span class="attrkey">assert</span>=<span class="attrval">"location"</span>&gt;/us&lt;/<span class="tag">res</span>&gt;</div><div class="element hotzone indent" target="type,i4,assert">&lt;<span class="tag">i4</span> <span class="attrkey">assert</span>=<span class="attrval">"api_version"</span>&gt;5&lt;/<span class="tag">i4</span>&gt;</div><div class="indent"></div><div class="element hotzone indent" target="type,string,import_from">&lt;<span class="tag">string</span> <span class="attrkey">from</span>=<span class="attrval">"name"</span>&gt;Id of Customer&lt;/<span class="tag">string</span>&gt;</div><div class="element hotzone indent" target="type,string,import_from">&lt;<span class="tag">string</span> <span class="attrkey">from</span>=<span class="attrval">"location"</span>&gt;Resource Giving Location Information&lt;/<span class="tag">string</span>&gt;</div><div class="element hotzone indent" target="type,list,import_from">&lt;<span class="tag">list</span> <span class="attrkey">from</span>=<span class="attrval">"items"</span>&gt;Line Items Ordered&lt;/<span class="tag">list</span>&gt;</div><div class="indent"></div><div class="element hotzone indent" target="type,i4,stuffed">&lt;<span class="tag">i4</span> <span class="attrkey">key</span>=<span class="attrval">"lucky_number"</span>&gt;42&lt;/<span class="tag">i4</span>&gt;</div>&lt;/<span class="tag">import</span>&gt;</div><div class="indent"></div><div class="comment indent">&lt;!-- We don't have any global &lt;export /&gt; tag --&gt;</div><div class="indent"></div><div class="element hotzone indent" target="state">&lt;<span class="tag">state</span> <span class="attrkey">id</span>=<span class="attrval">"get_data"</span>&gt;<div class="indent"> First, we have to load the contact data from our CRM.</div><div class="indent"></div><div class="element hotzone indent" target="op">&lt;<span class="tag">op</span> <span class="attrkey">type</span>=<span class="attrval">"/sales/crm/find_contact_data"</span> <span class="attrkey">scope</span>=<span class="attrval">"single"</span>&gt;<div class="element hotzone indent" target="op_input">&lt;<span class="tag">import</span>&gt;<div class="element indent">&lt;<span class="tag">string</span> <span class="attrkey">key</span>=<span class="attrval">"contact"</span> <span class="attrkey">from</span>=<span class="attrval">"name"</span> /&gt;</div><span class="element">&lt;<span class="tag">string</span> <span class="attrkey">key</span>=<span class="attrval">"type"</span>&gt;customer&lt;/<span class="tag">string</span>&gt;</span><div class="comment indent">&lt;!-- hardcoded value --&gt;</div>&lt;/<span class="tag">import</span>&gt;</div><div class="element hotzone indent" target="op_export">&lt;<span class="tag">export</span>&gt;<div class="element indent">&lt;<span class="tag">first</span> <span class="attrkey">key</span>=<span class="attrval">"contact_id"</span> <span class="attrkey">to</span>=<span class="attrval">"cust_id"</span> /&gt;</div><span class="element">&lt;<span class="tag">bool</span> <span class="attrkey">assert</span>=<span class="attrval">"error"</span>&gt;false&lt;/<span class="tag">bool</span>&gt;</span><div class="comment indent">&lt;!-- asserted output --&gt;</div>&lt;/<span class="tag">export</span>&gt;</div>&lt;/<span class="tag">op</span>&gt;</div><div class="element indent">&lt;<span class="tag">emit</span>&gt;<div class="element indent">&lt;<span class="tag">string</span> <span class="attrkey">key</span>=<span class="attrval">"message"</span>&gt;Located customer data...&lt;/<span class="tag">string</span>&gt;</div><div class="element indent">&lt;<span class="tag">string</span> <span class="attrkey">from</span>=<span class="attrval">"contact_id"</span> /&gt;</div>&lt;/<span class="tag">emit</span>&gt;</div><div class="element indent">&lt;<span class="tag">trans</span>&gt;<div class="element indent">&lt;<span class="tag">state</span>&gt;process_data&lt;/<span class="tag">state</span>&gt;</div>&lt;/<span class="tag">trans</span>&gt;</div>&lt;/<span class="tag">state</span>&gt;</div><div class="indent"></div><div class="element indent">&lt;<span class="tag">state</span> <span class="attrkey">id</span>=<span class="attrval">"process_data"</span>&gt;<div class="indent"> Now we dispatch the order to the CRM. emit some status, and a log.</div><div class="indent"></div><div class="element indent">&lt;<span class="tag">op</span> <span class="attrkey">type</span>=<span class="attrval">"/sales/crm/add_order"</span> <span class="attrkey">scope</span>=<span class="attrval">"single"</span>&gt;<div class="element indent">&lt;<span class="tag">import</span>&gt;<div class="element indent">&lt;<span class="tag">string</span> <span class="attrkey">key</span>=<span class="attrval">"contact_id"</span> <span class="attrkey">from</span>=<span class="attrval">"cust_id"</span> /&gt;</div><span class="element">&lt;<span class="tag">list</span> <span class="attrkey">from</span>=<span class="attrval">"items"</span> /&gt;</span><div class="comment indent">&lt;!-- key defaults to imported key --&gt;</div>&lt;/<span class="tag">import</span>&gt;</div><div class="element indent">&lt;<span class="tag">export</span>&gt;<div class="element indent">&lt;<span class="tag">first</span> <span class="attrkey">key</span>=<span class="attrval">"order_id"</span> /&gt;</div><div class="element indent">&lt;<span class="tag">first</span> <span class="attrkey">key</span>=<span class="attrval">"confirmation_code"</span> <span class="attrkey">to</span>=<span class="attrval">"ccode"</span> /&gt;</div>&lt;/<span class="tag">export</span>&gt;</div>&lt;/<span class="tag">op</span>&gt;</div><div class="element indent">&lt;<span class="tag">emit</span> <span class="attrkey">log_keys</span>=<span class="attrval">"app,location,cust_id,order_id"</span> <span class="attrkey">log_vals</span>=<span class="attrval">"ccode"</span>&gt;<div class="element indent">&lt;<span class="tag">res</span> <span class="attrkey">key</span>=<span class="attrval">"app"</span>&gt;/sales/crm&lt;/<span class="tag">res</span>&gt;</div><div class="element indent">&lt;<span class="tag">string</span> <span class="attrkey">from</span>=<span class="attrval">"cust_id"</span> /&gt;</div><div class="element indent">&lt;<span class="tag">string</span> <span class="attrkey">from</span>=<span class="attrval">"location"</span> /&gt;</div><div class="element indent">&lt;<span class="tag">string</span> <span class="attrkey">from</span>=<span class="attrval">"order_id"</span> /&gt;</div><div class="element indent">&lt;<span class="tag">string</span> <span class="attrkey">from</span>=<span class="attrval">"ccode"</span> /&gt;</div><div class="element indent">&lt;<span class="tag">string</span> <span class="attrkey">key</span>=<span class="attrval">"message"</span>&gt;Order accepted. Finding contacts.&lt;/<span class="tag">string</span>&gt;</div>&lt;/<span class="tag">emit</span>&gt;</div><div class="element indent">&lt;<span class="tag">trans</span>&gt;<div class="element indent">&lt;<span class="tag">state</span>&gt;build-notify-list&lt;/<span class="tag">state</span>&gt;</div>&lt;/<span class="tag">trans</span>&gt;</div>&lt;/<span class="tag">state</span>&gt;</div><div class="indent"></div><div class="element indent">&lt;<span class="tag">state</span> <span class="attrkey">id</span>=<span class="attrval">"build-notify-list"</span>&gt;<div class="indent"> Here, we lookup who needs to be notified.</div><div class="indent"></div><div class="element indent">&lt;<span class="tag">op</span> <span class="attrkey">type</span>=<span class="attrval">"/data/lookup"</span> <span class="attrkey">scope</span>=<span class="attrval">"all"</span>&gt;<div class="element indent">&lt;<span class="tag">import</span>&gt;<div class="element indent">&lt;<span class="tag">res</span> <span class="attrkey">key</span>=<span class="attrval">"list"</span>&gt;/notify/orders&lt;/<span class="tag">res</span>&gt;</div><div class="element indent">&lt;<span class="tag">string</span> <span class="attrkey">key</span>=<span class="attrval">"customer"</span> <span class="attrkey">from</span>=<span class="attrval">"cust_id"</span> /&gt;</div>&lt;/<span class="tag">import</span>&gt;</div><div class="indent"></div><div class="element indent">&lt;<span class="tag">export</span>&gt;<div class="comment indent">&lt;!-- Here we actually concatenate multiple lists --&gt;</div><div class="element indent">&lt;<span class="tag">list</span> <span class="attrkey">extend</span>=<span class="attrval">"contacts"</span>&gt;<span class="element">&lt;<span class="tag">email</span>&gt;[email protected]&lt;/<span class="tag">email</span>&gt;</span>&lt;/<span class="tag">list</span>&gt;</div>&lt;/<span class="tag">export</span>&gt;</div>&lt;/<span class="tag">op</span>&gt;</div><div class="indent"></div><div class="element indent">&lt;<span class="tag">op</span> <span class="attrkey">type</span>=<span class="attrval">"/data/lookup"</span> <span class="attrkey">scope</span>=<span class="attrval">"all"</span>&gt;<div class="comment indent">&lt;!-- This op runs in parallel --&gt;</div><div class="element indent">&lt;<span class="tag">import</span>&gt;<div class="element indent">&lt;<span class="tag">res</span> <span class="attrkey">key</span>=<span class="attrval">"list"</span>&gt;/notify/orders&lt;/<span class="tag">res</span>&gt;</div><div class="element indent">&lt;<span class="tag">res</span> <span class="attrkey">key</span>=<span class="attrval">"department"</span>&gt;/sales&lt;/<span class="tag">res</span>&gt;</div><div class="element indent">&lt;<span class="tag">res</span> <span class="attrkey">from</span>=<span class="attrval">"location"</span> /&gt;</div>&lt;/<span class="tag">import</span>&gt;</div><div class="indent"></div><div class="element indent">&lt;<span class="tag">export</span>&gt;<div class="comment indent">&lt;!-- and we keep adding to the same list --&gt;</div><div class="element indent">&lt;<span class="tag">list</span> <span class="attrkey">extend</span>=<span class="attrval">"contacts"</span>&gt;<span class="element">&lt;<span class="tag">email</span> /&gt;</span>&lt;/<span class="tag">list</span>&gt;</div>&lt;/<span class="tag">export</span>&gt;</div>&lt;/<span class="tag">op</span>&gt;</div><div class="indent"></div><div class="element indent">&lt;<span class="tag">emit</span>&gt;<div class="element indent">&lt;<span class="tag">string</span> <span class="attrkey">key</span>=<span class="attrval">"message"</span>&gt;Notifying contacts.&lt;/<span class="tag">string</span>&gt;</div>&lt;/<span class="tag">emit</span>&gt;</div><div class="indent"></div><div class="element indent">&lt;<span class="tag">trans</span>&gt;<div class="element indent">&lt;<span class="tag">state</span>&gt;notify&lt;/<span class="tag">state</span>&gt;</div>&lt;/<span class="tag">trans</span>&gt;</div>&lt;/<span class="tag">state</span>&gt;</div><div class="indent"></div><div class="element indent">&lt;<span class="tag">state</span> <span class="attrkey">id</span>=<span class="attrval">"notify"</span>&gt;<div class="indent"> And we send the notifications.</div><div class="indent"></div><div class="element indent">&lt;<span class="tag">op</span> <span class="attrkey">type</span>=<span class="attrval">"/comms/mailer"</span> <span class="attrkey">scope</span>=<span class="attrval">"single"</span>&gt;<div class="element indent">&lt;<span class="tag">import</span>&gt;<div class="element indent">&lt;<span class="tag">list</span> <span class="attrkey">each</span>=<span class="attrval">"contacts"</span> /&gt;</div><div class="element indent">&lt;<span class="tag">string</span> <span class="attrkey">key</span>=<span class="attrval">"message"</span>&gt;...&lt;/<span class="tag">string</span>&gt;</div>&lt;/<span class="tag">import</span>&gt;</div>&lt;/<span class="tag">op</span>&gt;</div><div class="indent"></div><div class="element indent">&lt;<span class="tag">emit</span>&gt;<div class="element indent">&lt;<span class="tag">string</span> <span class="attrkey">key</span>=<span class="attrval">"Message"</span>&gt;<div class="indent"> Order complete.</div><div class="indent"> .... (some sort of string interpolation potentially) ...</div>&lt;/<span class="tag">string</span>&gt;</div>&lt;/<span class="tag">emit</span>&gt;</div><div class="indent"></div><div class="element indent">&lt;<span class="tag">trans</span>&gt;<div class="element indent">&lt;<span class="tag">done</span> /&gt;</div>&lt;/<span class="tag">trans</span>&gt;</div>&lt;/<span class="tag">state</span>&gt;</div>&lt;/<span class="tag">workflow</span>&gt;</div></div><div><span class="comment">&lt;!-- funny test &amp;gt; --&gt;</span></div>
</div>
</div></div>
<div id="commentaccordian"><div class="pad">
<div id="commentpane"><div class="pad">
<div class="commenthdr" id="header"><p>Click title to see all comments.</p><p>Click individual element text to reveal comments limited to a certain location.</p></div>
<div class="commenthdr" id="toc"><h3 id="toctitle">Contents</h3><ul id="toclist"></ul></div>
<div class="commentbox" id="comment_workflow">
Expand Down
2 changes: 1 addition & 1 deletion src/xml_to_pretty
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ if __name__ == '__main__': # Not sure why this would be imported, but...just in

print >>dst,' </div>'
print >>dst,' </div></div>'
print >>dst,' <div id="commentaccordian"><div class="pad">'
print >>dst,' <div id="commentpane"><div class="pad">'

print >>dst,' <div class="commenthdr" id="header"><p>Click title to see all comments.</p><p>Click individual element text to reveal comments limited to a certain location.</p></div>'
print >>dst,' <div class="commenthdr" id="toc"><h3 id="toctitle">Contents</h3><ul id="toclist"></ul></div>'
Expand Down

0 comments on commit bf2a056

Please sign in to comment.