Re: [xwiki-users] How do I for divide one string I need only the part of the user name (Admin) instead of XWiki.Admin

2010-09-18 Thread [Ricardo Rodriguez] eBioTIC.
Hi! Caleb James DeLisle wrote: There are various ways with different levels of code cleanliness since all user names start off with 'XWiki.' you could use $context.getUser().substring(6) If you're looking for the user's common name instead of the user name, you might want to look at

Re: [xwiki-users] Documents and classes design question

2010-09-18 Thread [Ricardo Rodriguez] eBioTIC.
Hi! Caleb James DeLisle wrote: Each document only contains one set of objects, not one per translation language. Thus, please, how do you propose to manage/store information that depends on location? For instance, a given property of a given class has different values/translations. For

Re: [xwiki-users] How do I for divide one string I need only the part of the user name (Admin) instead of XWiki.Admin

2010-09-18 Thread Caleb James DeLisle
[Ricardo Rodriguez] eBioTIC. wrote: Hi! Caleb James DeLisle wrote: There are various ways with different levels of code cleanliness since all user names start off with 'XWiki.' you could use $context.getUser().substring(6) If you're looking for the user's common name instead of the

[xwiki-users] Migrating Xwiki

2010-09-18 Thread Kaya Saman
Has anyone ever performed a migration that could give me some advice on how it's done and if what I asked about below is possible? I have checked out this: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Backup which suggests to backup the database but doesn't give any clue to Postgresql!

Re: [xwiki-users] nested types

2010-09-18 Thread Alex Busenius
Yes, something like that. Alex On 09/18/2010 02:59 AM, Travis Wellman wrote: Thanks Alex, So, say I put a jar on the classpath with Foo and Bar in it: class Foo { public String fooProperty = defaultText; public void setFooProperty(String x) {fooProperty = x;} public String serialize()

Re: [xwiki-users] Bad HQL queries

2010-09-18 Thread Paul Libbrecht
Sorry to respond to myself but I really feel I had this information earlier. The summary: MySQL has no protection on queries that may return a zillion of documents... it honestly tries to accumulate things. This happens if you have a wrong query which, for example, has a free variable, e.g.,

Re: [xwiki-users] Migrating Xwiki

2010-09-18 Thread [Ricardo Rodriguez] eBioTIC.
Hi Kaya, Kaya Saman wrote: Has anyone ever performed a migration that could give me some advice on how it's done and if what I asked about below is possible? I have checked out this: http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Backup which suggests to backup the database but