Wiki Spaces

Documentation
Projects
Resources

Get Help from Others

Q&A: Ask OpenMRS »
Discussion: OpenMRS Talk »
Real-Time: IRC Chat

IRC Logs

Child pages
  • 2009-06-30 - OpenMRS
Skip to end of metadata
Go to start of metadata
00:05:48 *** Agnor has quit IRC
00:16:23 <r0bby> http://andykayley.blogspot.com/2009/05/how-to-avoid-classcastexceptions-when.html
00:16:25 <OpenMRSBot> <http://ln-s.net/3Q4F> (at andykayley.blogspot.com)
00:16:26 <r0bby> YAY!
00:16:32 <r0bby> I get to use a GoF pattern :D
00:41:43 *** nribeka has joined #openmrs
00:41:45 *** ChanServ sets mode: +v nribeka
00:57:20 <Mkop> r0bby: GoF?
01:05:24 *** scottyaz has quit IRC
01:05:48 <jmiranda> Mkop, Gang of Four
01:06:08 <jmiranda> andrewaclt, i was away from my computer for a bit
01:06:22 <jmiranda> let me know if you have any other questions about the cohort builder
01:06:31 <andrewaclt> okay thanks
01:07:25 <jmiranda> andrewaclt, the mediawiki search function is awful
01:07:40 <andrewaclt> jmiranda: I know, but google wasn't helping either.
01:08:00 <jmiranda> try googling "openmrs <search terms>" if you ever need to find something on the wiki
01:12:10 <r0bby> jmiranda: due to hibernate's creating proxy classes -- instanceof will fail
01:12:20 <r0bby> https://www.hibernate.org/280.html
01:12:23 <r0bby> found that :D
01:13:11 <jmiranda> r0bby, mike and i had a discussion about that today
01:13:27 <jmiranda> i'm having a similar issue with springs @Transactional annotation
01:13:42 <r0bby> jmiranda: yeh
01:13:44 <r0bby> it fails
01:13:53 <r0bby> you have to implement the vistor pattern
01:14:03 <r0bby> I'll blog my experience
01:14:29 <r0bby> I thought .isAssignableFrom() woulfd help -- but it doesnt
01:14:43 <r0bby> java.lang.IllegalArgumentException: Cannot convert org.openmrs.module.facilitydata.model.BooleanCodedQuestion@1a6920f of type class org.openmrs.module.facilitydata.model.FacilityDataQuestion$$EnhancerByCGLIB$$5cc2bd7 to class org.openmrs.module.facilitydata.model.NumericQuestion
01:14:49 <r0bby> it's behaving VERY badly
01:14:54 <r0bby> -- due to the proxy
01:14:57 <r0bby> which BLOWS
01:17:17 <r0bby> http://andykayley.blogspot.com/2009/05/how-to-avoid-classcastexceptions-when.html
01:17:18 <OpenMRSBot> <http://ln-s.net/3Q4F> (at andykayley.blogspot.com)
01:17:25 <r0bby> here's a nice concise version of what hibernate did
01:17:34 <r0bby> I'm about to implement that
01:17:36 <r0bby> it
01:17:39 <r0bby> 'll be fun :)
01:22:01 *** scottyaz has joined #openmrs
02:08:24 *** bwolfe has joined #openmrs
02:08:24 *** ChanServ sets mode: +o bwolfe
02:09:20 <r0bby> bwolfe: way to deal w/ proxy classes in hibernate: http://andykayley.blogspot.com/2009/05/how-to-avoid-classcastexceptions-when.html
02:09:21 <OpenMRSBot> <http://ln-s.net/3Q4F> (at andykayley.blogspot.com)
02:10:55 * r0bby dances and gleefully implements the visitor Pattern :0
02:10:57 <r0bby> :)
02:19:12 * Mkop is considering flunking out of school and going out to work
02:27:02 <r0bby> ?!?!
02:27:06 <r0bby> switch majors
02:27:12 <r0bby> I hear CS is fun :)
02:28:11 <Mkop> I'm not seriously considering it
02:28:19 <Mkop> I'm just procrastinating doing work
02:29:25 <r0bby> BAD Mkop BAD!
02:29:36 <Mkop> am I a dog?
02:29:39 * r0bby beats Mkop with his unloaded baseballgunbat
02:29:55 <r0bby> (it's the nerf(r)(tm) version
02:30:39 *** upul has joined #openmrs
02:30:40 *** ChanServ sets mode: +v upul
02:31:25 <r0bby> hey upul :)
02:31:53 <upul> hey r0bby
02:31:56 <Mkop> hi upul
02:32:07 <upul> hi Mkop
02:32:43 <upul> you have changed the cloak to Mkop
02:33:14 <Mkop> indeed I have
02:36:05 <upul> Is Mr. Ben Wolfe present in here?
02:38:04 <Mkop> will the real bwolfe please stand up, please stand up
02:38:42 <bwolfe> what do you all want?
02:39:11 <upul> annoy you
02:39:46 <upul> bwolfe: do we need the creator, createddate etc. exposed in the allergy object?
02:40:09 <upul> allergy doesn't get saved
02:40:18 <upul> activelistentry gets asved
02:40:49 <upul> allergy doesn't even have an id
02:46:16 <bwolfe> odd
02:46:23 <bwolfe> what are the two objects?
02:47:03 <upul> Allergy has allergen concept, reaction concept, severity concept, startDate, stopDate values
02:47:38 <upul> It's like data transfer object. For problem it is going to be just direct concept object
02:54:44 *** Mkop has quit IRC
02:58:26 <r0bby> bwolfe: I live to bug you :)
02:58:34 <r0bby> actually, i don't live forthat
03:06:27 <bwolfe> upul: how would one get the creator of an allergy if it wasn't on the object?
03:07:12 <upul> i'm thinking of not having any of those in Allergy object
03:07:51 <upul> bwolfe: So it is just a container for allergy details
03:08:33 <upul> Allergy no extended from OpenMrsObject etc.
03:09:55 <upul> I sent mail to docburke, looking for second opinion from docbwolfe
03:20:18 *** nribeka has quit IRC
03:20:33 *** nribeka has joined #openmrs
03:20:33 *** ChanServ sets mode: +v nribeka
03:23:12 *** nribeka has quit IRC
03:23:54 *** scottyaz has quit IRC
03:24:14 *** nribeka has joined #openmrs
03:24:14 *** ChanServ sets mode: +v nribeka
03:24:24 <r0bby> I wanna be docr0bby
03:24:48 <r0bby> upul: why not extend OpenmrsObject?
03:24:56 <r0bby> (curious)
03:25:59 <upul> i was thinking not extending with anything, it's just a temperary holder
03:27:03 <r0bby> is it persisted?
03:27:21 <r0bby> if it is, it may help -- you only declare things you need and you get a lot for free
03:27:25 <upul> no, an activelistentry gets created for that
03:27:36 <r0bby> hrm
03:27:40 <r0bby> then it doesn't matter
03:27:59 *** Mkop has joined #openmrs
03:28:04 <r0bby> in my opinion
03:28:35 <r0bby> is the Allergy object in any way persisted?
03:28:43 <r0bby> (in the activelistentry?
03:28:58 <upul> activelistentry contains the allergy details
03:29:03 <r0bby> if not, i'd say it doesn't matter; that's my $0.02
03:29:16 <r0bby> why not just have an Allergy in the ActiveListEntry
03:29:54 <r0bby> it's a lot easier :X
03:30:04 <upul> activelistentry just hold startobs, stopobs, startdate, stopdate
03:30:13 <r0bby> ahh
03:30:15 <upul> it's generic
03:30:18 *** atomicturtle has joined #openmrs
03:30:19 <r0bby> okay
03:30:32 <r0bby> the way you described it didn't make it sound that way
03:30:38 *** atomicturtle has left #openmrs
03:33:24 <upul> the icon used in projects page for active lists is named "incomplete_list"
03:33:33 <r0bby> lemme look
03:34:07 <upul> may be it's a prediction :-)
03:39:34 *** bwolfe has quit IRC
03:39:59 <r0bby> hrm :X
03:40:19 <r0bby> by the way how's mentorship w/ burke? /soc
03:42:10 <Mkop> and, how's active lists? that's the project I applied for, you know
03:42:16 <upul> burke is traumatized with the last year's experience. but he's recovering :-D
03:42:39 <Mkop> you jerk, upul !
03:42:48 <Mkop> (even if I'm laughing...)
03:43:07 <r0bby> LOL
03:43:22 <r0bby> you best watch your back upul !
03:44:12 * r0bby strokes his baseballgunbat and glares at upul
03:44:21 <r0bby> holy crap that sounds wrong
03:44:29 <Mkop> lol
03:48:05 <r0bby> excuse me -- i need to write *SOMETHING* today
03:52:40 <upul> I didn't apply for facility data, mike had writeen pages and pages, didn't know what it meant
04:11:40 *** atomicturtle has joined #openmrs
04:18:07 *** atomicturtle has quit IRC
04:21:27 <r0bby> upul: i sorta did
04:21:46 <r0bby> it stood out to me not sure why
04:22:45 <upul> i applied for 7 of them, because 7 is the most magical number ;-)
04:23:12 *** atomicturtle has joined #openmrs
04:23:24 <upul> so if openmrs got 100 apps that means i was responsible for nearly 1/10
04:25:30 <upul> facility data module looks like there's lot to do
04:26:16 <upul> r0bby: is there any library to create that calendar view
04:26:30 <upul> i need one for course work soon
04:26:52 <Mkop> you're responsible for 1/14th of the applications
04:26:53 *** atomicturtle has quit IRC
04:27:34 *** atomicturtle has joined #openmrs
04:41:02 *** atomicturtle has quit IRC
04:42:17 *** atomicturtle has joined #openmrs
04:42:27 <OpenMRSBot> Recent updates in the world of openmrs: Ben Wolfe: Easy SVN Conflict Resolution <http://blog.eflow.org/archives/239>
04:49:18 <upul> i'm not good at maths. i can only count to 30
05:01:45 *** atomicturtle has quit IRC
05:03:54 *** atomicturtle has joined #openmrs
05:04:30 <Mkop> ben: why's your website called eflow? and, who's steve?
05:05:51 <r0bby> the guy who was with adam in the garden of eden
05:06:55 <Mkop> oh, ben's not here
05:12:53 <r0bby> yeh :)
05:23:03 <upul> eflow is wolfe backwards
05:24:58 *** Echidna has quit IRC
05:27:14 *** Echidna has joined #openmrs
05:34:17 <Mkop> oh
05:35:06 <upul> who's steve?
05:37:07 <r0bby> upul: you never heard the f'ed up version of the book of genesis have you :P
05:37:17 <r0bby> adam and eve -> adam and steve
05:37:19 <r0bby> :>
05:37:30 <Mkop> r0bby: that's ond of the most retarded things I've heard (no offense)
05:37:46 <r0bby> Mkop: i didn't invent it :)
05:37:59 <r0bby> Nor was I the one who first said it :)
05:38:00 <Mkop> nothing against gays, but they can't exactly have kids and be the forerunners of all of mankind
05:38:25 <r0bby> heh -- true :)
05:38:29 <r0bby> I was just making a joke
05:39:00 <r0bby> Mkop: it wasn't so much about the the overall message of genesis as mocking the bible :)
05:39:35 <Mkop> I realize you say it in jest, but it's retarded, and I felt the need to point that out
05:40:52 <r0bby> true :)
05:43:23 *** atomicturtle has quit IRC
05:44:45 *** atomicturtle has joined #openmrs
05:53:09 *** atomicturtle1 has joined #openmrs
05:53:09 *** atomicturtle has quit IRC
06:23:21 *** pascal` has joined #openmrs
06:41:36 <upul> Mkop: go to sleep!
06:42:09 <Mkop> upul: lol - I just had a friend IM me saying the same thing
06:43:18 <upul> pascal`, bringer of dreams, is here
06:43:41 * pascal` sprinkles the powder
06:44:14 <upul> \me sneezes
06:44:18 <upul> ha
06:44:28 * upul sneezes
07:24:10 * Mkop finally succumbs to pascal`'s powder
07:24:25 <Mkop> good night mate
07:24:28 <Mkop> good night upul
07:24:43 <upul> don't let the bed bugs bite you
07:24:49 *** Mkop has quit IRC
07:25:22 <upul> Clorox
07:38:50 <r0bby> OMG :D
07:38:55 <r0bby> it *WORKS*
07:39:04 <r0bby> the visitor pattern is amazing :)
07:40:01 <r0bby> upul: if you need to do subclasses in hibernate and rely on the type checks using instanceof, look into the visitor pattern :)
07:40:20 <r0bby> Hibernate uses proxy classes and that f's up instanceof checks
08:11:08 *** atomicturtle1 has quit IRC
08:12:00 *** atomicturtle has joined #openmrs
08:23:42 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8812]: facility data: part 2 of the previous commit; these missed the boat. <http://dev.openmrs.org/changeset/8812> || OpenMRS Changesets: Changeset [8811]: facilitydata: * fixed an issue where cglib proxies throw off data type … <http://dev.openmrs.org/changeset/8811> || OpenMRS Changesets: Changeset [8810]: serialization: modified the logic in method "lookupId" so that other … <http://dev.openmrs.org/changeset/8810>
08:38:59 *** atomicturtle1 has joined #openmrs
08:38:59 *** atomicturtle has quit IRC
08:39:39 *** atomicturtle1 has quit IRC
08:40:55 *** atomicturtle has joined #openmrs
08:52:44 *** atomicturtle has quit IRC
08:54:04 *** atomicturtle has joined #openmrs
08:54:16 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Re: linking a concept with each observation <http://forum.openmrs.org/viewtopic.php?f=2&t=469#p1707> || OpenMRS Forum: Re: How to detect when a module is being unloaded <http://forum.openmrs.org/viewtopic.php?f=8&t=470#p1706>
09:28:24 *** sunbiz has joined #openmrs
09:28:24 *** ChanServ sets mode: +v sunbiz
09:29:42 <upul> hey sunbiz
09:29:48 <sunbiz> hey upul
09:29:57 <upul> long time no see
09:29:58 <sunbiz> upul; howz it going
09:30:08 <upul> going okay
09:30:17 <upul> how are you
09:30:20 <sunbiz> yes... been running around India
09:30:26 <sunbiz> Im fine
09:30:32 <upul> preparing for marathon
09:30:38 <upul> ;-)
09:31:11 <sunbiz> ;-) nope joined HISP India... going around to facilities for training and pilot tests :D
09:37:36 *** jmiranda has quit IRC
09:57:49 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8813]: reporting: Committing changes to cohort definition manager. * Allow a … <http://dev.openmrs.org/changeset/8813>
10:27:33 *** atomicturtle has quit IRC
10:29:50 *** atomicturtle has joined #openmrs
10:45:18 *** nribeka has quit IRC
10:53:58 *** andrew[a]clt has quit IRC
11:01:31 *** andrew[a]clt has joined #openmrs
11:01:49 <andrew[a]clt> Does the demo on the openmrs site run the trunk version?
11:03:28 <pascal`> Version: 1.4.3.00
11:05:55 <andrew[a]clt> oh
11:05:58 <andrew[a]clt> thanks
11:08:18 <pascal`> np andrew[a]clt
11:08:24 <pascal`> it says it at the bottom of the page
11:14:12 <andrew[a]clt> It doesn't on mine
11:14:20 <pascal`> um
11:14:23 <pascal`> it should
11:14:28 <andrew[a]clt> normally there is this bar with the languages and stuff right?
11:14:41 <pascal`> yes
11:14:58 <andrew[a]clt> Yeah, demo.openmrs.org/openmrs doesn't have that for me
11:15:32 <pascal`> i'm not sure that's possible
11:15:47 <pascal`> maybe log out, and make sure you're scrolled all the way down
11:16:34 <andrew[a]clt> hmm, it's way to early in the morning, I wasn't scrolled down :(
11:17:05 <pascal`> (=
11:17:18 <andrew[a]clt> thanks for the all help though, it's weird it's below the fold even on the "Welcome" page
11:29:32 *** upul has quit IRC
11:39:40 *** atomicturtle has quit IRC
11:40:34 *** nribeka has joined #openmrs
11:40:34 *** ChanServ sets mode: +v nribeka
11:41:10 *** james_regen has joined #openmrs
11:41:11 *** ChanServ sets mode: +v james_regen
11:41:25 *** atomicturtle has joined #openmrs
11:52:09 *** bwolfe has joined #openmrs
11:52:09 *** ChanServ sets mode: +o bwolfe
12:15:55 <pascal`> hey bwolfe
12:16:06 <bwolfe> good morning pascal`
12:30:11 *** upul has joined #openmrs
12:30:11 *** ChanServ sets mode: +v upul
12:34:53 *** bmckown has joined #openmrs
12:34:53 *** ChanServ sets mode: +o bmckown
12:35:01 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Re: How to detect when a module is being unloaded <http://forum.openmrs.org/viewtopic.php?f=8&t=470#p1708>
12:35:18 <sunbiz> hey bwolfe and bmckown
12:35:24 <sunbiz> howdy ??
12:35:34 <bwolfe> hey sunny, long time no see!
12:35:41 <sunbiz> yea
12:35:42 <bmckown> Hi, sunbiz ! :-)
12:36:11 <sunbiz> finally... got to an internet conn which does not cost a bomb to be pertinently connected
12:36:40 <bmckown> That's good. :-)
12:36:58 <sunbiz> bmckown: I did Skype in between... but u didnt reply :(
12:36:59 <sunbiz> :P
12:37:30 <bwolfe> don't feel too bad. brian doesn't reply to my skypes either ;-)
12:37:37 <bmckown> Sorry... Think I saw that in the middle of night on my phone... then went back to sleep.
12:37:45 <sunbiz> :D
12:38:02 <bwolfe> sunbiz: are you still traveling for work, or is that done for a while now?
12:51:25 *** upul has quit IRC
12:52:03 *** upul has joined #openmrs
12:52:04 *** ChanServ sets mode: +v upul
12:52:08 <sunbiz> nope... its continues
12:52:15 <sunbiz> next week again
12:59:32 <bwolfe> that stinks
13:02:39 *** andrew[a]clt has quit IRC
13:04:47 *** sunbiz has quit IRC
13:06:06 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Tickets: Ticket #1548 (task closed): First liquibase update not applied <http://dev.openmrs.org/ticket/1548#comment:3>
13:06:24 *** atomicturtle has quit IRC
13:19:42 *** sdefabbiakane has joined #openmrs
13:20:58 *** atomicturtle has joined #openmrs
13:38:08 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Tickets: Ticket #1063 (defect closed): On cascade save or update, metadata fields (like dateCreated, dateChanged, etc) are not handled correctly <http://dev.openmrs.org/ticket/1063#comment:1> || OpenMRS Tickets: Ticket #632 (task closed): Fix nightly and released wars for production <http://dev.openmrs.org/ticket/632#comment:1> || OpenMRS Changesets: Changeset [8815]: 1.5.x: Changing liquibase precondition checks from using the old … <http://dev.openmrs.org/changeset/8815> || OpenMRS Changesets: Changeset [8814]: Changing liquibase precondition checks from using the old database_version … <http://dev.openmrs.org/changeset/8814>
13:40:35 *** scottyaz has joined #openmrs
13:51:13 <nribeka> quick question: how can a method that has throw Exception statement in the catch block doesn't declare throws?
13:53:05 <upul> nribeka: somebody catches it before the end of the method?
13:54:30 <sdefabbiakane> some types of exceptions don't need to be declared thrown, the name escapes me at the moment, looking it up, 1s
13:54:49 <upul> RuntimeException
13:54:52 <nribeka> ah got it
13:54:58 <nribeka> 3 s late
13:55:07 <nribeka> i didn't see the super class
13:55:07 <nribeka> :)
13:55:11 <sdefabbiakane> :)
13:55:40 <upul> nribeka: what did you mean super class?
13:56:10 *** jmiranda has joined #openmrs
13:56:10 *** ChanServ sets mode: +o jmiranda
13:56:23 <sdefabbiakane> of the exception, I'd guess
13:57:15 <nribeka> this is a class extending RuntimeException
14:04:46 *** nribeka has quit IRC
14:05:22 *** nribeka has joined #openmrs
14:05:22 *** ChanServ sets mode: +v nribeka
14:22:33 *** pascal` has quit IRC
14:40:09 *** atomicturtle1 has joined #openmrs
14:40:09 *** atomicturtle has quit IRC
14:42:15 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Tickets: Ticket #1221 (enhancement closed): Database upgrades should become an explicit and manual process for admins <http://dev.openmrs.org/ticket/1221#comment:2> || OpenMRS Changesets: Changeset [8819]: Changed the API context startup to not run updates automatically - #1221 <http://dev.openmrs.org/changeset/8819> || OpenMRS Changesets: Changeset [8818]: Changed the API context startup to not run updates automatically - #1221 <http://dev.openmrs.org/changeset/8818> || OpenMRS Changesets: Changeset [8817]: 1.5.x: Fixed javascript loading from the new web-inf location in the … <http://dev.openmrs.org/changeset/8817> || OpenMRS Changesets: Changeset [8816]: Fixed javascript loading from the new web-inf location in the startup … <http://dev.openmrs.org/changeset/8816>
14:43:14 *** catechu has joined #openmrs
15:16:15 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Tickets: Ticket #1413 (task closed): Saving a Row Per Obs Data Export redirects you back to the Row Per Patient data export page <http://dev.openmrs.org/ticket/1413#comment:1> || OpenMRS Changesets: Changeset [8820]: Fixed bad link for row per obs data exports - #1413 <http://dev.openmrs.org/changeset/8820> || OpenMRS Tickets: Ticket #1605 (enhancement created): Patient Matching Module :: Test Data Loader <http://dev.openmrs.org/ticket/1605>
15:21:51 <nribeka> bwolfe, have something like this happen to you?
15:21:52 <nribeka> A user context must first be passed to setUserContext()...use Context.openSession() (and closeSession() to prevent memory leaks!) before using the API
15:22:07 <bwolfe> yes
15:23:50 <nribeka> ok, i'm listening bwolfe (while eating cheetozz super hot)
15:25:38 *** sdefabbiakane has quit IRC
15:25:57 <bwolfe> nribeka: oh, did you want a solution too? :-p
15:26:18 <nribeka> hahaha ...
15:26:26 <nribeka> lemme try one last thing bwolfe
15:26:41 <bwolfe> nribeka: the solution is in the error message...
15:27:37 <nribeka> move the setUserContext inside the openSession right?
15:27:42 <nribeka> i need to find those
15:27:52 <nribeka> is that the solution?
15:33:18 <bwolfe> nribeka: before you do anything with the Context you must first call Context.openSession()
15:37:57 <catechu> nribeka: are you working on a standalone application?
15:39:31 <nribeka> nope catechu
15:39:38 <nribeka> working on the logic branch
15:39:45 <catechu> ok
15:39:57 <nribeka> is there anything i can do for you catechu?
15:40:25 <catechu> not at the moment, thanks for asking though :)
15:45:40 <nribeka> well if you need anything, you can ask ... bwolfe anytime ... lol
15:45:41 <nribeka> :D
15:54:45 *** atomicturtle1 has quit IRC
15:59:10 <nribeka> darn it. the branch works without the token tags patch :(
16:02:22 <upul> bwolfe: are you there?
16:04:11 <bwolfe> for about 30 seconds
16:04:16 <bwolfe> then going to go make lunch...
16:04:55 <upul> bwolfe: for allergern, allergy_added etc. should I create the concepts using liquibase or programmatically?
16:05:31 <upul> how do I make sure they are not used already e.g. problem_added etc. already exists
16:06:20 <bwolfe> upul: I suggest liquibase
16:07:04 <upul> bwolfe: what about if allergy... already exists in user database
16:07:13 <bwolfe> upul: there is an example already with a concept_datatype that does a precondition to check to make sure it doesn't exist
16:07:26 <upul> bwolfe: thanks
16:07:30 <bwolfe> np
16:17:00 *** catechu has quit IRC
16:20:26 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8822]: schedulerquartz: No need for these sample classes now. used just for … <http://dev.openmrs.org/changeset/8822> || OpenMRS Changesets: Changeset [8821]: schedulerquartz: bug fixes on the schedules. Added IsCronExpressionValid … <http://dev.openmrs.org/changeset/8821>
16:22:58 <nribeka> jmiranda, how do i get the username and password for the logicws module?
16:24:57 <jmiranda> nribeka, sorry i'm not sure which username/password you're referring to
16:25:22 *** catechu has joined #openmrs
16:25:32 <jmiranda> in order to use the logicws, you just need a regular openmrs username/password
16:26:30 <nribeka> tried it. not working
16:26:49 <nribeka> when i click the button, it gives me a dialog asking for username and password
16:27:10 <jmiranda> i haven't used logicws in awhile
16:27:14 <jmiranda> refresh my memory
16:27:18 <jmiranda> you've deployed it?
16:27:27 <jmiranda> and you are trying to run a query?
16:27:37 <nribeka> i deployed it
16:27:52 <nribeka> yes, i'm trying to get all the tokens and token tags
16:28:05 <nribeka> if you're busy i can dig in myself jmiranda
16:28:41 <jmiranda> i can take a look with you
16:28:57 <jmiranda> you've compiled from code?
16:30:08 <nribeka> yes
16:32:49 *** atomicturtle has joined #openmrs
16:33:01 *** atomicturtle has left #openmrs
16:34:34 <jmiranda> nribeka, it worked for me
16:35:03 <jmiranda> i just entered the username/password that i used to login into my local instance of openmrs
16:35:11 <jmiranda> what's the error you're seeing?
16:37:21 <nribeka> hm ...
16:37:25 <nribeka> nothing here
16:37:30 <nribeka> hold on jmiranda
16:37:43 <jmiranda> you might not be getting data back
16:38:10 <nribeka> the dialog keeps on poping
16:38:27 <nribeka> A username and password are being requested by http://localhost:8080. The site says: "OpenMRS Rest API"
16:40:07 <jmiranda> yeah, i know what the problem is
16:40:14 <jmiranda> give me one sec
16:40:38 <nribeka> ok ok
16:40:57 <jmiranda> check the global property table for a variable "logic_ws.allow_ip_list"
16:41:05 <jmiranda> it should have a value of 127.0.0.1
16:41:12 <jmiranda> if it doesn't, then add it
16:41:53 <jmiranda> nribeka, and if your user is not a System Developer
16:42:06 <jmiranda> then you need to add the "Access Logic Web Service API" privilege to your role
16:42:43 <jmiranda> let me know if that works
16:42:59 <jmiranda> i'll be back in about 20 minutes
16:43:03 *** jmiranda has quit IRC
16:45:59 <nribeka> nope jmiranda
16:46:02 <nribeka> not working
17:08:00 <nribeka> authHeader = null + remoteAddress = 0:0:0:0:0:0:0:1
17:08:28 *** jmiranda has joined #openmrs
17:08:28 *** ChanServ sets mode: +o jmiranda
17:09:55 *** Keelhaul has joined #openmrs
17:09:55 *** ChanServ sets mode: +v Keelhaul
17:29:07 *** catechu has quit IRC
17:39:58 <jmiranda> nribeka, did that work for you?
17:40:07 *** catechu has joined #openmrs
17:41:04 <catechu> james_regen: if I want to display errors on the page itself (e.g. the red panel that appears on loading the patient matching module when 'linkagetable' already exists), how do I do that?
17:42:39 <nribeka> nope jmiranda
17:42:51 <nribeka> authHeader = null + remoteAddress = 0:0:0:0:0:0:0:1
17:42:54 <nribeka> this is what i got
17:44:28 <nribeka> catechu: you can try use the class error of the openmrs css
17:44:33 <nribeka> i hope that's what you mean
17:44:51 <Keelhaul> ipv6?
17:45:11 <catechu> nribeka: thanks, that's part of it -- is there also a standard way to catch and display the error on the page?
17:45:24 <jmiranda> nribeka, what do you mean?
17:45:29 <jmiranda> that was the error message?
17:50:49 <nribeka> the servlet check for header and compare it with the database right jmiranda
17:51:09 <nribeka> the header for authorization = null
17:51:14 *** kane77 has joined #openmrs
17:51:41 <jmiranda> yeah, check the RestServlet class
17:53:36 <nribeka> ok
17:54:01 <nribeka> catechu: catch error? i'm not following you
17:56:37 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8824]: -- sockethl7listener * added support for hl7 filters <http://dev.openmrs.org/changeset/8824> || OpenMRS Changesets: Changeset [8823]: ncd: Removed "connActive = false" from Exception handler because some NCD … <http://dev.openmrs.org/changeset/8823>
17:57:22 <james_regen> catechu: sorry, just noticed my icon blinking. i'm not really sure how to do that. nribeka would be much more likely to know than me
17:58:07 <catechu> james_regen: ok, thanks
18:05:59 <r0bby> catechu: you'd use a validator
18:06:32 <catechu> ok
18:06:35 <r0bby> assuming you want validation errors to appear next tgo fields
18:10:14 <r0bby> oh my god
18:10:29 <r0bby> the spring tutorial is using harry potter as examples!
18:10:52 <upul> nice
18:11:01 <bwolfe> not nice
18:11:11 <upul> fantastic
18:11:13 <james_regen> do the examples get progressively more mature and dark as the tutorial continues?
18:11:14 <nribeka> cool
18:11:14 <bwolfe> they should use something more geeky
18:11:25 <nribeka> use transformer
18:14:54 <bwolfe> ugh. something less eighties. :-p
18:22:32 *** jacobb has quit IRC
18:25:14 *** jacobb has joined #openmrs
18:29:29 *** catechu has quit IRC
18:35:39 *** sdefabbiakane has joined #openmrs
18:38:00 *** upul has quit IRC
18:41:48 *** jmiranda has quit IRC
18:50:05 *** jmiranda has joined #openmrs
18:50:05 *** ChanServ sets mode: +o jmiranda
18:55:03 <r0bby> the tutorial i used last night
18:55:08 <r0bby> used Politicians
18:55:19 <r0bby> and the way they named the collection waas just priceless
18:55:25 <r0bby> "lazyPoliciticans"
18:55:26 <r0bby> :)
19:00:48 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8825]: -- chica * added location_tag and location_tag_attribute tables * added … <http://dev.openmrs.org/changeset/8825>
19:29:54 <r0bby> I shoulda implemented the Strategy pattern :X
19:32:49 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8826]: mdrtb module: svn:ignore the build directory <http://dev.openmrs.org/changeset/8826>
19:47:21 *** atomicturtle has joined #openmrs
19:53:11 *** jmiranda has quit IRC
20:01:51 <r0bby> is it a bad idea to use instance fields on spring controllers?
20:01:53 <r0bby> :X
20:02:01 <bwolfe> terrible idea
20:02:04 <r0bby> im trying to figure out how to reload values entered for questions
20:02:13 <bwolfe> r0bby: mainly because controllers are reused
20:02:19 <r0bby> That's what I feared
20:02:42 <bwolfe> r0bby: make your model object hold them
20:03:03 <r0bby> yeh im gonna make a form backing object
20:03:07 <bwolfe> r0bby: theres a ExandingList or something like that to facilitate spring adding/removing the lsi
20:03:08 <bwolfe> t items
20:03:12 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8827]: schedulerquartz: modified disabling and enabling repeat radio button … <http://dev.openmrs.org/changeset/8827>
20:10:03 *** atomicturtle has left #openmrs
20:30:04 *** james_regen has quit IRC
20:30:17 *** nribeka has quit IRC
20:31:08 <r0bby> bwolfe: that issue i have was having w/ instanceof -- Class.isAssignableFrom() didn't help either.
20:31:32 <r0bby> I may implement it using the strategy pattern when it's not gonna hold me back
20:31:43 <r0bby> so that other modules can take advantage of it :)
20:31:56 <bwolfe> r0bby: odd, it should have worked. are you sure you had the right class on the correct side of the isAssignableFrom ?
20:34:56 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8828]: 1.4.x: Fixed ConceptWordUpdateTask to actually finish successfully - #1561 <http://dev.openmrs.org/changeset/8828>
20:46:16 <r0bby> perhaps not :X
20:46:39 <r0bby> i did question.isAssignableFrom(FacilityDataQuestion.class);
20:46:48 <r0bby> question.getClass() rather
20:46:58 <r0bby> but in either regard i wrote code that works
20:49:00 <r0bby> hold up I have the the data!
20:50:42 <bwolfe> r0bby: in trunk isAssignableFrom is used the opposite way: Timestamp.class.isAssignableFrom(otherClazz);
20:50:49 <r0bby> hrm
20:51:13 <r0bby> Well i'm not gonna muck with what works
20:51:20 <r0bby> At some point i'll rip it out
20:51:31 <r0bby> but right now, if it works ship it is my mindset
20:51:59 <r0bby> does the order really matter?
20:52:20 <r0bby> it should be transitive (at least in my mind)
20:53:44 <r0bby> I wound up implementing the visitor pattern which works amazingly well
20:54:00 <r0bby> but is *NOT* extensible *AT ALL*
20:54:11 <r0bby> which is odd since it's an OO design pattern!
20:58:55 <bwolfe> r0bby: how is it transitive?? "Dog" extends "Animal". A "Dog" is always an Animal but an Animal is not always a Dog. Therefore, isAssignableFrom only works as parentClass.isAssignableFrom(childClass);
21:01:21 <r0bby> ahh
21:01:21 <r0bby> ALLL
21:01:21 <r0bby> bwolfe: smack me please
21:03:55 <r0bby> !learn smack as *smack!*
21:03:56 <OpenMRSBot> r0bby: The operation succeeded.
21:03:59 <r0bby> !smack
21:03:59 <OpenMRSBot> r0bby: "smack" --- *smack!*
21:04:04 <r0bby> thats!
21:04:37 <r0bby> thanks
21:06:59 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: forwarding from a servlet. <http://forum.openmrs.org/viewtopic.php?f=8&t=471#p1709> || OpenMRS Tickets: Ticket #1561 (defect closed): Update concept word is failing in 1.4.x-latest (1.4.2+) <http://dev.openmrs.org/ticket/1561#comment:1> || OpenMRS Changesets: Changeset [8831]: Fixed ConceptWordUpdateTask to actually finish successfully - #1561 <http://dev.openmrs.org/changeset/8831> || OpenMRS Changesets: Changeset [8830]: 1.5.x: Fixed ConceptWordUpdateTask to actually finish successfully - #1561 <http://dev.openmrs.org/changeset/8830> || OpenMRS Changesets: Changeset [8829]: Changed PersonAttributeType.sortWeight to a Double - #530 Fixed unit test … <http://dev.openmrs.org/changeset/8829>
21:21:22 *** sdefabbiakane has quit IRC
21:27:07 *** nribeka has joined #openmrs
21:27:07 *** ChanServ sets mode: +v nribeka
21:28:10 <r0bby> nribeka !!!!!
21:28:12 <r0bby> run
21:28:46 <nribeka> eh ... why run r0bby :)
21:32:44 <r0bby> because im here?
21:37:35 *** Keelhaul has quit IRC
21:57:24 *** jmiranda has joined #openmrs
21:57:24 *** ChanServ sets mode: +o jmiranda
22:14:48 *** bmckown has quit IRC
22:39:19 *** kane77 has quit IRC
22:56:29 <r0bby> in nested foreach loops can you get the variable from the outer loop?
22:56:52 <r0bby> in JSTL
22:57:09 <r0bby> nvm
23:29:06 <nribeka> hi bwolfe
23:29:24 <bwolfe> hi nribeka
23:29:28 <nribeka> cya tomorrow :P
23:29:30 <nribeka> hahahahaha ...
  • No labels