<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFCC" text="#000000">
    So I am defining my Python classes for a Django data model.  I have
    a the following class hierarchy and would value some expert input on
    how to best implement this.<br>
    <br>
    I have many instances of a particular class which I call a
    "workflow", e.g. wf_1, wf_2, wf_3, etc.<br>
    These class instances of workflows can be combined into "composite
    workflows", e.g. {cwf_1 is comprised of wf1 & wf_3}, {cwf_2 is
    wf_2 and wf_3}, or {cwf_3 is just wf_2}, etc.<br>
    The workflows that constitute the composite workflow is positionally
    dependent, i.e. if cwf_1 is comprised of wf_1 and wf_3, then wf_1
    comes 1st AND wf_3 is 2nd.<br>
    As I have many workflow instances that accumulate in my persistent
    database (Django data model), then the composite workflows become an
    ordered collection of workflow instances.<br>
    <br>
    My first thought here is that the composite workflow class should
    have a field that is a simple list of workflows, i.e.
    list(workflows), but I am somewhat unsure of how to code this
    correctly.<br>
    <br>
    Here is a sample pseudo-code...<br>
    <br>
    class a_workflow(models.Model):<br>
    ...<br>
    <br>
    class composite_workflow(models.Model):<br>
        ...a list of "a_workflows", i.e. a composite workflow, should I
    use this syntax?<br>
        set_of_workflows = list(a_workflow)<br>
    <br>
    Is this how a pro would do this?<br>
    <br>
    Regards, Marc<br>
    <div class="moz-signature">-- <br>
      <meta http-equiv="CONTENT-TYPE" content="text/html;
        charset=ISO-8859-1">
      <title></title>
      <meta name="GENERATOR" content="LibreOffice 3.3 (Unix)">
      <meta name="CREATED" content="0;0">
      <meta name="CHANGEDBY" content="J. Edwards">
      <meta name="CHANGED" content="20110727;17373400">
      <meta name="CHANGEDBY" content="J. Edwards">
      <style type="text/css">
        <!--
                P { color: #000000 }
        -->
        </style>
      <p><font color="#800080"><font face="Comic Sans MS, cursive"><font
              style="font-size: 13pt" size="3"><span style="font-weight:
                normal">J.
                Marc Edwards</span></font></font></font><font
          face="Comic Sans MS, cursive"><br>
          Lead
          Architect - Semiconductor Design Portals</font><br>
        <font color="#3333ff"><font face="Nimbus Sans L, sans-serif"><font
              size="4">Nimbis
              Services, Inc.</font></font></font><br>
        <font face="Courier New">Skype:
          (919) 747-3775<br>
          Cell:  (919) 345-1021<br>
          Fax:  
          (919) 882-8602</font><br>
        <font face="Ubuntu"><a class="moz-txt-link-abbreviated" href="mailto:marc.edwards@nimbisservices.com">marc.edwards@nimbisservices.com</a><br>
          <a class="moz-txt-link-abbreviated" href="http://www.nimbisservices.com">www.nimbisservices.com</a></font></p>
    </div>
  </body>
</html>