[Erp5-report] r12769 - in /spec/debian/unstable/erp5-dcworkflowgraph: ./ DCWorkflowGraph/ D...

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Feb 15 18:16:04 CET 2007


Author: yusei
Date: Thu Feb 15 18:16:00 2007
New Revision: 12769

URL: http://svn.erp5.org?rev=12769&view=rev
Log:
added debian package and workspace.

Added:
    spec/debian/unstable/erp5-dcworkflowgraph/
    spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/
    spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/DCWorkflowGraph.py
    spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/DCWorkflowGraph_Rank.py   (with props)
    spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/HISTORY.txt
    spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/__init__.py
    spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/config.py
    spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/
    spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/changelog
    spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/compat
    spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/control
    spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/copyright
    spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/dzproduct
    spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/postinst
    spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/rules   (with props)
    spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/install.txt
    spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/readme.txt
    spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/refresh.txt
    spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/todo.txt
    spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/version.txt
    spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/www/
    spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/www/manage_workflowGraph.zpt
    spec/debian/unstable/erp5-dcworkflowgraph/erp5-dcworkflowgraph_0.3-1.diff.gz   (with props)
    spec/debian/unstable/erp5-dcworkflowgraph/erp5-dcworkflowgraph_0.3-1.dsc
    spec/debian/unstable/erp5-dcworkflowgraph/erp5-dcworkflowgraph_0.3-1_all.deb   (with props)
    spec/debian/unstable/erp5-dcworkflowgraph/erp5-dcworkflowgraph_0.3-1_i386.build
    spec/debian/unstable/erp5-dcworkflowgraph/erp5-dcworkflowgraph_0.3-1_i386.changes
    spec/debian/unstable/erp5-dcworkflowgraph/erp5-dcworkflowgraph_0.3.orig.tar.gz   (with props)

Added: spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/DCWorkflowGraph.py
URL: http://svn.erp5.org/spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/DCWorkflowGraph.py?rev=12769&view=auto
==============================================================================
--- spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/DCWorkflowGraph.py (added)
+++ spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/DCWorkflowGraph.py Thu Feb 15 18:16:00 2007
@@ -1,0 +1,117 @@
+from Products.CMFCore.utils import getToolByName
+from tempfile import mktemp
+import os
+import sys
+from os.path import basename, splitext, join
+from config import bin_search_path, DOT_EXE
+
+
+# following 2 method is copied form PortalTranforms 
+# Owners of PortalTransforms own the copyright of these 2 functions
+class MissingBinary(Exception): pass
+
+def bin_search(binary):
+    """search the bin_search_path  for a given binary
+    returning its fullname or None"""
+    result = None
+    mode   = os.R_OK | os.X_OK
+    for p in bin_search_path:
+        path = join(p, binary)
+        if os.access(path, mode) == 1:
+            result = path
+            break
+    else:
+        raise MissingBinary('Unable to find binary "%s"' % binary)
+    return result
+
+
+def getObjectTitle(object):
+    """Get a state/transition title to be displayed in the graph
+    """
+    id = object.getId()
+    title = object.title
+    if not title:
+        title = id
+    else:
+        title = "%s\\n(%s)"%(title, id)
+    return title
+
+def getPOT(self, wf_id=""):
+    """ get the pot, copy from:
+         "dcworkfow2dot.py":http://awkly.org/Members/sidnei/weblog_storage/blog_27014
+        and Sidnei da Silva owns the copyright of the this function
+    """
+    out = []
+    transitions = {}
+
+    if wf_id:
+        w_tool = getToolByName(self, 'portal_workflow')
+        wf = getattr(w_tool, wf_id)
+    else:
+        wf = self
+
+    out.append('digraph "%s" {' % wf.title)
+    transitions_with_init_state = []
+    for s in wf.states.objectValues():
+        s_id = s.getId()
+        s_title = getObjectTitle(s)
+        out.append('%s [shape=box,label="%s",style="filled",fillcolor="#ffcc99"];' % (s_id, s_title))
+        for t_id in s.transitions:
+            transitions_with_init_state.append(t_id)
+            try:
+                t = wf.transitions[t_id]
+            except KeyError:
+                out.append(('# transition %s from state %s '
+                            'is missing' % (t_id, s_id)))
+                continue
+
+            new_state_id = t.new_state_id
+            # take care of 'remain in state' transitions
+            if not new_state_id:
+                new_state_id = s_id
+            key = (s_id, new_state_id)
+            value = transitions.get(key, [])
+            t_title = getObjectTitle(t)
+            value.append(t_title)
+            transitions[key] = value
+
+    # iterate also on transitions, and add transitions with no initial state
+    for t in wf.transitions.objectValues():
+        t_id = t.getId()
+        if t_id not in transitions_with_init_state:
+            new_state_id = t.new_state_id
+            if not new_state_id:
+                new_state_id = None
+            key = (None, new_state_id)
+            value = transitions.get(key, [])
+            t_title = getObjectTitle(t)
+            value.append(t_title)
+            transitions[key] = value
+
+    for k, v in transitions.items():
+        out.append('%s -> %s [label="%s"];' % (k[0], k[1],
+                                               ',\\n'.join(v)))
+
+    out.append('}')
+    return '\n'.join(out)
+
+def getGraph(self, wf_id="", format="gif", REQUEST=None):
+    """show a workflow as a graph, copy from:
+"OpenFlowEditor":http://www.openflow.it/wwwopenflow/Download/OpenFlowEditor_0_4.tgz
+    """
+    pot = getPOT(self, wf_id)
+    infile = mktemp('.dot')
+    f = open(infile, 'w')
+    f.write(pot)
+    f.close()
+    outfile = mktemp('.%s' % format)
+    os.system('%s -T%s -o %s %s' % (bin_search(DOT_EXE), format, outfile, infile))
+    out = open(outfile, 'rb')
+    result = out.read()
+    out.close()
+    os.remove(infile)
+    os.remove(outfile)
+    return result
+
+
+

Added: spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/DCWorkflowGraph_Rank.py
URL: http://svn.erp5.org/spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/DCWorkflowGraph_Rank.py?rev=12769&view=auto
==============================================================================
--- spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/DCWorkflowGraph_Rank.py (added)
+++ spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/DCWorkflowGraph_Rank.py Thu Feb 15 18:16:00 2007
@@ -1,0 +1,147 @@
+from Products.CMFCore.utils import getToolByName
+from tempfile import mktemp
+import os
+import sys
+from os.path import basename, splitext, join
+from config import bin_search_path, DOT_EXE
+
+
+# bin_search() and getPOT() are copied form PortalTranforms 
+# Owners of PortalTransforms own the copyright for these 2 functions
+class MissingBinary(Exception): pass
+
+def bin_search(binary):
+    """search the bin_search_path  for a given binary
+    returning its fullname or None"""
+    result = None
+    mode   = os.R_OK | os.X_OK
+    for p in bin_search_path:
+        path = join(p, binary)
+        if os.access(path, mode) == 1:
+            result = path
+            break
+    else:
+        raise MissingBinary('Unable to find binary "%s"' % binary)
+    return result
+
+
+# Rank states according to indegree, outdegree, and name.  Returns a list
+# of states in an order which *hopefully* will make an nice graph.
+def rankstates( states, transitions, debugmsgs=None):
+    indegree = {}   # number of edges in to each state
+    outdegree = {}  # number of edges out of each state
+    statepairs = [] # tuples of (in-degree/out-degree, state)
+
+    # Initialize degree hashes.
+    for s in states:
+        myId = s.getId()
+        indegree[myId] = 0
+        outdegree[myId] = 0
+
+    # Compute degrees.
+    for sourceId,destId in transitions:
+        indegree[sourceId] += 1
+        outdegree[destId] += 1
+
+    # Compute ranks.
+    for s in states:
+        myId = s.getId()
+
+        # Initialize rank.
+        ins = indegree[myId]
+        outs = outdegree[myId]
+        rank = abs(outs - ins)
+
+        # Adjust rank with crazy scoring functions.
+        if myId.lower().find( 'priv') >= 0:
+            rank = rank - 5
+        if myId.lower().find( 'pub') >= 0:
+            rank = rank + 5
+
+        # Debugging info.
+        if debugmsgs is not None:
+            m = '# node %s has indegree %d, outdegree %d, rank %d'
+            m = m % (myId, indegree, outdegree, rank)
+            debugmsgs.append( m)
+
+        # Store rank.
+        statepairs.append( (rank, s))
+
+    # Sort states by rank.
+    statepairs.sort()
+    newstates = []
+    for r,s in statepairs:
+        newstates.append( s)
+
+    # Done.
+    return newstates
+    
+
+def getPOT(self, wf_id=""):
+    """ get the pot, copy from:
+         "dcworkfow2dot.py":http://awkly.org/Members/sidnei/weblog_storage/blog_27014
+        and Sidnei da Silva owns the copyright of the this function
+    """
+    out = []
+    transitions = {}
+
+    # Get states.
+    if wf_id:
+        w_tool = getToolByName(self, 'portal_workflow')
+        wf = getattr(w_tool, wf_id)
+    else:
+        wf = self
+    states = wf.states.objectValues()
+
+    # Start Graph
+    out.append('digraph "%s" {' % wf.title)
+
+    # Get states and sort by out-degree / (in-degree+1).
+    for s in states:
+
+        # Get transitions.
+        for t in s.transitions:
+            try:
+                trans = wf.transitions[t]
+            except KeyError:
+                out.append('# transition %s from state %s is missing'
+                           % (t, s.getId()))
+                continue
+
+            key = (s.getId(), trans.new_state_id)
+            value = transitions.get(key, [])
+            value.append(trans.actbox_name)
+            transitions[key] = value
+
+    # Order states and add them to graph.
+    states = rankstates( states, transitions)
+    for s in states:
+        out.append('%s [shape=box,label="%s (%s)"];'
+                   % (s.getId(), s.title, s.getId().capitalize()))
+
+    # Add transitions.
+    for k, v in transitions.items():
+        out.append('%s -> %s [label="%s"];' % (k[0], k[1],
+                                           ', '.join(v)))
+
+    # Finish graph.
+    out.append('}')
+    return '\n'.join(out)
+
+def getGraph(self, wf_id="", format="gif", REQUEST=None):
+    """show a workflow as a graph, copy from:
+"OpenFlowEditor":http://www.openflow.it/wwwopenflow/Download/OpenFlowEditor_0_4.tgz
+    """
+    pot = getPOT(self, wf_id)
+    infile = mktemp('.dot')
+    f = open(infile, 'w')
+    f.write(pot)
+    f.close()
+    outfile = mktemp('.%s' % format)
+    os.system('%s -T%s -o %s %s' % (bin_search(DOT_EXE), format, outfile, infile))
+    out = open(outfile, 'rb')
+    result = out.read()
+    out.close()
+    os.remove(infile)
+    os.remove(outfile)
+    return result

Propchange: spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/DCWorkflowGraph_Rank.py
------------------------------------------------------------------------------
    svn:executable = 

Added: spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/HISTORY.txt
URL: http://svn.erp5.org/spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/HISTORY.txt?rev=12769&view=auto
==============================================================================
--- spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/HISTORY.txt (added)
+++ spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/HISTORY.txt Thu Feb 15 18:16:00 2007
@@ -1,0 +1,19 @@
+v0.3 
+
+This version is contributed by Encolpe Degoute <encolpe at colpi.info> and 
+Anahide Tchertchian <at at nuxeo.com> to make it work with CPSWorkflow.
+
+- take transitions without initial state into account
+- deal with 'remain in state' transitions
+- use transition title instead of action box name
+
+v0.2
+
+- support windows now, thanks volker.wend at efgbsh.de
+
+- on Windows, the path to the ATT Graphviz installation can 
+  be  read from the registry, thanks Joachim Bauch bauch at struktur.de
+
+v0.1
+
+- initial import, graphic view of DCWorkflow is provided only now

Added: spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/__init__.py
URL: http://svn.erp5.org/spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/__init__.py?rev=12769&view=auto
==============================================================================
--- spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/__init__.py (added)
+++ spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/__init__.py Thu Feb 15 18:16:00 2007
@@ -1,0 +1,12 @@
+from DCWorkflowGraph import getGraph
+from Products.DCWorkflow.DCWorkflow import DCWorkflowDefinition
+from Products.PageTemplates.PageTemplateFile import PageTemplateFile
+import os
+
+manage_workflowGraph = PageTemplateFile(os.path.join('www','manage_workflowGraph'), globals())
+manage_workflowGraph.__name__ = 'manage_workflowGraph'
+manage_workflowGraph._need__name__ = 0
+
+DCWorkflowDefinition.getGraph=getGraph
+DCWorkflowDefinition.manage_workflowGraph=manage_workflowGraph
+DCWorkflowDefinition.manage_options=tuple(DCWorkflowDefinition.manage_options)+({'label': 'graph', 'action': 'manage_workflowGraph'},)

Added: spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/config.py
URL: http://svn.erp5.org/spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/config.py?rev=12769&view=auto
==============================================================================
--- spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/config.py (added)
+++ spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/config.py Thu Feb 15 18:16:00 2007
@@ -1,0 +1,34 @@
+# where is 'pot'?, add your path here
+
+import os
+
+bin_search_path = [
+    '/usr/bin',
+    '/usr/local/bin',
+
+    # for windows, the dos path needs double backslahes , e.g.
+    'c:\\programme\\att\\graphviz\\bin\\',
+    ]
+DOT_EXE = 'dot'
+
+if os.name == 'nt':
+    DOT_EXE = 'dot.exe'
+
+    # patch from Joachim Bauch bauch at struktur.de
+    # on Windows, the path to the ATT Graphviz installation 
+    # is read from the registry. 
+    try:
+        import win32api, win32con
+        # make sure that "key" is defined in our except block
+        key = None
+        try:
+            key = win32api.RegOpenKeyEx(win32con.HKEY_LOCAL_MACHINE, r'SOFTWARE\ATT\Graphviz')
+            value, type = win32api.RegQueryValueEx(key, 'InstallPath')
+            bin_search_path = [os.path.join(str(value), 'bin')]
+        except:
+            if key: win32api.RegCloseKey(key)
+            # key doesn't exist
+            pass
+    except ImportError:
+        # win32 may be not installed...
+        pass

Added: spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/changelog
URL: http://svn.erp5.org/spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/changelog?rev=12769&view=auto
==============================================================================
--- spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/changelog (added)
+++ spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/changelog Thu Feb 15 18:16:00 2007
@@ -1,0 +1,6 @@
+erp5-dcworkflowgraph (0.3-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Yusei TAHARA <yusei at domen.cx>  Wed, 14 Feb 2007 03:27:56 +0900
+

Added: spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/compat
URL: http://svn.erp5.org/spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/compat?rev=12769&view=auto
==============================================================================
--- spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/compat (added)
+++ spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/compat Thu Feb 15 18:16:00 2007
@@ -1,0 +1,1 @@
+5

Added: spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/control
URL: http://svn.erp5.org/spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/control?rev=12769&view=auto
==============================================================================
--- spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/control (added)
+++ spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/control Thu Feb 15 18:16:00 2007
@@ -1,0 +1,13 @@
+Source: erp5-dcworkflowgraph
+Section: web
+Priority: optional
+Maintainer: Yusei TAHARA
+Build-Depends: debhelper (>= 5.0)
+Build-Depends-Indep: zope-debhelper (>= 0.3.6)
+Standards-Version: 3.7.2
+
+Package: erp5-dcworkflowgraph
+Architecture: all
+Depends: erp5-zope
+Description: A Zope product to view DCWorkflow graphically
+ DCWorkflowGraph is a DCWorkflow graphic viewer. It uses Graphviz.

Added: spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/copyright
URL: http://svn.erp5.org/spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/copyright?rev=12769&view=auto
==============================================================================
--- spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/copyright (added)
+++ spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/copyright Thu Feb 15 18:16:00 2007
@@ -1,0 +1,1 @@
+Author: panjunyong (panjy at zopechina.com, http://www.zopechina.com)

Added: spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/dzproduct
URL: http://svn.erp5.org/spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/dzproduct?rev=12769&view=auto
==============================================================================
--- spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/dzproduct (added)
+++ spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/dzproduct Thu Feb 15 18:16:00 2007
@@ -1,0 +1,3 @@
+Name: DCWorkflowGraph
+Package: erp5-dcworkflowgraph
+ZopeVersions: >= 2.7

Added: spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/postinst
URL: http://svn.erp5.org/spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/postinst?rev=12769&view=auto
==============================================================================
--- spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/postinst (added)
+++ spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/postinst Thu Feb 15 18:16:00 2007
@@ -1,0 +1,7 @@
+#!/bin/sh -e
+
+. /usr/share/debconf/confmodule
+
+#DEBHELPER#
+
+db_stop

Added: spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/rules
URL: http://svn.erp5.org/spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/rules?rev=12769&view=auto
==============================================================================
--- spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/rules (added)
+++ spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/rules Thu Feb 15 18:16:00 2007
@@ -1,0 +1,44 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+pwd        := $(shell pwd)
+debian     := $(pwd)/debian/erp5-dcworkflowgraph
+
+build: build-stamp
+build-stamp:
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+	dh_installerp5zope .
+
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installdocs
+	dh_installexamples
+	dh_installchangelogs
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary-arch:
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary install

Propchange: spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/debian/rules
------------------------------------------------------------------------------
    svn:executable = 

Added: spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/install.txt
URL: http://svn.erp5.org/spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/install.txt?rev=12769&view=auto
==============================================================================
--- spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/install.txt (added)
+++ spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/install.txt Thu Feb 15 18:16:00 2007
@@ -1,0 +1,10 @@
+Install 
+
+1. you must install "Graphviz":http://www.graphviz.org/ in your system before you use it.
+
+2. unzip the DCWorkflowEditor to your zope Products directory.
+
+3. check if your dot binary path is included in 'bin_search_path' in config.py. 
+   if not, add it. (on windows, it looks from registery automatically)
+
+4. restart zope

Added: spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/readme.txt
URL: http://svn.erp5.org/spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/readme.txt?rev=12769&view=auto
==============================================================================
--- spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/readme.txt (added)
+++ spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/readme.txt Thu Feb 15 18:16:00 2007
@@ -1,0 +1,47 @@
+DCWorkflowGraph
+
+    DCWorkflowGraph is a DCWorkflow graphic viewer now. It uses Graphviz. 
+    I want to make it a graphic editor for DCWorkflow, just like what
+    OpenFlowEditor does.
+
+    DCWorkflowGraph is at "collective":http://sf.net/projects/collective.
+
+    Product home: http://www.zope.org/Members/panjunyong/DCWorkflowGraph
+
+Require
+
+    "Graphviz":http://www.graphviz.org
+
+Install
+
+    see install.txt
+
+How to use it:
+
+    Go to ZMI portal_workflow/your_workflow, there is a new tab called
+'graph', click it and you will see the workflow graph!
+
+Credits
+
+    Author: panjunyong (panjy at zopechina.com, http://www.zopechina.com)
+
+    version 0.3 for CPSWorkflow:
+
+    - Encolpe Degoute <encolpe at colpi.info>
+
+    - Anahide Tchertchian <at at nuxeo.com>
+
+    Most idea and codes comes from the following resources:
+
+    - "dcworkfow2dot.py":http://awkly.org/Members/sidnei/weblog_storage/blog_27014
+
+    - "DCWorkflow dot
+  graphs":http://xiru.org/Members/xiru/weblog_storage/blog_79598
+
+    - "OpenFlowEditor":http://www.openflow.it/wwwopenflow/Download/OpenFlowEditor_0_4.tgz
+
+    - "DCWorkflowDump":http://cvs.sourceforge.net/viewcvs.py/collective/DCWorkflowDump/
+
+    - "dot guide":http://www.research.att.com/sw/tools/graphviz/dotguide.pdf
+
+    - "dot man page":http://www.die.net/doc/linux/man/man1/dot.1.html

Added: spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/refresh.txt
URL: http://svn.erp5.org/spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/refresh.txt?rev=12769&view=auto
==============================================================================
--- spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/refresh.txt (added)
+++ spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/refresh.txt Thu Feb 15 18:16:00 2007
@@ -1,0 +1,1 @@
+ 

Added: spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/todo.txt
URL: http://svn.erp5.org/spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/todo.txt?rev=12769&view=auto
==============================================================================
--- spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/todo.txt (added)
+++ spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/todo.txt Thu Feb 15 18:16:00 2007
@@ -1,0 +1,21 @@
+rank nodes
+====================
+The initial state should put at the top.
+
+See DCWorkflowGraph_Rank.py
+
+shorter title
+====================
+I found the transition title is quite long in this version. This makes
+the graph a bit ugly.
+
+I want to show the transition id only and make the full title visible
+only when hover on the transition id.
+
+I have some idea to make hover works:
+
+- in the pot file, give each state and transition a URL attribute,
+this will generate links in the graph
+
+- use javascript to register onhover event listener and show the title
+at some place in the page.

Added: spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/version.txt
URL: http://svn.erp5.org/spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/version.txt?rev=12769&view=auto
==============================================================================
--- spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/version.txt (added)
+++ spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/version.txt Thu Feb 15 18:16:00 2007
@@ -1,0 +1,1 @@
+0.3

Added: spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/www/manage_workflowGraph.zpt
URL: http://svn.erp5.org/spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/www/manage_workflowGraph.zpt?rev=12769&view=auto
==============================================================================
--- spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/www/manage_workflowGraph.zpt (added)
+++ spec/debian/unstable/erp5-dcworkflowgraph/DCWorkflowGraph/www/manage_workflowGraph.zpt Thu Feb 15 18:16:00 2007
@@ -1,0 +1,18 @@
+<h1 tal:replace="structure here/manage_page_header">Header</h1>
+<h2 tal:define="manage_tabs_message options/manage_tabs_message | nothing"
+    tal:replace="structure here/manage_tabs">Tabs</h2>
+
+<h3>DCWorkflow Graph</h3>
+
+<p> 
+You must install <a href="http://www.graphviz.org/">Graphviz</a> before you will be able to see workflow graphs.
+If Graphviz is not installed, please install it now.
+</p>
+
+<img tal:attributes="src string:${here/absolute_url}/getGraph" />
+
+<p>
+<a href="http://www.zopechina.com">zopechina.com</a>
+</p>
+<h1 tal:replace="structure here/manage_page_footer">Footer</h1>
+

Added: spec/debian/unstable/erp5-dcworkflowgraph/erp5-dcworkflowgraph_0.3-1.diff.gz
URL: http://svn.erp5.org/spec/debian/unstable/erp5-dcworkflowgraph/erp5-dcworkflowgraph_0.3-1.diff.gz?rev=12769&view=auto
==============================================================================
Binary file - no diff available.

Propchange: spec/debian/unstable/erp5-dcworkflowgraph/erp5-dcworkflowgraph_0.3-1.diff.gz
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: spec/debian/unstable/erp5-dcworkflowgraph/erp5-dcworkflowgraph_0.3-1.dsc
URL: http://svn.erp5.org/spec/debian/unstable/erp5-dcworkflowgraph/erp5-dcworkflowgraph_0.3-1.dsc?rev=12769&view=auto
==============================================================================
--- spec/debian/unstable/erp5-dcworkflowgraph/erp5-dcworkflowgraph_0.3-1.dsc (added)
+++ spec/debian/unstable/erp5-dcworkflowgraph/erp5-dcworkflowgraph_0.3-1.dsc Thu Feb 15 18:16:00 2007
@@ -1,0 +1,12 @@
+Format: 1.0
+Source: erp5-dcworkflowgraph
+Version: 0.3-1
+Binary: erp5-dcworkflowgraph
+Maintainer: Yusei TAHARA
+Architecture: all
+Standards-Version: 3.7.2
+Build-Depends: debhelper (>= 5.0)
+Build-Depends-Indep: zope-debhelper (>= 0.3.6)
+Files: 
+ 9e740bcb18b567cb6d85bca403b26143 4597 erp5-dcworkflowgraph_0.3.orig.tar.gz
+ 159a08d36c6e962f83d1de224685f8a3 916 erp5-dcworkflowgraph_0.3-1.diff.gz

Added: spec/debian/unstable/erp5-dcworkflowgraph/erp5-dcworkflowgraph_0.3-1_all.deb
URL: http://svn.erp5.org/spec/debian/unstable/erp5-dcworkflowgraph/erp5-dcworkflowgraph_0.3-1_all.deb?rev=12769&view=auto
==============================================================================
Binary file - no diff available.

Propchange: spec/debian/unstable/erp5-dcworkflowgraph/erp5-dcworkflowgraph_0.3-1_all.deb
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: spec/debian/unstable/erp5-dcworkflowgraph/erp5-dcworkflowgraph_0.3-1_i386.build
URL: http://svn.erp5.org/spec/debian/unstable/erp5-dcworkflowgraph/erp5-dcworkflowgraph_0.3-1_i386.build?rev=12769&view=auto
==============================================================================
--- spec/debian/unstable/erp5-dcworkflowgraph/erp5-dcworkflowgraph_0.3-1_i386.build (added)
+++ spec/debian/unstable/erp5-dcworkflowgraph/erp5-dcworkflowgraph_0.3-1_i386.build Thu Feb 15 18:16:00 2007
@@ -1,0 +1,34 @@
+ fakeroot debian/rules clean
+dh_testdir
+dh_testroot
+rm -f build-stamp configure-stamp
+dh_clean
+ dpkg-source -b DCWorkflowGraph
+dpkg-source: warning: source directory `./DCWorkflowGraph' is not <sourcepackage>-<upstreamversion> `erp5-dcworkflowgraph-0.3'
+dpkg-source: warning: .orig directory name DCWorkflowGraph.orig is not <package>-<upstreamversion> (wanted erp5-dcworkflowgraph-0.3.orig)
+dpkg-source: building erp5-dcworkflowgraph using existing erp5-dcworkflowgraph_0.3.orig.tar.gz
+dpkg-source: building erp5-dcworkflowgraph in erp5-dcworkflowgraph_0.3-1.diff.gz
+dpkg-source: building erp5-dcworkflowgraph in erp5-dcworkflowgraph_0.3-1.dsc
+ debian/rules build
+touch build-stamp
+ fakeroot debian/rules binary
+dh_testdir
+dh_testroot
+dh_clean -k
+dh_installdirs
+dh_installerp5zope .
+dh_testdir
+dh_testroot
+dh_installdocs
+dh_installexamples
+dh_installchangelogs
+dh_compress
+dh_fixperms
+dh_installdeb
+dh_gencontrol
+dh_md5sums
+dh_builddeb
+dpkg-deb: `../erp5-dcworkflowgraph_0.3-1_all.deb' ¤Ë¥Ñ¥Ã¥±¡¼¥¸ `erp5-dcworkflowgraph' ¤ò¹½ÃÛ¤·¤Æ¤¤¤Þ¤¹¡£
+ dpkg-genchanges
+dpkg-genchanges: including full source code in upload
+dpkg-buildpackage (debuild emulation): full upload (original source is included)

Added: spec/debian/unstable/erp5-dcworkflowgraph/erp5-dcworkflowgraph_0.3-1_i386.changes
URL: http://svn.erp5.org/spec/debian/unstable/erp5-dcworkflowgraph/erp5-dcworkflowgraph_0.3-1_i386.changes?rev=12769&view=auto
==============================================================================
--- spec/debian/unstable/erp5-dcworkflowgraph/erp5-dcworkflowgraph_0.3-1_i386.changes (added)
+++ spec/debian/unstable/erp5-dcworkflowgraph/erp5-dcworkflowgraph_0.3-1_i386.changes Thu Feb 15 18:16:00 2007
@@ -1,0 +1,21 @@
+Format: 1.7
+Date: Wed, 14 Feb 2007 03:27:56 +0900
+Source: erp5-dcworkflowgraph
+Binary: erp5-dcworkflowgraph
+Architecture: source all
+Version: 0.3-1
+Distribution: unstable
+Urgency: low
+Maintainer: Yusei TAHARA
+Changed-By: Yusei TAHARA <yusei at domen.cx>
+Description: 
+ erp5-dcworkflowgraph - A Zope product to view DCWorkflow graphically
+Changes: 
+ erp5-dcworkflowgraph (0.3-1) unstable; urgency=low
+ .
+   * Initial Release.
+Files: 
+ ff25a084bfffa246e397db4a17eda592 391 web optional erp5-dcworkflowgraph_0.3-1.dsc
+ 9e740bcb18b567cb6d85bca403b26143 4597 web optional erp5-dcworkflowgraph_0.3.orig.tar.gz
+ 159a08d36c6e962f83d1de224685f8a3 916 web optional erp5-dcworkflowgraph_0.3-1.diff.gz
+ d206c5680b79989e3251d301f4887a3e 6720 web optional erp5-dcworkflowgraph_0.3-1_all.deb

Added: spec/debian/unstable/erp5-dcworkflowgraph/erp5-dcworkflowgraph_0.3.orig.tar.gz
URL: http://svn.erp5.org/spec/debian/unstable/erp5-dcworkflowgraph/erp5-dcworkflowgraph_0.3.orig.tar.gz?rev=12769&view=auto
==============================================================================
Binary file - no diff available.

Propchange: spec/debian/unstable/erp5-dcworkflowgraph/erp5-dcworkflowgraph_0.3.orig.tar.gz
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream




More information about the Erp5-report mailing list