IRC Archive for channel #xwiki on 24 June 2009

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

anamarias left at 00:43 ()
tachirei left at 01:07 ()
Heidi07 left #xwiki at 01:08
sdumitriu left at 01:08 (Remote closed the connection)
florinciu_ joined #xwiki at 01:17
florinciu left at 01:25 (Read error: 110 (Connection timed out))
sdumitriu joined #xwiki at 01:29
sdumitriu left at 01:29 (Client Quit)
Enygma` left at 01:38 ("Leaving.")
arunreddy|afk left at 05:36 (hubbard.freenode.net irc.freenode.net)
arunreddy|afk joined #xwiki at 06:08
jumpkick joined #xwiki at 07:00
jumpkick left #xwiki at 07:00
arunreddy|afk left at 07:14 (Remote closed the connection)
florinciu_ left at 07:57 ("ChatZilla 0.9.85 [Firefox 3.0.11/2009060215]")
arunreddy joined #xwiki at 07:58
mflorea joined #xwiki at 08:36
kaaloo joined #xwiki at 08:37
anamarias joined #xwiki at 08:39
vmassol joined #xwiki at 08:56
vmassol left at 09:01 (Client Quit)
vmassol joined #xwiki at 09:04
vmassol left at 09:15 ()
sdumitriu joined #xwiki at 09:47
mflorea left at 09:57 ("Leaving")
arkub joined #xwiki at 10:01
KermitTheFragger joined #xwiki at 10:17
tmortagne joined #xwiki at 10:23
sdumitriu left at 10:30 (Read error: 110 (Connection timed out))
florinciu joined #xwiki at 10:57
vnkatesh joined #xwiki at 10:58
venkatesh joined #xwiki at 10:58
mflorea joined #xwiki at 10:59
vnkatesh left at 11:01 (Ping timeout: 180 seconds)
genzo joined #xwiki at 11:11
guillaum1 left at 11:13 ("Leaving.")
vmassol joined #xwiki at 11:16
vmassol left at 11:17 (Client Quit)
guillaum1 joined #xwiki at 11:20
anamarias left at 11:24 ()
genzo - (24/06/2009 11:26): hi everyone
genzo - (24/06/2009 11:27): how can i modify the core system of xwiki ? the documentation is a bit ambigous about that
genzo - (24/06/2009 12:03): no one ?
asyd - (24/06/2009 12:05): define "modify the core" ?
genzo - (24/06/2009 12:06): i'd like to enhance for my own purpose the xwiki class editor
genzo - (24/06/2009 12:06): by adding a "remove property" functionality
genzo - (24/06/2009 12:07): thus i have to write some code into class editor files
genzo - (24/06/2009 12:08): but i don't know where i can find those files
genzo - (24/06/2009 12:19): i hope i've made myself clear !
arunreddy - (24/06/2009 12:22): genzo: You can start builiding from the source.
florinciu left at 12:55 ("ChatZilla 0.9.85 [Firefox 3.0.11/2009060215]")
arunreddy left at 13:11 (Read error: 104 (Connection reset by peer))
vmassol joined #xwiki at 13:51
guillaum1 left at 14:00 (hubbard.freenode.net irc.freenode.net)
kaaloo left at 14:00 (Read error: 60 (Operation timed out))
arunreddy joined #xwiki at 14:03
jvelociter joined #xwiki at 14:14
vmassol left at 14:18 ()
kaaloo joined #xwiki at 14:19
Enygma` joined #xwiki at 14:28
kaaloo left at 14:36 ("Leaving.")
kaaloo joined #xwiki at 14:38
lucaa left at 14:45 ("Leaving.")
lucaa joined #xwiki at 14:45
lucaa left at 14:50 (Client Quit)
lucaa joined #xwiki at 14:54
genzo left at 14:57 (Ping timeout: 180 seconds)
vmassol joined #xwiki at 14:57
florinciu joined #xwiki at 15:11
alexmaru joined #xwiki at 15:40
Enygma` left at 15:51 ("Leaving.")
anamarias joined #xwiki at 15:56
vmassol left at 16:00 ()
arunreddy_ joined #xwiki at 16:11
arunreddy left at 16:19 (Read error: 110 (Connection timed out))
lucien joined #xwiki at 16:51
lucien left at 17:21 (Remote closed the connection)
alexmaru left at 17:51 ("good bye")
florinciu left at 18:02 ("ChatZilla 0.9.85 [Firefox 3.0.11/2009060215]")
arunreddy_ - (24/06/2009 18:09): anamarias : Hi
arunreddy_ - (24/06/2009 18:10): Have you used any classes in shared-tests to test components.?
anamarias - (24/06/2009 18:11): hi arunreddy_ 
arunreddy_ - (24/06/2009 18:11): anamarias : the other day you had some discussion with sergiu.. I need some help.
anamarias - (24/06/2009 18:12): i'm working on it right now. i'm trying to use XWiki.XWikiUsers
anamarias - (24/06/2009 18:12): yes, that's right, but i still have that problem (it doesn't build)
arunreddy_ - (24/06/2009 18:12): Extend AbstractXWikiComponentTestCase, and accessing the component with getComponentManager() ?? 
arunreddy_ - (24/06/2009 18:13): Ok
anamarias - (24/06/2009 18:13): for the test case yes, i extended AbstractXWikiComponentTestCase
anamarias - (24/06/2009 18:14): and getComponentManager() for getting the mock DocumentAccessBridge
arunreddy_ - (24/06/2009 18:16): Ok thanks a lot.
anamarias - (24/06/2009 18:17): sure, np
cristinas left at 18:19 ("Leaving")
lucaa left at 18:22 ("Leaving.")
jvelociter left at 18:37 ()
KermitTheFragger left at 18:38 ("Leaving")
sdumitriu joined #xwiki at 19:06
lucaa joined #xwiki at 19:08
jvelociter joined #xwiki at 19:14
venkatesh left #xwiki at 19:28
arunreddy_ - (24/06/2009 19:29): sdumitriu : Hi
sdumitriu - (24/06/2009 19:30): Hi arunreddy_
arunreddy_ - (24/06/2009 19:30): i would like to start working on the wizard. Using velocity and JS. 
sdumitriu - (24/06/2009 19:30): Sorry no feedback yet
sdumitriu - (24/06/2009 19:30): I've been busy with school stuff
arunreddy_ - (24/06/2009 19:30): Its ok.. Looks like you are busy these days
arunreddy_ - (24/06/2009 19:30): School ?
sdumitriu - (24/06/2009 19:31): PhD
arunreddy_ - (24/06/2009 19:31): Oh great. All the best.
sdumitriu - (24/06/2009 19:32): Thanks
arunreddy_ - (24/06/2009 19:32): i have few questions if you are free.
arunreddy_ - (24/06/2009 19:32): How is the form stuff handled in XWiki. 
arunreddy_ - (24/06/2009 19:32): Posting content .. Ajax and velocity.
sdumitriu - (24/06/2009 19:33): WDYM?
arunreddy_ - (24/06/2009 19:34): something like when i try to upload something its posted to  : xwiki/bin/upload/-----
arunreddy_ - (24/06/2009 19:34): xwiki/bin/import/<path to page am using>
tmortagne left at 19:34 ("Ex-Chat")
arunreddy_ - (24/06/2009 19:35): Am i understandable ?
sdumitriu - (24/06/2009 19:35): No
sdumitriu - (24/06/2009 19:35): What exactly do you want to know?
arunreddy_ - (24/06/2009 19:36): i wanted to know how to handle forms, and make calls to components based on that and retrieve data ..
arunreddy_ - (24/06/2009 19:36): basically to desing a wizard kind of approach. 
arkub left at 19:37 (Read error: 113 (No route to host))
arunreddy_ - (24/06/2009 19:37): I have been through few existing ones like Preferences ..
arunreddy_ - (24/06/2009 19:39): Is it possible to use Ajax ( Prototype / GWT ) to design one. If so some reading or links which may be of some use to me.
anamarias - (24/06/2009 19:40): arunreddy_: do you want to use a component's services from the client side ?
arunreddy_ - (24/06/2009 19:41): yes, 
arunreddy_ - (24/06/2009 19:42): sdumitriu : Am i understandable now.?
arunreddy_ - (24/06/2009 19:42): anamarias : yes from the client side using velocity and js, making it more interactive.
sdumitriu - (24/06/2009 19:47): arunreddy_: You should write the code inside a wiki document
arunreddy_ - (24/06/2009 19:48): Ok
sdumitriu - (24/06/2009 19:48): JS inside jsx objects
sdumitriu - (24/06/2009 19:48): CSS inside ssx objects
sdumitriu - (24/06/2009 19:48): The velocity inside the document content
arunreddy_ - (24/06/2009 19:49): can jsx objects make calls to components.?
sdumitriu - (24/06/2009 19:49): No
sdumitriu - (24/06/2009 19:49): js is in the browser, components are on the server
sdumitriu - (24/06/2009 19:49): This means that you need to expose component behavior in velocity
sdumitriu - (24/06/2009 19:50): You do this using a velocity context initializer
arunreddy_ - (24/06/2009 19:50): yeah i have done that in my app.
sdumitriu - (24/06/2009 19:50): Which puts a handle to your component inside the velocity context
sdumitriu - (24/06/2009 19:50): You then call its methods from velocity scripts
sdumitriu - (24/06/2009 19:50): And the document you write should act like a web service
sdumitriu - (24/06/2009 19:51): Meaning that based on the requested URL (some query parameters) it does different things
sdumitriu - (24/06/2009 19:51): Then, you make AJAX requests to these special URLs from JavaScript
sdumitriu - (24/06/2009 19:51): This way you can have a connection between JS and Java
arunreddy_ - (24/06/2009 19:52): Thats what i need.
arunreddy_ - (24/06/2009 19:55): The documents you are speaking about - Are they normal XWiki documents?
sdumitriu - (24/06/2009 19:56): Yes
arunreddy_ - (24/06/2009 19:57): And one more to connect to the database and make retrieve some data. Is there any existing module which i can make use of ?
arunreddy_ - (24/06/2009 19:58): sry its / to make some queries and retrieve data...
anamarias - (24/06/2009 19:58): http://platform.xwiki.org/xwiki/bin/view/DevGuide/velocityHqlExamples
anamarias - (24/06/2009 20:00): about one simple example there:
anamarias - (24/06/2009 20:00): #set($query="select obj.name, prop.name prop.value from BaseObject obj, StringProperty prop where obj.className='XWiki.XWikiUsers' and prop.id.id=obj.id")
anamarias - (24/06/2009 20:00): #set($results = $xwiki.search($query))
anamarias - (24/06/2009 20:00): #foreach ($item in $results)
anamarias - (24/06/2009 20:00):  * $item
anamarias - (24/06/2009 20:00): #end
anamarias - (24/06/2009 20:00): why am I not getting any results back ?
anamarias - (24/06/2009 20:00): not even for:
anamarias - (24/06/2009 20:00): #set($query1="select obj.name from BaseObject obj where obj.className='XWiki.XWikiUsers'")
anamarias - (24/06/2009 20:00): #set($results1 = $xwiki.search($query1))
anamarias - (24/06/2009 20:00): #foreach ($item in $results1)
anamarias - (24/06/2009 20:00):  * $item
anamarias - (24/06/2009 20:00): #end
arunreddy_ - (24/06/2009 20:01): hey i want to connect to a external database. for ex : A mediaWiki database on MySQL
arunreddy_ - (24/06/2009 20:01): not the XWiki one.
anamarias - (24/06/2009 20:01): hmm, won't that be done on the server side ?
anamarias - (24/06/2009 20:02): or not, sorry I don't know exactly what you need...
arunreddy_ - (24/06/2009 20:03): Task is simple.. To query the mediawiki database and generate a dump from it. we can do it normally using jdbc . 
tmortagne joined #xwiki at 20:03
sdumitriu - (24/06/2009 20:04): arunreddy_: You should not do that
sdumitriu - (24/06/2009 20:04): You get the dump as an upload, don't try to connect to the database
sdumitriu - (24/06/2009 20:04): anamarias: $xwiki.search requires programming rights
sdumitriu - (24/06/2009 20:05): If you're on the farm, you don't have them
arunreddy_ - (24/06/2009 20:05): wdym  by getting dump as an upload ? 
anamarias - (24/06/2009 20:05): I'm on a local XE
anamarias - (24/06/2009 20:06): should the Admin be last editing the document to work ? (i was logged in as a simple user)
arunreddy_ - (24/06/2009 20:06): i think the user should have admin rights.
arunreddy_ - (24/06/2009 20:07): programming rights.
mflorea left at 20:08 ("Leaving")
sdumitriu - (24/06/2009 20:10): arunreddy_: The user provides the sql dump as a file
sdumitriu - (24/06/2009 20:10): You don't go to the database to get it
arunreddy_ - (24/06/2009 20:11): so the use case will be to dump the sql file in the local database and import from that ?
sdumitriu - (24/06/2009 20:11): No
arunreddy_ - (24/06/2009 20:11): local database -- XWiki database.
sdumitriu - (24/06/2009 20:11): The use case is:
sdumitriu - (24/06/2009 20:12): Johnny Boy wants to migrate from MediaWiki to XWiki
sdumitriu - (24/06/2009 20:12): He goes to the mysql server and dumps the contents of the mediawiki database into a file, mw.sql
sdumitriu - (24/06/2009 20:12): He starts XWiki
sdumitriu - (24/06/2009 20:12): Goes to the Import wizard
sdumitriu - (24/06/2009 20:13): Selects "Import from MediaWiki SQL dump"
sdumitriu - (24/06/2009 20:13): The wizard displays an upload field
sdumitriu - (24/06/2009 20:13): He selects mw.sql
sdumitriu - (24/06/2009 20:13): And the importer works with this uploaded file
sdumitriu - (24/06/2009 20:13): It doesn't even have to end up in the database
arunreddy_ - (24/06/2009 20:14): Am i supposed to parse the .sql file and generate content out of it.?
sdumitriu - (24/06/2009 20:17): Yes
arunreddy_ - (24/06/2009 20:18): thats totally new. Plain regex or any existing libraries available like dom4j for XML
arunreddy_ - (24/06/2009 20:20): let me give it a try. :)
sdumitriu left at 20:34 ("Leaving.")
arunreddy_ is now known as arunreddy|afk ([email protected])
arkub joined #xwiki at 20:53
sdumitriu joined #xwiki at 21:48
vmassol joined #xwiki at 21:49
vmassol left at 21:55 ()
anamarias - (24/06/2009 22:41): sdumitriu: hi. I'm still having problems building my test case class. when you have some time to look into it, just let me know. thanks
sdumitriu - (24/06/2009 22:53): Can you commit the code as it is now/
sdumitriu - (24/06/2009 22:53): ?
anamarias - (24/06/2009 22:53): ok
anamarias - (24/06/2009 22:55): done
kaaloo left at 22:57 (Read error: 113 (No route to host))
jvelociter left at 23:09 ()
jvelociter joined #xwiki at 23:18

Get Connected