Author: clopes
Date: 2011-09-27 13:16:46 -0700 (Tue, 27 Sep 2011)
New Revision: 26988
Modified:
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/model/converters/GraphMLConverter.as
Log:
Fixed #2480: Handle List-type attributes when exporting to GraphML
Modified:
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/model/converters/GraphMLConverter.as
===================================================================
---
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/model/converters/GraphMLConverter.as
2011-09-27 19:37:54 UTC (rev 26987)
+++
cytoscapeweb/trunk/cytoscapeweb/src/org/cytoscapeweb/model/converters/GraphMLConverter.as
2011-09-27 20:16:46 UTC (rev 26988)
@@ -313,7 +313,8 @@
// -- static helpers
--------------------------------------------------
private static function toString(o:Object, type:int):String {
- return o.toString(); // TODO: formatting control?
+ if (o is Array) return (o as Array).join(",");
+ return o != null ? o.toString() : ""; // TODO:
formatting control?
}
private static function toCW_Type(type:String):int {
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.