[xwiki-users] How to remove properties from a class ?
Hi, Is it possible to remove properties from a user defined class (I can't see it in the UI) ? Undeterred I tried to use the info at http://www.xwiki.org/xwiki/bin/view/DevGuide/DatabaseSchema I tried : select * from xwikiclasses this returned no rows, which seems to imply no user defined classes select * from xwikiclassesprop where WXP_NAME like 'myprop%' did show the property I added to the class delete from xwikiclassesprop where WXP_NAME like 'myprop%' unfortunatly didn't seem to remove the myprop from my class (the class editor showed it) Incidently I edited the db before starting the server (to avoid possible caching issues). So, short of deleting and recreating my class... does anyone know how to remove unwanted properties from a class ? Many thanks in advance, Dan PS. Would others find this a useful feature ?
I would definitely find this useful. It looks like it's planned for 1.1: http://jira.xwiki.org/jira/browse/XWIKI-99 Meanwhile, a workaround is to rename all unwanted properties to e.g. "ignore_<propertyName>" and adapt your scripts to skip over them. Cheers, Robin On 15/01/07, Dan Murphy <dm.subs@googlemail.com> wrote:
Hi, Is it possible to remove properties from a user defined class (I can't see it in the UI) ? Undeterred I tried to use the info at http://www.xwiki.org/xwiki/bin/view/DevGuide/DatabaseSchema I tried : select * from xwikiclasses this returned no rows, which seems to imply no user defined classes select * from xwikiclassesprop where WXP_NAME like 'myprop%' did show the property I added to the class delete from xwikiclassesprop where WXP_NAME like 'myprop%' unfortunatly didn't seem to remove the myprop from my class (the class editor showed it)
Incidently I edited the db before starting the server (to avoid possible caching issues).
So, short of deleting and recreating my class... does anyone know how to remove unwanted properties from a class ?
Many thanks in advance, Dan PS. Would others find this a useful feature ?
-- You receive this message as a subscriber of the xwiki-users@objectweb.org mailing list. To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org For general help: mailto:sympa@objectweb.org?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Moin, What you can do is to manipulate the col xwd_class_xml in the table xwikidoc. Remove the tag which is your property. It is good if you havn't any object references more. Michael Meirhoff Robin Fernandes wrote:
I would definitely find this useful. It looks like it's planned for 1.1: http://jira.xwiki.org/jira/browse/XWIKI-99
Meanwhile, a workaround is to rename all unwanted properties to e.g. "ignore_<propertyName>" and adapt your scripts to skip over them.
Cheers, Robin
On 15/01/07, Dan Murphy <dm.subs@googlemail.com> wrote:
Hi, Is it possible to remove properties from a user defined class (I can't see it in the UI) ? Undeterred I tried to use the info at http://www.xwiki.org/xwiki/bin/view/DevGuide/DatabaseSchema I tried : select * from xwikiclasses this returned no rows, which seems to imply no user defined classes select * from xwikiclassesprop where WXP_NAME like 'myprop%' did show the property I added to the class delete from xwikiclassesprop where WXP_NAME like 'myprop%' unfortunatly didn't seem to remove the myprop from my class (the class editor showed it)
Incidently I edited the db before starting the server (to avoid possible caching issues).
So, short of deleting and recreating my class... does anyone know how to remove unwanted properties from a class ?
Many thanks in advance, Dan PS. Would others find this a useful feature ?
-- You receive this message as a subscriber of the xwiki-users@objectweb.org mailing list. To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org For general help: mailto:sympa@objectweb.org?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- You receive this message as a subscriber of the xwiki-users@objectweb.org mailing list. To unsubscribe: mailto:xwiki-users-unsubscribe@objectweb.org For general help: mailto:sympa@objectweb.org?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
-- View this message in context: http://www.nabble.com/How-to-remove-properties-from-a-class---tf3014396.html... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (3)
-
Dan Murphy -
mime -
Robin Fernandes