uPortal IRC Logs-2008-02-26

[09:04:44 EST(-0500)] * jayshao (n=jayshao@campuseai.expedient.com) has joined ##uportal
[09:26:53 EST(-0500)] * anastasiac (n=anastasi@142.150.154.149) has joined ##uportal
[09:38:32 EST(-0500)] * EricDalquist (n=dalquist@bohemia.doit.wisc.edu) has joined ##uportal
[09:44:16 EST(-0500)] * theclown (n=clown@142.150.154.101) has joined ##uportal
[10:02:58 EST(-0500)] * dstn (n=dstn@unaffiliated/dstn) has joined ##uportal
[10:07:40 EST(-0500)] * athena7 (n=athena7@lumina.its.yale.edu) has joined ##uportal
[10:15:52 EST(-0500)] <athena7> what do i need to do to get the quickstart up and running?
[10:15:59 EST(-0500)] <athena7> just run ant initportal or something?
[10:16:02 EST(-0500)] <EricDalquist> to build a new one?
[10:16:08 EST(-0500)] <EricDalquist> or to use an existing one?
[10:16:12 EST(-0500)] <athena7> an existing one
[10:16:20 EST(-0500)] <EricDalquist> read the readme (wink)
[10:16:48 EST(-0500)] <athena7> i did!
[10:16:53 EST(-0500)] <EricDalquist> lol
[10:16:54 EST(-0500)] <athena7> i'm a little confused though
[10:16:55 EST(-0500)] <EricDalquist> that's not good
[10:17:02 EST(-0500)] <athena7> it includes tomcat, right?
[10:17:04 EST(-0500)] <EricDalquist> sounds like I need to fi it up
[10:17:07 EST(-0500)] <EricDalquist> it includes everything
[10:17:13 EST(-0500)] <EricDalquist> all you need to do is run 'ant start'
[10:17:19 EST(-0500)] <athena7> oh
[10:17:28 EST(-0500)] <EricDalquist> in the base quickstart directory
[10:17:32 EST(-0500)] <athena7> from reading the readme i was wondering if i needed to configure the tomcat location or some such
[10:18:18 EST(-0500)] <EricDalquist> can you point to a specific part of the readme that was confusing?
[10:18:58 EST(-0500)] <athena7> it doesn't even seem to refer to the ant start command? it says i need to run initportal and things
[10:19:33 EST(-0500)] <EricDalquist> hrm, it does but it uses them as headers
[10:19:42 EST(-0500)] <EricDalquist> perhaps that is a problem
[10:19:52 EST(-0500)] <EricDalquist> lines 35 & 39
[10:19:54 EST(-0500)] <athena7> headers?
[10:20:14 EST(-0500)] <EricDalquist> just the formatting in the readme
[10:20:25 EST(-0500)] <athena7> i'm wondering if we're looking at the same thing
[10:20:34 EST(-0500)] <EricDalquist> yeah ...
[10:20:40 EST(-0500)] <athena7> i grep'd the file for the word "start" and it's not there
[10:20:42 EST(-0500)] <athena7> hm.
[10:20:48 EST(-0500)] <EricDalquist> you're talking one of the 3.0 RC2 quickstarts I posted?
[10:20:51 EST(-0500)] <athena7> yeah
[10:20:56 EST(-0500)] <EricDalquist> there should be a README.txt in the root directory of the quickstart
[10:21:21 EST(-0500)] <athena7> there's a README with no extensions
[10:21:34 EST(-0500)] <EricDalquist> and it should look like: https://www.ja-sig.org/svn/up2/trunk/assembly/quickstart/README.txt
[10:21:46 EST(-0500)] <athena7> ok, totally not the same thing
[10:22:00 EST(-0500)] <EricDalquist> hrm
[10:22:15 EST(-0500)] <EricDalquist> which specific quickstart are you using?
[10:22:16 EST(-0500)] <athena7> actually, you know, this looks like it's maybe just the uportal maven project?
[10:22:20 EST(-0500)] <EricDalquist> trunk/theme
[10:22:27 EST(-0500)] <athena7> https://mywebspace.wisc.edu/dalquist/web/JA-SIG/uPortal/uPortal-3.0.0-RC2-SNAPSHOT-quick-start/uPortal-3.0.0-RC2-SNAPSHOT-quick-start.tar.gz
[10:22:30 EST(-0500)] <athena7> trunk
[10:22:37 EST(-0500)] <athena7> non-dev
[10:23:04 EST(-0500)] <EricDalquist> hrm, looking now ...
[10:23:46 EST(-0500)] <EricDalquist> I just downloaded the file for the link you posted
[10:23:54 EST(-0500)] <EricDalquist> it has a README.txt in the root directory of the archive
[10:24:10 EST(-0500)] <EricDalquist> and it matches the svn link I posted
[10:24:44 EST(-0500)] <EricDalquist> ahhh
[10:24:53 EST(-0500)] <EricDalquist> so there is a README in the uPortal sub-directory
[10:24:56 EST(-0500)] <EricDalquist> that is specific to uPortal
[10:25:36 EST(-0500)] <athena7> ah ok, i may have wound up in a subfolder then
[10:26:13 EST(-0500)] <athena7> ok!
[10:26:13 EST(-0500)] <athena7> yes
[10:26:16 EST(-0500)] <EricDalquist> yeah so if you extract that tar.gz in the root directory there is a README and some ant.sh/and.bat scripts
[10:26:16 EST(-0500)] <athena7> that is what happened
[10:26:41 EST(-0500)] <athena7> i didn't realize that when i expanded the file it dropped everything in the current directory, rather than in one consolidated folder
[10:26:44 EST(-0500)] <athena7> thanks
[10:26:47 EST(-0500)] <EricDalquist> perhaps I should add something to the uPortal specific readme stating that it is not for the quickstart
[10:26:47 EST(-0500)] <athena7> i see where i am now
[10:26:48 EST(-0500)] <EricDalquist> ah
[10:26:49 EST(-0500)] <EricDalquist> yeah
[10:26:50 EST(-0500)] <EricDalquist> hrm
[10:26:55 EST(-0500)] <EricDalquist> I should fix that in the packaging
[10:27:14 EST(-0500)] <athena7> now i just have to deal with the problem that this server has ant 1.7.0
[10:27:18 EST(-0500)] <athena7> grr
[10:27:20 EST(-0500)] <EricDalquist> :/
[10:27:24 EST(-0500)] <athena7> (smile)
[10:27:26 EST(-0500)] <EricDalquist> yeah it is really annoying
[10:27:36 EST(-0500)] <EricDalquist> and it has been over a YEAR since 1.7.0 was released
[10:27:39 EST(-0500)] <athena7> i'll just download it and put it in my home directory for now i guess
[10:27:47 EST(-0500)] <athena7> it's harder when it's not my machine
[10:27:49 EST(-0500)] <EricDalquist> as soon as 1.7.1 comes out the bug will be fixed and people can use that
[10:27:54 EST(-0500)] <athena7> yeah
[10:27:58 EST(-0500)] <EricDalquist> well the quickstart comes with ant
[10:28:04 EST(-0500)] <athena7> oh!
[10:28:06 EST(-0500)] <athena7> even better
[10:28:12 EST(-0500)] <EricDalquist> and maven
[10:28:14 EST(-0500)] <athena7> that's so convenient (smile)
[10:28:14 EST(-0500)] <EricDalquist> and tomcat
[10:28:17 EST(-0500)] <EricDalquist> ant hsql
[10:28:25 EST(-0500)] <EricDalquist> and it is all deployed
[10:28:31 EST(-0500)] <EricDalquist> if you run 'ant.sh start'
[10:28:35 EST(-0500)] <EricDalquist> you get a running quickstart
[10:28:37 EST(-0500)] <athena7> just did
[10:28:39 EST(-0500)] <EricDalquist> 'ant.sh stop' stops it
[10:28:57 EST(-0500)] <EricDalquist> it should find the QS ant over one installed on the OS
[10:29:42 EST(-0500)] <athena7> yep
[10:29:53 EST(-0500)] <athena7> ok, now i'll just have to do some configuration magic
[10:30:05 EST(-0500)] <athena7> i'm trying to get the quickstart up on our department server so i can do some cas testing
[10:30:14 EST(-0500)] <EricDalquist> ah fun
[10:30:21 EST(-0500)] <EricDalquist> the included uportal is setup to deploy to the included tomcat
[10:30:36 EST(-0500)] <athena7> yeah
[10:30:46 EST(-0500)] <athena7> i figured that would be easier than starting everything up from scratch
[10:30:55 EST(-0500)] <EricDalquist> but 'mvn clean' has been run on it (to reduce the download size) so the first time you run a uPortal ant command it will take a bit to compile everything
[10:31:11 EST(-0500)] <athena7> ok
[10:31:22 EST(-0500)] <athena7> will i be able to run deployPortletApp from it?
[10:31:28 EST(-0500)] <EricDalquist> yup
[10:31:37 EST(-0500)] <athena7> great, i think this should be perfect
[10:31:39 EST(-0500)] <athena7> thanks (smile)
[10:31:46 EST(-0500)] <EricDalquist> and it uses the maven instance included in the QS
[10:32:52 EST(-0500)] <EricDalquist> oh I meant to ask ... I'm going to look at porting the cernunnos work you and Drew did last week into the trunk, unless either of you are planning on doing that this week
[10:36:51 EST(-0500)] <athena7> that would be fantastic
[10:37:08 EST(-0500)] <athena7> the stuff i committed should be exactly the same in up3
[10:37:28 EST(-0500)] <athena7> so i think as long as all the new jars are there, it can just be copied over
[10:37:50 EST(-0500)] <athena7> the portlet preferences stuff drew was working on of course is different in up3
[10:38:02 EST(-0500)] <EricDalquist> yup
[10:38:12 EST(-0500)] <EricDalquist> and he and I have chatted about that already
[10:38:39 EST(-0500)] <athena7> i figured (smile)
[10:47:23 EST(-0500)] <athena7> heeeeeey there we go!
[10:47:31 EST(-0500)] <EricDalquist> working?
[10:47:34 EST(-0500)] <athena7> yep!
[10:47:35 EST(-0500)] <athena7> thanks
[10:47:36 EST(-0500)] <athena7> this is great
[10:47:47 EST(-0500)] <athena7> now i'll just need to casify it
[10:47:48 EST(-0500)] <EricDalquist> (smile)
[10:49:59 EST(-0500)] <athena7> so is it possible to recompile the code in the quickstart if i want?
[10:50:06 EST(-0500)] <EricDalquist> yup
[10:50:23 EST(-0500)] <EricDalquist> all the expected ant tasks work in the uPortal sub directory
[10:50:33 EST(-0500)] <athena7> so just run ant deploy-war and then start again?
[10:50:41 EST(-0500)] <EricDalquist> yup
[10:50:44 EST(-0500)] <athena7> wow
[10:50:47 EST(-0500)] <athena7> this is so cool
[10:50:52 EST(-0500)] <EricDalquist> (smile)
[10:50:56 EST(-0500)] <EricDalquist> the -dev version is even neater
[10:51:06 EST(-0500)] <athena7> yeah i want to play with that one too
[10:51:09 EST(-0500)] <EricDalquist> since all the svn commands will work in the uPortal sub directory too
[10:51:13 EST(-0500)] <athena7> yeah
[10:51:15 EST(-0500)] <EricDalquist> that is the only difference
[10:53:53 EST(-0500)] <athena7> i'm really just so excited about the dev version
[10:54:04 EST(-0500)] <EricDalquist> (smile)
[10:54:07 EST(-0500)] <athena7> i think it'll be really helpful
[10:54:43 EST(-0500)] <EricDalquist> yeah
[10:54:48 EST(-0500)] <athena7> i'd assume that once yale upgrades to up3 we could make yale quickstarts
[10:54:52 EST(-0500)] <EricDalquist> yup
[10:55:02 EST(-0500)] <athena7> and maybe be able to see if our designers find them useful
[10:55:04 EST(-0500)] <athena7> pretty cool
[10:55:10 EST(-0500)] <EricDalquist> shoot, I just remembered a presentation I wanted to do for the conference :/
[10:55:11 EST(-0500)] <athena7> and it's also good for stuff like i'm doing now, too
[10:55:17 EST(-0500)] <athena7> oh (smile)
[10:56:21 EST(-0500)] <EricDalquist> though it may be better to wait until the next one since it is just an idea so far
[10:56:30 EST(-0500)] <EricDalquist> we've been talking about how to use maven for our build process
[10:56:35 EST(-0500)] <EricDalquist> and dealing with multiple environments
[10:56:45 EST(-0500)] <athena7> actually that's something i'd been meaning to ask about
[10:56:50 EST(-0500)] <EricDalquist> and I think we have some very promising ideas using the WAR overlay feature of maven
[10:57:07 EST(-0500)] <athena7> as well as how we'll deploy things in production - we've always used wars, but the portlet deploy task generates a folder
[10:57:07 EST(-0500)] <EricDalquist> uP3 already uses this feature for pulling in the portlets it depends on
[10:57:18 EST(-0500)] <EricDalquist> well that is an option now
[10:57:22 EST(-0500)] <athena7> ah ok
[10:57:27 EST(-0500)] <athena7> that sounds really interesting
[10:57:32 EST(-0500)] <EricDalquist> take a look at the end of build.properties
[10:57:42 EST(-0500)] <EricDalquist> there are two options regarding how to deploy WARs
[10:57:45 EST(-0500)] <EricDalquist> yeah
[10:57:52 EST(-0500)] <athena7> if you don't present on it, maybe i can buy you a drink and you can talk about it then? (smile)
[10:57:53 EST(-0500)] <EricDalquist> the idea is you setup a local maven repository
[10:58:02 EST(-0500)] <EricDalquist> I think I might do something on Wednesay about it
[10:58:07 EST(-0500)] <EricDalquist> a bit less formal type of thing
[10:58:10 EST(-0500)] <athena7> that's be wonderful
[10:58:14 EST(-0500)] <EricDalquist> since I won't have any working examples by then
[10:58:16 EST(-0500)] <EricDalquist> but lots of ideas
[10:58:21 EST(-0500)] <athena7> that's actually been one of the things i've been wondering about moving forward
[10:58:51 EST(-0500)] <EricDalquist> so with a local repo you then build environment agnostic portlet WAR artifacts and stick them in the repo
[10:59:11 EST(-0500)] <EricDalquist> then you have a maven project per environment that is very skeleton-ish
[10:59:26 EST(-0500)] <EricDalquist> like imagine the up3 project but with only the -ear and portlet-overlay modules
[10:59:42 EST(-0500)] <EricDalquist> all the actual code would be getting pulled in from the local maven repo
[10:59:57 EST(-0500)] <EricDalquist> you can provide environment specific config files in this skeleton
[11:00:28 EST(-0500)] <EricDalquist> and the overlay feature of maven takes the generic WARs form the repo, expands them, sticks the environment specific files on top and re-packages them
[11:01:08 EST(-0500)] <EricDalquist> for us this would be great as we could really separate environment specific config, which contains sensitive info many times, from application code that developers work with
[11:01:46 EST(-0500)] <athena7> yeah
[11:01:48 EST(-0500)] <athena7> that would be great
[11:02:28 EST(-0500)] <EricDalquist> plus for us where we have other groups developing portlet code
[11:02:34 EST(-0500)] <EricDalquist> we don't have to compile their stuff any more
[11:02:43 EST(-0500)] <EricDalquist> they can just provide pre-compiled maven artifacts
[11:03:00 EST(-0500)] <EricDalquist> and there are packages like artifactory which provide a nice webui in front of a maven repo
[11:03:07 EST(-0500)] <EricDalquist> so people don't even need to use maven to build their projects
[11:03:12 EST(-0500)] <athena7> sounds nice
[11:03:15 EST(-0500)] <EricDalquist> they can upload them to the maven repo through the webui
[11:03:16 EST(-0500)] <EricDalquist> yeah
[11:03:19 EST(-0500)] <EricDalquist> all ideas right now
[11:03:23 EST(-0500)] <athena7> we don't have any local maven projects yet
[11:03:23 EST(-0500)] <EricDalquist> nothing actual to demo
[11:03:32 EST(-0500)] <athena7> but i'd like to get our code in line with jasig soon
[11:03:45 EST(-0500)] <athena7> particularly since the calendar and feedback portlets are using maven in the jasig version
[11:03:49 EST(-0500)] <athena7> i don't want ours to get out of sync
[11:04:06 EST(-0500)] <EricDalquist> yeah, we don't use maven at all either
[11:04:17 EST(-0500)] <EricDalquist> and our initial move to up3 will only use it indirectly
[11:04:31 EST(-0500)] <EricDalquist> the ant scripts will be the primary way our build process interacts with up3
[11:05:58 EST(-0500)] <athena7> yeah
[11:36:53 EST(-0500)] * awills (n=awills@uni1.unicon.net) has joined ##uportal
[11:37:09 EST(-0500)] <awills> you there EricDalquist?
[11:37:45 EST(-0500)] <EricDalquist> yup
[11:39:41 EST(-0500)] <awills> hey there... today i can put the changes to Import/Export that were committed to 2.6 last week into 3.0
[11:41:04 EST(-0500)] <awills> i have them 1/2 ready; I'm hoping to do that plus the adjustment to portlet publishing
[11:41:06 EST(-0500)] <athena7> hey, i think proxy cas is working
[11:41:30 EST(-0500)] <awills> well congrats
[11:41:56 EST(-0500)] <EricDalquist> awills: great!
[11:42:04 EST(-0500)] <EricDalquist> do you need a hand with anything?
[11:42:19 EST(-0500)] <athena7> that'll be great to have all that import/export stuff in up3
[11:42:20 EST(-0500)] <athena7> yea (smile)
[11:42:28 EST(-0500)] <awills> only the change to portlet entity prefs API as discussed
[11:42:40 EST(-0500)] <EricDalquist> ok
[11:42:59 EST(-0500)] <EricDalquist> is that something you'll be waiting on me for or should I wait for you to commit the scripts then I can go in an tweak them?
[11:43:28 EST(-0500)] <awills> probably best if i go first
[11:43:32 EST(-0500)] <EricDalquist> ok
[11:44:19 EST(-0500)] <awills> that's basicaly why i wanted to catch you this morning... to say I'm on it (wink)
[11:44:30 EST(-0500)] <EricDalquist> cool
[11:44:39 EST(-0500)] <EricDalquist> I'll work on other things
[11:44:57 EST(-0500)] <EricDalquist> athena7: from that last email you sent it sounds like you're pretty much done with your part of the work on the new theme?
[11:48:51 EST(-0500)] <athena7> yes
[11:48:54 EST(-0500)] <athena7> pretty much
[11:49:06 EST(-0500)] <athena7> i realized yesterday morning that the flyout menus didn't work in IE
[11:49:17 EST(-0500)] <athena7> which kind of made me want to drop my computer out the window
[11:49:24 EST(-0500)] <EricDalquist> cool, well I'll ping Gary and check on his status then
[11:49:28 EST(-0500)] <athena7> but i got them working in both IE and firefox last night
[11:49:30 EST(-0500)] <athena7> yeah
[11:49:30 EST(-0500)] <EricDalquist> we're getting very close to the RC now
[11:49:33 EST(-0500)] <EricDalquist> nice
[11:49:34 EST(-0500)] <athena7> great (smile)
[11:49:38 EST(-0500)] <athena7> the theme looks really nice
[11:49:47 EST(-0500)] <athena7> gary added all sorts of nice and helpful graphics
[11:49:48 EST(-0500)] <athena7> i'm a fan
[11:50:10 EST(-0500)] <EricDalquist> cool
[11:50:11 EST(-0500)] <athena7> so i really only have one piece that's not finished, and it's not really for technical reasons
[11:50:14 EST(-0500)] <EricDalquist> I haven't seen it since his work
[11:50:22 EST(-0500)] <athena7> i was going to email gary today and ask his opinion
[11:50:38 EST(-0500)] <athena7> he added some really nice stuff
[11:52:19 EST(-0500)] <athena7> i don't know what's going on with my machine at the moment, but it seems to have slowed to a crawl
[11:52:26 EST(-0500)] <athena7> i'm going to try a reboot
[11:52:27 EST(-0500)] <athena7> brb
[11:56:57 EST(-0500)] * jayshao_ (n=jayshao@campuseai.expedient.com) has joined ##uportal
[12:05:43 EST(-0500)] * athena7 (n=athena7@lumina.its.yale.edu) has joined ##uportal
[12:15:25 EST(-0500)] <EricDalquist> athena7: would it be ok if I deleted all the old structure/theme/skin files from the theme branch?
[12:15:31 EST(-0500)] <athena7> yes!
[12:15:39 EST(-0500)] <athena7> i'd actually been meaning to ask about that
[12:15:49 EST(-0500)] <athena7> i assume we just want to delete the xhtml-theme?
[12:15:53 EST(-0500)] <EricDalquist> hrm ... actually I might wait until after I merge the branch back to the trunk
[12:15:59 EST(-0500)] <EricDalquist> make the merge a little less chaotic
[12:16:02 EST(-0500)] <athena7> yeah i was wondering about that too
[12:16:21 EST(-0500)] <athena7> oh, also, i needed to ask about the theme parameters
[12:16:39 EST(-0500)] <athena7> i'm not sure if it really makes sense to have the use_ajax flag come from portal.properties
[12:16:52 EST(-0500)] <athena7> since it's tied to one specific theme
[12:17:32 EST(-0500)] <EricDalquist> true
[12:17:35 EST(-0500)] <athena7> all the other theme options are defined in the theme as xsl parameters - it sort of feels like the ajax flag should be treated the same way as the left menu/top menu, flyout menu, etc. options
[12:19:03 EST(-0500)] <EricDalquist> that would make sense to me
[12:20:22 EST(-0500)] <athena7> ok
[12:20:37 EST(-0500)] <athena7> the authenticated variable is done
[12:20:57 EST(-0500)] <athena7> i'm hesitant to change baseActionURL to BASE_ACTION_URL, just because it's used that way in so many other places
[12:21:36 EST(-0500)] <athena7> i'm thinking maybe we can just define a variable BASE_ACTION_URL in the theme that gets set to the value of baseActionURL
[12:21:36 EST(-0500)] <EricDalquist> yeah
[12:21:39 EST(-0500)] <EricDalquist> that could be bad
[12:21:48 EST(-0500)] <athena7> then we can use something in the theme that looks like a variable
[12:21:56 EST(-0500)] <athena7> but we won't be out of step with the rest of the code
[12:22:45 EST(-0500)] * jayshao (n=jayshao@campuseai.expedient.com) has joined ##uportal
[12:23:07 EST(-0500)] <EricDalquist> that sounds good
[12:23:16 EST(-0500)] <athena7> ok
[12:30:13 EST(-0500)] <athena7> do we want to consider turning ajax preferences on by default?
[12:34:46 EST(-0500)] <EricDalquist> yes
[12:35:43 EST(-0500)] <athena7> ok, sounds great
[12:35:56 EST(-0500)] <athena7> maybe we can enable it at least for the RC, and then drop back if it looks like there are problems?
[12:37:24 EST(-0500)] <EricDalquist> yup
[12:37:41 EST(-0500)] <athena7> ok, sounds good
[12:52:26 EST(-0500)] * jayshao (n=jayshao@campuseai.expedient.com) has joined ##uportal
[12:52:29 EST(-0500)] <awills> athena7 I think you can close UP-1899 now. (smile)
[12:52:36 EST(-0500)] <athena7> yea!
[12:53:38 EST(-0500)] <awills> just committed all files forr that, as well as 1917
[12:53:45 EST(-0500)] <athena7> fantastic (smile)
[12:55:34 EST(-0500)] <awills> only UP-1937 remains... that's spliting the portletDefinitionId into 2 for uP3
[13:03:09 EST(-0500)] <athena7> ok, i think the ajax theme stuff is all finished
[13:03:32 EST(-0500)] <athena7> with the possible exception of tab editing when the menu's set to the left hand side
[13:04:09 EST(-0500)] <athena7> off to find lunch
[13:17:22 EST(-0500)] <EricDalquist> hey awills
[13:17:31 EST(-0500)] <EricDalquist> I'm looking at the -preferences.crn scripts
[13:18:00 EST(-0500)] <EricDalquist> since they are sourced from -layout scripts will I need to create _V3.0 versions of the layout scripts as well?
[14:20:34 EST(-0500)] * jayshao_ (n=jayshao@campuseai.expedient.com) has joined ##uportal
[14:21:22 EST(-0500)] * jayshao (n=jayshao@campuseai.expedient.com) has joined ##uportal
[14:41:53 EST(-0500)] <awills> no EricDalquist, you won't need to version the import-preferences XML
[14:42:01 EST(-0500)] <awills> for the redason you gave
[14:42:26 EST(-0500)] <EricDalquist> I guess I'm not sure where to start on getting the preferences import/export working with 3.0
[14:43:06 EST(-0500)] <awills> what's the API entry point again? what class?
[14:43:29 EST(-0500)] <EricDalquist> so store portlet entity preferences ....
[14:44:05 EST(-0500)] <EricDalquist> we would need to determine the IPortletEntity for the specified channel
[14:44:21 EST(-0500)] <EricDalquist> which is done using the channel subscribe id & user id
[14:45:08 EST(-0500)] <EricDalquist> IPortletEntityDao.createPortletEntity(IPortletDefinitionId, String chanSubscribeId, int userId)
[14:45:38 EST(-0500)] <EricDalquist> and then add the preferences to that object and then use IPortletEntityDao.updatePortletEntity to save the changes
[14:46:08 EST(-0500)] <EricDalquist> so now we're into Cernunnos scripts needing to load up the portal application context to get at these DAOs
[14:46:40 EST(-0500)] <awills> does the chanSubscribeId still looks like u103l1n45 for fragment entities? or is it just n45 b/c you have a separate parameter for userId?
[14:47:14 EST(-0500)] <EricDalquist> um, I'm guessing it looks like u103l1n45
[14:47:33 EST(-0500)] <EricDalquist> since the portlet adaptor channel just uses the subscribe ID provided in the channel data
[14:47:48 EST(-0500)] <EricDalquist> I'll work on double checking that
[14:47:54 EST(-0500)] <awills> that makes sense i bet... b/c the userId is probably the actual userId, even if the entity comes from a fragment
[14:48:01 EST(-0500)] <EricDalquist> yup
[14:49:32 EST(-0500)] <awills> will the portal app context get loaded automatically when you start to use certain APIs? or does it need to be loaded by the normal spring <listener>?
[14:49:47 EST(-0500)] <EricDalquist> PortalApplicationContextLocator.getApplicationContext() is what would be used to get the Spring context
[14:50:04 EST(-0500)] <EricDalquist> that will use an existing context if loaded or load it up
[14:50:11 EST(-0500)] <awills> k... that's cool
[14:52:32 EST(-0500)] <awills> basically both the export-preferences & import-preferences XML need to be redone w/ the API, but the XML schema in the documents doesn't need to change, afaik
[14:53:39 EST(-0500)] <awills> you can usue the limited-layout.crn file to get a subsribeId from a string like 'admin:/layout/root/tab[2]/column[1]/channel[3]'
[14:54:00 EST(-0500)] <EricDalquist> ok
[14:54:24 EST(-0500)] <EricDalquist> how do I call APIs from a crn script? Do I write a custom bit of java code?
[14:54:35 EST(-0500)] <awills> you get an Element representing the admin layout, then just call selectSingleNode()
[14:54:40 EST(-0500)] <awills> you don't have to...
[14:55:09 EST(-0500)] <awills> you can use either <invoke-method> or just write some groovy expressions in-line
[14:55:30 EST(-0500)]

<awills> $

Unknown macro: {newInstance}

is another one


[14:55:31 EST(-0500)] <EricDalquist> I guess are there other scripts you can point me to that would be good examples for taking the XML data and making API calls based on it?
[14:55:45 EST(-0500)] <awills> import-channel.crn
[14:57:28 EST(-0500)] <EricDalquist> random question ... are these scripts transactional at all?
[14:58:18 EST(-0500)] <awills> yes, there's an <sql-transaction> wrapping each entity import
[14:58:41 EST(-0500)] <EricDalquist> ok
[14:59:00 EST(-0500)] <EricDalquist> we'll eventually have to figure out how that plays with the spring aop transactions around the new daos
[14:59:17 EST(-0500)] <EricDalquist> I think it should 'just work' as the daos are setup to participate in an existing transaction if there is one
[14:59:40 EST(-0500)] <EricDalquist> I have a meeting to go to for the next hour
[14:59:47 EST(-0500)] <EricDalquist> I'll start on this when I get back
[14:59:50 EST(-0500)] <awills> ah good... do they somehow get a reference to an existing Connection
[15:40:13 EST(-0500)] * lescour (n=lescour@129.244.24.211) has joined ##uportal
[15:54:34 EST(-0500)] <lescour> athena, did you have success with the cas proxy work?
[16:01:11 EST(-0500)] * jayshao_ (n=jayshao@campuseai.expedient.com) has joined ##uportal
[16:47:23 EST(-0500)] <EricDalquist> so awills I realized I was wrong about the tx cooperation
[16:47:31 EST(-0500)] <EricDalquist> that's ok though, not much we can easily do about it now
[17:06:15 EST(-0500)] <awills> i just resolved UP-1953: http://www.ja-sig.org/issues/browse/UP-1953
[17:06:26 EST(-0500)] <EricDalquist> saw that ... thanks (smile)
[17:06:41 EST(-0500)] <awills> i just took it out... it's no longer necessary to have a whole separate class for that
[17:06:44 EST(-0500)] <EricDalquist> I'm reading the cernunnos docs to see if I can give this preferences code a crack
[17:06:54 EST(-0500)] <awills> awesome (wink)
[17:06:59 EST(-0500)] <EricDalquist> thanks
[17:07:10 EST(-0500)] <EricDalquist> I was just confused as to what it did when I was doing some dbloader cleanup
[17:07:14 EST(-0500)] <awills> i can jump on the phone for a bit if it helps
[17:07:45 EST(-0500)] <EricDalquist> eh ... I like IRC (smile)
[17:07:58 EST(-0500)] <EricDalquist> I'm heading home pretty soon so I'll read today and then work on it tonight and ping you tomorrow
[17:08:44 EST(-0500)] <awills> i also resolved 1937 – upgrading portlet channel files to 3.0
[17:09:13 EST(-0500)] <EricDalquist> awesome, thanks!
[17:09:33 EST(-0500)] <awills> cool... i'm always available to help w/ crn... i'll check emails (personal and list) tonight periodically
[17:15:33 EST(-0500)]

<EricDalquist> so ... $

Unknown macro: {newInstance()}

question


[17:15:48 EST(-0500)] <EricDalquist> how would I refer to the instance I just created to call methods on it?
[17:30:37 EST(-0500)] <awills> with <invoke-method>, 1 sec
[17:30:45 EST(-0500)] <awills> or groovy/jexl
[17:32:27 EST(-0500)] <EricDalquist> how do I refer to it though?
[17:32:35 EST(-0500)] <EricDalquist> like how do I give it a name?
[17:33:15 EST(-0500)] <awills> here's an example of both
[17:33:15 EST(-0500)] <awills> http://pastebin.com/m297221ee
[17:33:38 EST(-0500)] <EricDalquist> ahhh
[17:33:39 EST(-0500)] <EricDalquist> thanks
[17:33:41 EST(-0500)] <awills> you can also use <with> to define several attrs at once
[17:34:57 EST(-0500)] <awills> and if your method in <invoke-method> returns anything, you can have sutasks (child elements of invoke-method/subtasks) that operate on the return value
[17:36:04 EST(-0500)] <EricDalquist> ok
[17:43:47 EST(-0500)] * jayshao (n=jayshao@campuseai.expedient.com) has joined ##uportal
[17:48:05 EST(-0500)] * jayshao (n=jayshao@campuseai.expedient.com) has joined ##uportal
[17:48:38 EST(-0500)] * colinclark (n=colin@142.150.154.101) has joined ##uportal
[19:17:47 EST(-0500)] * jayshao_ (n=jayshao@campuseai.expedient.com) has joined ##uportal
[20:49:38 EST(-0500)] * jayshao (n=jayshao@campuseai.expedient.com) has joined ##uportal
[21:10:18 EST(-0500)] * jayshao (n=jayshao@campuseai.expedient.com) has joined ##uportal
[21:24:00 EST(-0500)] * jayshao (n=jayshao@campuseai.expedient.com) has joined ##uportal
[22:34:27 EST(-0500)] * jayshao (n=jayshao@66.94.87.210) has joined ##uportal