Index: /waeup/branches/ulif-rewrite/src/waeup/utils/importexport.py
===================================================================
--- /waeup/branches/ulif-rewrite/src/waeup/utils/importexport.py	(revision 3931)
+++ /waeup/branches/ulif-rewrite/src/waeup/utils/importexport.py	(revision 3932)
@@ -41,9 +41,9 @@
 
 
-ts_regexp = re.compile('^<type (.*)>$')
+ts_regexp = re.compile('^<((type)|(class)) (.*)>$')
 def getTypeString(obj):
     type_str = str(type(obj))
     m = ts_regexp.match(type_str).groups()
-    return m[0][1:-1]
+    return (m[0], m[3][1:-1])
     
 
@@ -82,6 +82,9 @@
             if name.startswith('_'):
                 continue
-            val = unicode(getattr(obj, 'name'))
-            type_name = getTypeString(getattr(obj, 'name'))
+            val = unicode(getattr(obj, name))
+            type_type, type_name = getTypeString(getattr(obj, name))
+            if type_type not in ['type',]:
+                # XXX: if type_type == 'class', we should deliver an object.
+                continue
             newnode = self.doc.createElement('attribute')
             newnode.setAttribute('name', name)
