|
From: <jm...@so...> - 2002-02-15 15:52:23
|
I have been playing with cvs a bit,
and I have released in the cvs the branch "julian69", with the modified
version I am using now. Note, I am based in 0.4, not 0.5.
This way the changes are more clear (because of the wonderfull cvsweb
tool at sourceforge), and maybe some features (not manies) could be added
to the main branch.
Here is the summary of the changes:
julian69 cvs branch changes related to "START":
* activity.py:
Check before adding or deleting transaction links to an activity
(when deleting or creating an activity).
This allow to copy and paste workflows.
Evaluate the token parameters when calling an application
(so one can use token.<attribute> as parameter)
Automatic applications calling done with restrictedTraverse.
Parameters passed to applications as keywords arguments,
with apply python function.
* process.py
Added
def generateActivity
def generateTransaction
I suppose they were added after by Vincenzo in later a revision.
* transaction.py
When deleting a transaction, checks the existence of "from" and
"to" activities. If they exist, deletes the corresponding "To transaction"
in the "From activity", and "From transaction" in the "To activity".
This allow to copy and paste workflows.
Note that I am having a problem with transaction deletion, and
I am not sure it is related with my changes:
Sometimes this fields aren't deleted, or are in a "ghost state",
they diseappear and reapper !! Strange, I suppose it is related
with the ZODB machinery, something is beeing done bad.
Uhm, maybe if we put self._p_changed =3D 1 solves this !!
This will be on the next release !! :-)
* token.py
When the workflow is badly designed, and a token can not find a route
(can not find the following activity to move on), the exception
"OpenflowNoRoute", " Workflow erroneous! There is no route
where to move the token (no transaction found)." is raised.
* workflow.py
generateToken has been made available to external applications,
so a token can be created.
generateProcess, generateActivity, generateTransaction, generateProcessMap
added, I suppose they were added after by Vincenzo in later a revision.
In evaluation of token parameters, catch if there is an exception, and
returns SYNTAX_ERROR_IN_PARAMETERS_OF_THIS_ACTIVITY
Get the user name with AUTHENTICATED_USER.getUserName()
instead of AUTHENTICATED_USER.name, to follow the API documented
in Zope Book. This made Openflow compatible with MysqlUserFolder.
* todolist.dtml
Get the user name with AUTHENTICATED_USER.getUserName()
instead of AUTHENTICATED_USER.name, to follow the API documented
in Zope Book. his made Openflow compatible with MysqlUserFolder.
(and added expr=3D" " in dtml, as recommended by Zope Book)
Any comment welcome to jm...@so...
Julian Munoz
Life is too short
--=20
__o
_ \<_
(_)/(_)
Saludos de Juli=E1n
EA4ACL
-.-
Foro Wireless Madrid
http://opennetworks.rg3.net
|