Andreas Hartmann wrote:
Jörn Nettingsmeier schrieb:
hi *!
while toying with the metadata in lenya, i realized that when a
document is created, no workflowVersion entry is generated. it only
happens when it is first submitted or edited. this strikes me as
somehow wrong.
is there a compelling reason for this behaviour?
That issue has been discussed frequently. In Lenya 1.2, the workflow
has to be initialized when a document is created. This reduces the
robustness of the repository, because when a document has no workflow
history file the system thinks that it has no workflow assigned to it.
But this error situation could be handled by the system.
IIRC the latest consensus was:
The workflow should not be initialized when the document is created.
This way, the fact if a document has a workflow only depends on the
resourcetype -> workflow assigment in publication.xconf. As long as
the document has no workflow history, it is in the initial workflow
state.
If you think that this behavior is wrong, feel free to restart the
discussion :)
i'm not sure if i understand this. right now, the following seems to
happen when somebody creates a document with the default creator:
* a new document is created by copying the doctype sample;
* a metadata file is created.
this metadata has no <workflowVersion/> elements yet. all i'm asking is
that upon creation, a workflowVersion entry with number 0 and
"event:create" is created, stating the date of creation and the user who
did it.
this seems to be orthogonal to the actual workflow definition for a
doctype (i.e. how many stages etc.), and i don't see how this could
possibly have implications for the robustness of the repository.
"event:create" is an event outside of whatever workflow you want to define.
the reason i want this is to be able to display meta information on the
page ("last modified on <date> by <user>", or even "created by <user>").
as it is now, i need a conditional, because i can't rely on this
information being there until the first edit. which is especially nasty
since the i18n date transformer is not very well behaved and will throw
an exception if the date field is empty.
regards,
jörn
--
"Open source takes the bullshit out of software."
- Charles Ferguson on TechnologyReview.com
--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: [EMAIL PROTECTED], Telefon: 0203/379-2736
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]