lenya/src/webapp/lenya usecase.xmap,1.6,1.7
Christian Egli <[email protected]> Tue, 20 May 2003 20:22:36 +0200
| Newsgroups | gmane.comp.cms.wyona.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /repository/lenya/src/webapp/lenya
In directory erbium:/tmp/cvs-serv21411/src/webapp/lenya
Modified Files:
usecase.xmap
Log Message:
Moved the creator pipelines to the usecase sitemap.
Index: usecase.xmap
===================================================================
RCS file: /repository/lenya/src/webapp/lenya/usecase.xmap,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** usecase.xmap 20 May 2003 16:45:19 -0000 1.6
--- usecase.xmap 20 May 2003 18:22:34 -0000 1.7
***************
*** 64,67 ****
--- 64,81 ----
</map:resource>
+ <map:resource name="usecase-create">
+ <!-- use publication-specific schema if available -->
+ <map:act type="resource-exists" src="pubs/{publication-id}/content/authoring/create.xsp">
+ <map:generate type="serverpages" src="pubs/{../publication-id}/content/authoring/create.xsp"/>
+ <map:transform src="pubs/{../publication-id}/xslt/authoring/create.xsl"/>
+ <map:serialize />
+ </map:act>
+
+ <!-- otherwise use default schema -->
+ <map:generate type="serverpages" src="content/authoring/create.xsp"/>
+ <map:transform src="xslt/authoring/create.xsl"/>
+ <map:serialize />
+ </map:resource>
+
</map:resources>
***************
*** 225,229 ****
</map:pipeline>
!
<!--Rollback-->
<map:pipeline>
--- 239,273 ----
</map:pipeline>
!
! <!-- Create -->
! <map:pipeline>
! <!-- {publication-id}/{area}/{uri}-->
! <map:match pattern="*/*/**">
!
! <map:match type="usecase" pattern="create">
!
! <map:match type="step" pattern="showscreen">
! <map:call resource="usecase-create">
! <map:parameter name="publication-id" value="{../../1}"/>
! </map:call>
! </map:match>
!
! <map:match type="step" pattern="create">
! <map:act type="default-create">
! <!-- if the action suceeds it returns the referer and we -->
! <!-- simply redirect to it. -->
! <map:redirect-to uri="{request:requestURI}"/>
! </map:act>
! <!-- otherwise the action could not validate some of the -->
! <!-- input and we present the upload form again -->
! <map:call resource="usecase-create">
! <map:parameter name="publication-id" value="{../../1}"/>
! </map:call>
! </map:match>
!
! </map:match>
! </map:match>
! </map:pipeline>
!
<!--Rollback-->
<map:pipeline>
***************
*** 231,245 ****
<map:match pattern="*/*/**">
<map:match type="usecase" pattern="rollback">
<map:match type="step" pattern="showscreen">
<map:generate type="serverpages" src="content/rc/versions-screen.xsp"/>
<map:transform src="xslt/rc/rollback.xsl"/>
<map:serialize type="html"/>
- <!--
- <map:serialize type="xml"/>
- -->
</map:match>
<map:match type="step" pattern="view">
<map:mount uri-prefix="{../../1}" src="pubs/{../../1}/sitemap.xmap" check-reload="true" reload-method="synchron"/>
</map:match>
<map:match type="step" pattern="rollback">
<map:act type="rollback">
--- 275,289 ----
<map:match pattern="*/*/**">
<map:match type="usecase" pattern="rollback">
+
<map:match type="step" pattern="showscreen">
<map:generate type="serverpages" src="content/rc/versions-screen.xsp"/>
<map:transform src="xslt/rc/rollback.xsl"/>
<map:serialize type="html"/>
</map:match>
+
<map:match type="step" pattern="view">
<map:mount uri-prefix="{../../1}" src="pubs/{../../1}/sitemap.xmap" check-reload="true" reload-method="synchron"/>
</map:match>
+
<map:match type="step" pattern="rollback">
<map:act type="rollback">