IRC Archive for channel #xwiki on 16 June 2009

Last modified by Vincent Massol on 2012/10/18 18:32

vmassol left at 00:01 ()
anamarias left at 00:04 ()
sdumitriu left at 00:11 ("Leaving.")
bbc581 left at 01:12 ("Cya L8r")
bbc581 joined #xwiki at 01:13
tharindu left at 01:33 (Read error: 60 (Operation timed out))
tharindu joined #xwiki at 01:46
tharindu left at 03:01 (Remote closed the connection)
jvelociter left at 03:11 ()
jvelociter joined #xwiki at 04:03
arunreddy_ left at 04:48 (Read error: 60 (Operation timed out))
arunreddy joined #xwiki at 05:05
bbc5811 joined #xwiki at 06:36
mflorea joined #xwiki at 07:01
Denis left at 07:01 (Read error: 104 (Connection reset by peer))
bbc5811 left at 07:14 ("Leaving.")
kaaloo joined #xwiki at 07:28
bbc581 left at 08:02 ("Cya L8r")
maggo joined #xwiki at 08:08
maggo left at 08:09 (Client Quit)
arunreddy left at 08:20 (Remote closed the connection)
j-saturne joined #xwiki at 08:32
arunreddy joined #xwiki at 08:44
Denis joined #xwiki at 08:45
trifon joined #xwiki at 08:47
j-saturne left at 08:50 ("Leaving.")
vmassol joined #xwiki at 09:01
Denis left at 09:14 ("Leaving.")
vmassol left at 09:27 ()
fmancinelli joined #xwiki at 09:27
vmassol joined #xwiki at 09:30
tmortagne joined #xwiki at 09:47
lucaa1 left at 09:56 ("Leaving.")
KermitTheFragger joined #xwiki at 10:10
fmancinelli left at 10:20 ()
cypromis joined #xwiki at 10:23
glerouge joined #xwiki at 10:27
vmassol_ joined #xwiki at 10:28
jvdrean joined #xwiki at 10:40
sdumitriu joined #xwiki at 10:44
vmassol left at 10:46 (Read error: 113 (No route to host))
cypromis left at 10:47 ("Leaving")
jvelociter left at 10:55 ()
mflorea left at 11:22 ("Leaving")
lucien joined #xwiki at 11:45
tmortagne left at 11:48 ("Ex-Chat")
trifon left at 11:58 (Read error: 104 (Connection reset by peer))
trifon joined #xwiki at 11:59
mflorea joined #xwiki at 12:18
lucaa joined #xwiki at 12:30
lucaa left at 12:39 (Read error: 60 (Operation timed out))
lucaa joined #xwiki at 12:40
j-saturne joined #xwiki at 12:45
anamarias joined #xwiki at 12:55
vmassol joined #xwiki at 13:12
lucaa left at 13:15 ("Leaving.")
vmassol_ left at 13:15 (Read error: 60 (Operation timed out))
vmassol - (16/06/2009 13:46): lucien: the annotation feature is not even in the platform so I don't think it should have a page on xwiki.org (except in draft). Anyway I'll add some warning
vmassol - (16/06/2009 13:47): lucien: also what you've started writing is more for the user guide IMO
vmassol - (16/06/2009 13:47): the Module location is not for user guides
vmassol - (16/06/2009 13:47): it's for developers of the module
vmassol - (16/06/2009 13:47): or people who want to extend the module
vmassol - (16/06/2009 13:49): lucien: actually I think it's better to move the page altogether to the draft space, wdyt?
vmassol - (16/06/2009 13:54): lucien: ok I've moved the page to Drafts
vmassol - (16/06/2009 13:54): the annotation feature cannot be advertised till: 1) it's part of the platform and 2) it's been released in a first version
arunreddy left at 14:00 (Remote closed the connection)
cristinas joined #xwiki at 14:19
arunreddy joined #xwiki at 14:47
lucaa joined #xwiki at 15:02
lucaa left at 15:11 ("Leaving.")
venkatesh joined #xwiki at 15:22
cristinas left at 15:24 (Read error: 110 (Connection timed out))
venkatesh left at 15:28 ("http://www.mibbit.com ajax IRC Client")
venkatesh joined #xwiki at 15:34
florinciu left at 15:39 ("ChatZilla 0.9.84 [Firefox 3.0.11/2009060215]")
sdumitriu1 joined #xwiki at 15:54
sdumitriu left at 15:55 (Nick collision from services.)
sdumitriu1 is now known as sdumitriu ([email protected])
venkatesh left at 16:17 ("http://www.mibbit.com ajax IRC Client")
alexmaru joined #xwiki at 16:19
jvelociter joined #xwiki at 16:25
anamarias left at 16:41 ()
kaaloo left at 17:08 ("Leaving.")
cristinas joined #xwiki at 17:14
mflorea left at 17:25 ("Leaving")
sdumitriu - (16/06/2009 17:25): Hi alexmaru
sdumitriu - (16/06/2009 17:25): Any progress?
alexmaru - (16/06/2009 17:26): hi
alexmaru - (16/06/2009 17:27): with the code, not really
alexmaru - (16/06/2009 17:27): I'm looking through some books
alexmaru - (16/06/2009 17:27): now
cristinas left at 17:52 (Remote closed the connection)
alexmaru left at 17:54 (Read error: 104 (Connection reset by peer))
alexmaru joined #xwiki at 17:59
j-saturne left at 18:13 ("Leaving.")
alexmaru left at 18:19 (Read error: 110 (Connection timed out))
KermitTheFragger left at 18:27 ("Leaving")
alexmaru_ joined #xwiki at 18:34
alexmaru_ is now known as alexmaru ([email protected])
lucien left #xwiki at 18:36
venkatesh joined #xwiki at 19:02
alexmaru left at 19:12 ("good bye")
jvdrean left at 19:18 ()
lucaa1 joined #xwiki at 19:21
arunreddy - (16/06/2009 20:06): sdumitriu : Hi
jvelociter left at 20:08 ()
arunreddy - (16/06/2009 20:08): How to create XWiki Documents at runtime. How can i make use of ExecutionContext.
sdumitriu - (16/06/2009 20:09): Hi arunreddy
arunreddy - (16/06/2009 20:11): As discussed earlier, You suggested me to do it using Public API. In the Component Tutorials its given that we no more use XWikiContext. It suggests to make use of ExecutioinContext.
sdumitriu - (16/06/2009 20:12): Yes
arunreddy - (16/06/2009 20:12): Creating XWiki Documents >> I would like to create XWIki Pages directly from my component.
sdumitriu - (16/06/2009 20:12): You use XWikiDocument through 2 components: DocumentAccessBridge and DocumentModelBridge
sdumitriu - (16/06/2009 20:12): Read their javadoc
sdumitriu - (16/06/2009 20:13): (They are in the xwiki-bridge project)
arunreddy - (16/06/2009 20:13): Ok
sdumitriu - (16/06/2009 20:13): XWikiModelBridge is actually implemented by XWikiDocument at runtime
sdumitriu - (16/06/2009 20:14): (I mean DocumentModelBridge, not XWikiModelBridge)
sdumitriu - (16/06/2009 20:15): You can obtain one from the DocumentAccessBridge
glerouge left at 20:16 ()
arunreddy - (16/06/2009 20:18): Wow great. Thanks a lot. It has everything i needed. 
arunreddy - (16/06/2009 20:39): sdumitriu: The documentation states tht " This is temporary until we remodel the Model classes and the Document Services" 
arunreddy - (16/06/2009 20:40): DocumentAccessBridge documentation
sdumitriu - (16/06/2009 20:41): Yes, don't worry
arunreddy - (16/06/2009 20:42): Am trying my best to do everything in a component driven way. Hope there wont be any problem.
sdumitriu - (16/06/2009 20:42): The bridge is the best way for the moment
sdumitriu - (16/06/2009 20:42): Not using it means using XWikiDocument, which is bad
arunreddy - (16/06/2009 20:43): ok :)
sdumitriu - (16/06/2009 20:43): The bridge will be replaced by the new model, but hopefully there won't be any negative changes between the bridge interface and the model interface
arunreddy - (16/06/2009 20:44): Will that be a component again.?
sdumitriu - (16/06/2009 20:45): Yes
cristinas joined #xwiki at 20:46
jvelociter joined #xwiki at 20:57
florinciu joined #xwiki at 20:58
venkatesh left at 21:03 ("http://www.mibbit.com ajax IRC Client")
arunreddy - (16/06/2009 21:47): sdumitriu: NIce mail :)
vmassol left at 21:47 ()
vmassol joined #xwiki at 21:53
cristinas - (16/06/2009 21:55): hi!
sdumitriu - (16/06/2009 21:55): Hi cristinas
cristinas - (16/06/2009 21:55): sdumitriu .. what is the default syntax for a xwiki page?
sdumitriu - (16/06/2009 21:56): 2.0 now
cristinas - (16/06/2009 21:56): I want to write a test for the new added functions .. 
cristinas - (16/06/2009 21:56): this test should be integrated in enterprise module in distribution tests, right?
sdumitriu - (16/06/2009 21:58): It depends
sdumitriu - (16/06/2009 21:58): What are you trying to test?
sdumitriu - (16/06/2009 21:58): If it's unit tests, then JUnit tests inside your project's src/test/java folder would be better
cristinas - (16/06/2009 22:00): ok.. 
cristinas - (16/06/2009 22:00): i wanted unit test but the code is in the platform
cristinas - (16/06/2009 22:00): module
sdumitriu - (16/06/2009 22:00): What code?
cristinas - (16/06/2009 22:01): the code with the xml-rpc getPageSyntax implementation
sdumitriu - (16/06/2009 22:01): Oh, yes
sdumitriu - (16/06/2009 22:02): The tests for xmlrpc are in the distribution tests
cristinas - (16/06/2009 22:03): yes, ..i've seen .. so i put there a test?
sdumitriu - (16/06/2009 22:04): Yes
cristinas - (16/06/2009 22:06): ok, how can i get the default xwiki syntax? .. I mean i wnat to add a new page (I saw that it doesn't have an attribute for the syntax) .. and i want to check that my function returns the default xwiki syntax
sdumitriu - (16/06/2009 22:08): XWiki.getDefaultDocumentSyntax
cristinas - (16/06/2009 22:14): i mean in the client .. i will write here my function https://svn.xwiki.org/svnroot/xwiki/enterprise/trunk/distribution-test/xmlrpc-tests/src/test/it/org/xwiki/xmlrpc/PagesTest.java
cristinas - (16/06/2009 22:15): is somewhere in serverInformation or should I write a function to set a xwiki syntax and test them together
vmassol left at 22:17 ()
florinciu - (16/06/2009 22:20): hi
sdumitriu - (16/06/2009 22:20): Hi florinciu
cristinas - (16/06/2009 22:20): hi florinciu
florinciu - (16/06/2009 22:20): cristinas: there is no such thing as wiki syntax in the current model
florinciu - (16/06/2009 22:21): I also think it's wrong to add it directly to the current(confluence) model
cristinas - (16/06/2009 22:22): i didn't added to the confluence model .. i didn;'t chage the XWikiPage structure
cristinas - (16/06/2009 22:22): i've just added a new function in the api
florinciu - (16/06/2009 22:22): where?
cristinas - (16/06/2009 22:22): wait a second
cristinas - (16/06/2009 22:24):  java/com/xpn/xwiki/xmlrpc ..here i added the implementation
cristinas - (16/06/2009 22:24): XWikiXmlRpcApiImplementation
florinciu - (16/06/2009 22:24): the api interface?
cristinas - (16/06/2009 22:24): yes i've added in the api interface
florinciu - (16/06/2009 22:24): ok, that is wrong.
cristinas - (16/06/2009 22:25): where should i add it?
florinciu - (16/06/2009 22:25): those are registered in the apache xml-rpc configuration as confluence api handlers
florinciu - (16/06/2009 22:25): we should keep it compatible
cristinas - (16/06/2009 22:25): oh..
cristinas - (16/06/2009 22:26): so where do you suggest to add it
cristinas - (16/06/2009 22:26): ?
florinciu - (16/06/2009 22:26): I'm going to create a new xml-rpc implemetantion that will have wiki syntax, but it won't be available in the next month
florinciu - (16/06/2009 22:26): how soon do you need it?
florinciu - (16/06/2009 22:27): is it a blocker for you?
cristinas - (16/06/2009 22:27): well i got  the content of a page
cristinas - (16/06/2009 22:27): and now i have to to transform it in html
cristinas - (16/06/2009 22:27): to open with openoffice
cristinas - (16/06/2009 22:27): the parser (toJtml) is already implemented
cristinas - (16/06/2009 22:27): in other modul
cristinas - (16/06/2009 22:27): *module
florinciu - (16/06/2009 22:28): what module?
cristinas - (16/06/2009 22:28): i can hardcode the syntax .. i consider default 2.0
cristinas - (16/06/2009 22:29): wait a second
florinciu - (16/06/2009 22:29): i saw the wysiwyg as a dependency. why is that needed?
cristinas - (16/06/2009 22:29): yes
cristinas - (16/06/2009 22:29): there are some useful functions
cristinas - (16/06/2009 22:29): implemented there
florinciu - (16/06/2009 22:30): what exactly are you reusing?
cristinas - (16/06/2009 22:31): the converter module form the server
cristinas - (16/06/2009 22:31): it has two functions toHtml() and fromHtml()
cristinas - (16/06/2009 22:33): http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/wysiwyg/src/main/java/com/xpn/xwiki/wysiwyg/server/converter/HTMLConverter.java
cristinas - (16/06/2009 22:33): http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/wysiwyg/src/main/java/com/xpn/xwiki/wysiwyg/server/converter/internal/DefaultHTMLConverter.java
cristinas - (16/06/2009 22:34): it has also a html cleaner http://svn.xwiki.org/svnroot/xwiki/platform/web/trunk/wysiwyg/src/main/java/com/xpn/xwiki/wysiwyg/server/cleaner/internal/DefaultHTMLCleaner.java
florinciu - (16/06/2009 22:34): I'm not sure about this. XOO should work with multiple versions of XWiki
cristinas - (16/06/2009 22:35): i think i have to improve this because OpenOffice will add some comments
florinciu - (16/06/2009 22:35): the converter evolves in time
florinciu - (16/06/2009 22:35): how do you handle that
florinciu - (16/06/2009 22:35): ?
cristinas - (16/06/2009 22:36): well i thought this converter will be improved when a new syntax appears
cristinas - (16/06/2009 22:38): what role has the wysiwyg module , more exactly?
florinciu - (16/06/2009 22:40): the converter works fine with only one version of the platform. There is nothing saying that a converter from 1.8 is compatible with one from 2.x or the other way around.
florinciu - (16/06/2009 22:40): the wysiwyg is shiped with the platform
florinciu - (16/06/2009 22:40): it has the same release cycle
cristinas - (16/06/2009 22:40): oh ..
florinciu - (16/06/2009 22:41): please ask this on the list
cristinas - (16/06/2009 22:42): ok
florinciu - (16/06/2009 22:43): IMO you should also use an api for this, and have a maven dependency of the converter only if you want some offline feature or something else that doesn't work directly with the platform. 
cristinas - (16/06/2009 22:46): so you suggest to implement an api for all the conversions and the cleaner?
arunreddy_ joined #xwiki at 22:47
florinciu - (16/06/2009 22:49): yes
sdumitriu - (16/06/2009 22:50): florinciu: Are you sure?
florinciu - (16/06/2009 22:50): that's what i think. she should go on the mailing lists
cristinas - (16/06/2009 22:51): ok..
florinciu - (16/06/2009 22:52): btw those apis where proposed in my mail: http://xwiki.markmail.org/search/?q=xwiki2#query:xwiki2%20date%3A200906%20from%3A%22Florin%20Ciubotaru%22+page:1+mid:beugqk6bnqx4l4dv+state:results
florinciu - (16/06/2009 22:53): sdumitriu: why do you think xoo should have the wysiwyg as a maven dependency?
sdumitriu - (16/06/2009 22:53): No, not the WYSIWYG
sdumitriu - (16/06/2009 22:54): I talked with Marius to get the cleaner out of the WYSIWYG
sdumitriu - (16/06/2009 22:54): Hm...
sdumitriu - (16/06/2009 22:54): Wait
sdumitriu - (16/06/2009 22:54): What is Asiri using?
sdumitriu - (16/06/2009 22:55): Where is the converter he is using?
cristinas - (16/06/2009 22:57): http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-officeimporter/src/main/java/org/xwiki/officeimporter/internal/cleaner/OpenOfficeHTMLCleaner.java
arunreddy left at 23:05 (Read error: 110 (Connection timed out))
cristinas - (16/06/2009 23:12): so what should i use? the module from officeimporter , wysiwyg or implement myself?
sdumitriu - (16/06/2009 23:12): officeimporter
cristinas - (16/06/2009 23:14): so i add a dependency in the pom xml with it
cristinas - (16/06/2009 23:16): for the converter Asiri suggested me to use http://svn.xwiki.org/svnroot/xwiki/platform/core/trunk/xwiki-rendering/xwiki-rendering-parsers/xwiki-rendering-parser-wikimodel/src/main/java/org/xwiki/rendering/internal/parser/WikiModelXHTMLParser.java
cristinas - (16/06/2009 23:17): and then the xwiki renderer
cristinas - (16/06/2009 23:17): are too many dependencies?
arunreddy_ left at 23:18 (Read error: 104 (Connection reset by peer))
arunreddy_ joined #xwiki at 23:18
florinciu - (16/06/2009 23:27): cristinas: You don't have that many dependencies
florinciu - (16/06/2009 23:29): still, an increasing the number of platform dependencies may force the user to upgrade both the client and the server to fix a certain issue, when he should actually upgrade just the platform
cristinas - (16/06/2009 23:31): yes, you're right ..
florinciu - (16/06/2009 23:34): also please note that upgrading a client app(to be read 'many client apps') in an enterprise is expensive
florinciu - (16/06/2009 23:36): not to mention the pain of supporting multiple versions. This is why I prefer a lighter client that uses services instead of a heavy client potentially buggy dependencies.
florinciu - (16/06/2009 23:37): (with)
sdumitriu left at 23:43 ("Leaving.")
cristinas - (16/06/2009 23:43): so you would like to make services for htmlcleaner and the converter?
cristinas - (16/06/2009 23:43): or to implement some new ones
florinciu - (16/06/2009 23:48): I think the platform should have these services in a new xwiki 2.0 method set and new model. And I'm going to implement them. The issue is that i'm on a 30 days leave starting next week.
florinciu - (16/06/2009 23:48): so if you are in a immediate need of these apis then I can't provide them
cristinas - (16/06/2009 23:49): well i can work at the GUI to improve it 
cristinas - (16/06/2009 23:49): now it's not the best one
cristinas - (16/06/2009 23:49): but i don't think that it is enough for my evaluation
florinciu - (16/06/2009 23:50): am still going to handle gsoc in that time. but i'm not going to heavily contribute on xoffice or the platform.
cristinas - (16/06/2009 23:50): yes, i see ..
florinciu - (16/06/2009 23:52): if can you continue without the services, even with maven dependencies, please code it so that it can be easily changed in the future
florinciu - (16/06/2009 23:52): as you should always do :)
cristinas - (16/06/2009 23:52): :) i know I know 
cristinas - (16/06/2009 23:53): ok .. i will code with these dependencies (that ones from openoffice).. and i change after that 
cristinas - (16/06/2009 23:54): about the service with the xwiki syntax .. a can hardcode it
cristinas - (16/06/2009 23:54): i don't know .. what do you suggest?
florinciu - (16/06/2009 23:56): you can hardcode the syntax for now, use settings or what you tink is best. It's not a priority.
marta_ joined #xwiki at 23:56
cristinas - (16/06/2009 23:57): ok ..
sdumitriu joined #xwiki at 23:57
florinciu - (16/06/2009 23:57): please ask some opinions on devs before adding platform dependencies
trifon left at 23:59 (Read error: 110 (Connection timed out))

Get Connected