erik at ehatchersolutions
May 2, 2007, 6:07 AM
Post #2 of 3
I use Flare as a plugin in this manner for Blacklight - http://
aleph.lib.virginia.edu/blacklight - :
$ svn proplist -v vendor/plugins/
Properties on 'vendor/plugins':
svn:externals : flare http://svn.apache.org/repos/asf/lucene/solr/
This of course relies on you using Subversion for your project.
Actually locally I override that and symlink it to my local flare
development directory, so I don't have to commit changes to flare and
then update blacklight to test things out. I just change it and
$ ls -l vendor/plugins/
drwxr-xr-x 7 erik erik 238 Apr 6 16:53 exception_notification
lrwxr-xr-x 1 erik erik 38 Apr 12 20:53 flare -> /Users/erik/
drwxr-xr-x 5 erik erik 170 Apr 6 16:53 solr-ruby
I don't recommend having Flare as a separate Rails app. It was
always intended to be used as a plugin inside of your own custom
Rails application, such that it would benefit from tight integration
like you're after with sessions, not to mention the UI with layouts,
If folks use flare like a plugin, it'll be much easier for us to see
where to aim our efforts for evolving it. For example, a lot of the
UI pieces can be generalized into views within the plugin, so your
own Rails app wouldn't need to have templates for the stock stuff
like facet lists with pie charts, etc. We'll make high-level helpers
that generate the view which can be easily overridden for
customizations. That's the idea!
On May 2, 2007, at 6:30 AM, Antonio Eggberg wrote:
> First of all I am no sessions expert so please advice if you notice
> something is wrong. Having
> said that
> here is my problem:
> 1. I have a login/logout rails app. The apps job is to authorize
> folks and re-direct folks to
> other rails app.
> 2. I am using 1 database for simplicity
> 3. I have flare as a seperate rails app which checks a user from
> the login app and provides flare
> search service.
> I been having trouble syncing the two app due to session mismatch.
> i.e Flare app adds some session
> are not available in login app. So the easiest solution was to have
> flare plugin in login app as
> well as call flare
> in the login controller thus getting all the session variables in
> sync. This works but I am not
> sure what kind
> of side effect it might have.. i.e performance etc.
> How are you guys doing it? for me login/logout app has to be a
> separate app cos it might be in a
> different machine
> basically the idea is a "poor mans single sign-on"
> This is not really flare related but I would very greatfull to hear
> your views about it.
> Låt vårkänslorna spira.
> Hitta din tvillingsjäl på Yahoo! Dejting: http://se.meetic.yahoo.net