|
|
Choosing A Webhost: |
svn commit: r209710 - /lenya/trunk/src/java/org/apache/lenya/cms/editors/fo: msg#00031cms.lenya.cvs
Author: chestnut Date: Thu Jul 7 23:15:26 2005 New Revision: 209710 URL: http://svn.apache.org/viewcvs?rev=209710&view=rev Log: workflow state needs to be set to authoring on edit so that one can publish Modified: lenya/trunk/src/java/org/apache/lenya/cms/editors/forms/OneFormEditor.java Modified: lenya/trunk/src/java/org/apache/lenya/cms/editors/forms/OneFormEditor.java URL: http://svn.apache.org/viewcvs/lenya/trunk/src/java/org/apache/lenya/cms/editors/forms/OneFormEditor.java?rev=209710&r1=209709&r2=209710&view=diff ============================================================================== --- lenya/trunk/src/java/org/apache/lenya/cms/editors/forms/OneFormEditor.java (original) +++ lenya/trunk/src/java/org/apache/lenya/cms/editors/forms/OneFormEditor.java Thu Jul 7 23:15:26 2005 @@ -29,9 +29,11 @@ import org.apache.excalibur.source.ModifiableSource; import org.apache.excalibur.source.Source; import org.apache.excalibur.source.SourceResolver; +import org.apache.lenya.cms.publication.Document; import org.apache.lenya.cms.publication.ResourceType; import org.apache.lenya.cms.usecase.DocumentUsecase; import org.apache.lenya.cms.usecase.UsecaseException; +import org.apache.lenya.cms.workflow.WorkflowUtil; import org.apache.lenya.transaction.Transactionable; import org.apache.lenya.xml.DocumentHelper; import org.apache.lenya.xml.RelaxNG; @@ -105,6 +107,9 @@ if (message != null) { addErrorMessage("error-validation", new String[]{message}); } + + if (!hasErrors()) + WorkflowUtil.invoke(this.manager, getLogger(), getSourceDocument(), "edit"); } } finally { @@ -183,4 +188,6 @@ int i = content.indexOf(">"); return content.substring(0, i) + " " + namespaces + content.substring(i); } + + }
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | svn commit: r209612 - /lenya/trunk/src/webapp/lenya/pubs/default/java/src/org/apache/lenya/defaultpub/cms/usecases/Publish.java, chestnut |
|---|---|
| Next by Date: | svn commit: r209824 - /lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/cms/publication/UniqueDocumentId.java, andreas |
| Previous by Thread: | svn commit: r209612 - /lenya/trunk/src/webapp/lenya/pubs/default/java/src/org/apache/lenya/defaultpub/cms/usecases/Publish.java, chestnut |
| Next by Thread: | svn commit: r209824 - /lenya/branches/BRANCH_1_2_X/src/java/org/apache/lenya/cms/publication/UniqueDocumentId.java, andreas |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |