[Yanel-commits] rev 24005 -
public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources
simon at wyona.com
simon at wyona.com
Wed Apr 25 17:50:46 CEST 2007
Author: simon
Date: 2007-04-25 17:50:44 +0200 (Wed, 25 Apr 2007)
New Revision: 24005
Modified:
public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java
Log:
dynamic introspection uses now getMimeType() instead of hardcoding the mime-type see bug# 5226. reason: yupup opens each resource in sourcemode.
Modified: public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java
===================================================================
--- public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java 2007-04-25 15:31:52 UTC (rev 24004)
+++ public/yanel/trunk/src/resources/xml/src/java/org/wyona/yanel/impl/resources/XMLResource.java 2007-04-25 15:50:44 UTC (rev 24005)
@@ -581,8 +581,8 @@
String name = PathUtil.getName(getPath());
StringBuffer sb = new StringBuffer("<?xml version=\"1.0\"?>");
sb.append("<introspection xmlns=\"http://www.wyona.org/neutron/1.0\">");
- sb.append("<edit mime-type=\"application/xml\" name=\"" + name + "\">");
- //sb.append("<edit mime-type=\"" + this.getMimeType(null) + "\" name=\"" + name + "\">");
+ //sb.append("<edit mime-type=\"application/xml\" name=\"" + name + "\">");
+ sb.append("<edit mime-type=\"" + this.getMimeType(null) + "\" name=\"" + name + "\">");
sb.append("<checkout url=\"?yanel.resource.viewid=source&yanel.resource.usecase=checkout\" method=\"GET\"/>");
sb.append("<checkin url=\"?yanel.resource.usecase=checkin\" method=\"PUT\"/>");
sb.append("</edit>");
More information about the Yanel-commits
mailing list