Re: [OPEN-ILS-DEV] PATCH: osrf_stack.c (camel case)

2008-05-16 Thread Bill Erickson
On Sunday 13 April 2008 10:18 Scott McKellar wrote:
 This patch replaces some deprecated identifiers with their camelCase
 equivalents.

 osrf_app_session  == osrfAppSession
 osrf_message  == osrfMessage
 osrf_message_free == osrfMessageFree

Applied.

-b

-- 
Bill Erickson
| VP, Software Development  Integration
| Equinox Software, Inc. / The Evergreen Experts
| phone: 877-OPEN-ILS (673-6457)
| email: [EMAIL PROTECTED]
| web: http://esilibrary.com


Re: [OPEN-ILS-DEV] PATCH: oils_requestor.c (camel case)

2008-05-16 Thread Bill Erickson
On Sunday 13 April 2008 9:53 Scott McKellar wrote:
 This patch replaces a deprecated identifier with its camelCase
 equivalent.

 osrf_app_client_session_init == osrfAppSessionClientInit


Applied.

Thanks, Scott.

-bill

-- 
Bill Erickson
| VP, Software Development  Integration
| Equinox Software, Inc. / The Evergreen Experts
| phone: 877-OPEN-ILS (673-6457)
| email: [EMAIL PROTECTED]
| web: http://esilibrary.com


Re: [OPEN-ILS-DEV] SPAM: autoconf support for openSRF (resubmission)

2008-05-16 Thread Bill Erickson
On Wednesday 14 May 2008 1:40 Kevin Beswick wrote:
 This is an initial patch supporting the effort of porting OpenSRF to
 the GNU autotools.

 The goal of this patch is to enable someone to generate a configure
 script using autoconf, allow someone to choose various install options
 through the generated configure script, and to remove the need for the
 install.conf file.

 The configure script makes various checks based on the dependencies of
 openSRF, allows users to customize the install directories, and select
 various install options (whether or not to install python modules,
 java libraries, legacy json headers). It outputs the results of these
 custom checks/settings at the end of the default configure script
 output.

 The automake Makefile.am's are not included as of yet, instead only
 Makefile.in's are included so that configure can generate appropriate
 Makefiles based on the already existing ones.

 To test:
 automake -a
 autoconf
 ./configure [--option]
 make
 make install


Some comments:

When I invoke 'automake -a', I get some warnings:

configure.ac: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE,
configure.ac: that aclocal.m4 is present in the top-level directory,
configure.ac: and that aclocal.m4 was recently regenerated (using aclocal).
configure.ac: installing `./install-sh'
configure.ac: installing `./missing'
automake: no `Makefile.am' found for any configure output

Should I fear these?

--

It's also important to note that if you run ./configure as a non-root user, it 
may die with:

checking for ejabberd... no
configure: error: *** ejabberd not found, aborting

/usr/sbin, where ejabberd lives on my test system (Debian Lenny), is not in my 
path.

This works fine:

PATH=$PATH:/usr/sbin/ ./configure



I ran configure with the defaults and later realized that I needed to update 
my tmp_dir, since it was already in use by another user on this system.  I 
ran:

PATH=$PATH:/usr/sbin/ ./configure --with-tmp_dir=/tmp/osrftmp

The configure output reports:

Tmp dir location: /tmp/osrftmp

However, Makefile[.in] still shows TMP=/tmp/ilstemp, which causes my 'make' 
attempts to fail.

Should re-running configure update that?  It's likely my own autoconf 
ignorance is coming into play here...

-

Minor nit:  Can we make the default TMP directory /tmp/osrftmp (or similar)?

---

To prevent filling up the file, can we wrap the mod_placeholder insertion 
(in 'make install') in a check to see if it's needed?  For example:

if [ ! $$(grep mod_placeholder /etc/apache2/httpd.conf) ]; then \
echo #LoadModule 
mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so \
 /etc/apache2/httpd.conf; \
fi; \
make -s -C src install

--

Kevin, this is looking /very/ good.  I didn't realize you had gotten this far 
until I went for it.  Kudos.

-bill


-- 
Bill Erickson
| VP, Software Development  Integration
| Equinox Software, Inc. / The Evergreen Experts
| phone: 877-OPEN-ILS (673-6457)
| email: [EMAIL PROTECTED]
| web: http://esilibrary.com


Re: [OPEN-ILS-DEV] SPAM: autoconf support for openSRF (resubmission)

2008-05-16 Thread Kevin Beswick
On Fri, May 16, 2008 at 11:09 AM, Bill Erickson [EMAIL PROTECTED] wrote:
 Some comments:

 When I invoke 'automake -a', I get some warnings:

 configure.ac: no proper invocation of AM_INIT_AUTOMAKE was found.
 configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE,
 configure.ac: that aclocal.m4 is present in the top-level directory,
 configure.ac: and that aclocal.m4 was recently regenerated (using aclocal).
 configure.ac: installing `./install-sh'
 configure.ac: installing `./missing'
 automake: no `Makefile.am' found for any configure output

 Should I fear these?

Not yet. I am still working on the automake portion, which requires
the Makefile.am file. automake -a is just installing install-sh
(required file) for now.

 --

 It's also important to note that if you run ./configure as a non-root user, it
 may die with:

 checking for ejabberd... no
 configure: error: *** ejabberd not found, aborting

 /usr/sbin, where ejabberd lives on my test system (Debian Lenny), is not in my
 path.

 This works fine:

 PATH=$PATH:/usr/sbin/ ./configure


Thanks for pointing that out, I will fix this.

 

 I ran configure with the defaults and later realized that I needed to update
 my tmp_dir, since it was already in use by another user on this system.  I
 ran:

 PATH=$PATH:/usr/sbin/ ./configure --with-tmp_dir=/tmp/osrftmp

 The configure output reports:

 Tmp dir location: /tmp/osrftmp

 However, Makefile[.in] still shows TMP=/tmp/ilstemp, which causes my 'make'
 attempts to fail.

 Should re-running configure update that?  It's likely my own autoconf
 ignorance is coming into play here...

Nope, totally my fault. I forgot to update the Makefile.in's hardcoded
locations for the install directories (prefix,tmp, whatever) with
variables set by configure

 -

 Minor nit:  Can we make the default TMP directory /tmp/osrftmp (or similar)?

Yes, no problem!

 ---

 To prevent filling up the file, can we wrap the mod_placeholder insertion
 (in 'make install') in a check to see if it's needed?  For example:

 if [ ! $$(grep mod_placeholder /etc/apache2/httpd.conf) ]; then \
echo #LoadModule
 mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so \
 /etc/apache2/httpd.conf; \
fi; \
 make -s -C src install


For sure.

 --

 Kevin, this is looking /very/ good.  I didn't realize you had gotten this far
 until I went for it.  Kudos.

 -bill

Thanks! I'm stuck on the automake now with a few problems, which are
getting resolved slowly.

Kevin


[OPEN-ILS-DEV] Changes to user group heirarchy

2008-05-16 Thread Robert
Hi all,

  I actually have 2 questions. 1st question is what is the table name in
postgres where the user group heirarchy is located? I need to delete some
test groups from the heirarchy and I can't do that without the table name.
Example: the table name for the Organizational Units is actor.org_unit. The
2nd question is what file needs to be modified to have the state changed in
the register patron section under drivers license? Currently it
automatically shows GA- when you select the primary identification type
drivers license. I would like for that to show SC- for us here in South
Carolina. Any help on these subjects is greatly appreciated.

Thanks,
Robert


[OPEN-ILS-DEV] User permissions error

2008-05-16 Thread Robert
I think I may have hosed up my catalogers user group. I was trying to give
them permissions to register patrons and now I'm getting an error screen
from the start when I go into the register patron section. Is there a way to
reset this to a default of some sort or a way to get it back to a working
condition? The error that I'm getting is:

 * Fix Me *
Error parsing JSON [SyntaxError: missing } after property list]
{payload:[],debug: osrfMethodException :  *** Call to
[open-ils.actor.user.perm.highest_org.batch] failed for session
[1210967149.526399.12109671498062], thread trace [1]:\n  * ! EXCEPTION ! *
\nTYPE: OpenSRF::EX::ERROR\nMess: System ERROR \nMess: Call to
open-ils.storage for method open-ils.storage.permission.user_has_perm
\nMess:  failed with exception:   * ! EXCEPTION ! * \nMess: TYPE:
OpenSRF::EX::ERROR\nMess: Mess: System ERROR \nMess: Mess:   * ! EXCEPTION !
* \nMess: Mess: TYPE: OpenSRF::DomainObject::oilsMethodException\nMess:
Mess: Mess: 500   *** Call to [open-ils.storage.permission.user_has_perm]
failed for session [1210967149.734133736.76393838916], thread trace
[1]:\nMess: Mess: Mess: DBD::Pg::db selectrow_arrayref failed: ERROR:  more
than one row returned by a subquery used as an expression\nMess: Mess: Mess:
CONTEXT:  SQL function \org_unit_descendants\ statement 1\nMess: Mess:
Mess: SQL statement \SELECT  * FROM actor.org_unit_descendants( $1 , $2 )
WHERE id =  $3 \\nMess: Mess: Mess: PL/pgSQL function \usr_has_home_perm\
line 23 at perform\nMess: Mess: Mess: SQL function \usr_has_perm\
statement 1\nMess: Mess: Mess:  [for Statement \\t\tSELECT
permission.usr_has_perm(?,?,?)\nMess: Mess: Mess: \] at
/openils/lib/perl5/OpenILS/Application/Storage/Publisher/permission.pm line
47.\nMess: Mess: Mess: \nMess: Mess: \nMess: Mess: Loc.: 996
OpenSRF::AppRequest \nMess: Mess: Loc.:
/openils/lib/perl5/OpenSRF/AppSession.pm \nMess: Mess: Time: Fri May 16
15:45:49 2008\nMess: \nMess: Loc.: 162 OpenILS::Application::AppUtils
\nMess: Loc.: /openils/lib/perl5/OpenILS/Application/AppUtils.pm \nMess:
Time: Fri May 16 15:45:49 2008\nMess:  : \nLoc.: 185 OpenSRF::Application
\nLoc.: /openils/lib/perl5/OpenSRF/Application.pm \nTime: F,status:500}

Thanks in advance for the help,
Robert
attachment: evergreen_error.png

Re: [OPEN-ILS-DEV] Changes to user group heirarchy

2008-05-16 Thread Robert
Don,

  Thanks for the speedy response! I can't seem to find a way to do it in the
bootstrap. Is there any way you could check it out and let me know because
that would be so much easier than going into postgres (which I don't have a
lot of experience with) and changing things.



On Fri, May 16, 2008 at 3:39 PM, Don McMorris [EMAIL PROTECTED]
wrote:

 On Fri, May 16, 2008 at 3:18 PM, Robert [EMAIL PROTECTED] wrote:
 
  Hi all,
 Hi Robert!
 
I actually have 2 questions. 1st question is what is the table name in
 postgres where the user group heirarchy is located? I need to delete some
 test groups from the heirarchy and I can't do that without the table name.
 Example: the table name for the Organizational Units is actor.org_unit.

 I believe you're looking for 'permission.grp_tree'.  However, it
 shouldn't be necessary to go directly to the DB to delete user groups
 (I think you can do it from bootstrap).

 
 The 2nd question is what file needs to be modified to have the state
 changed in the register patron section under drivers license? Currently it
 automatically shows GA- when you select the primary identification type
 drivers license. I would like for that to show SC- for us here in South
 Carolina. Any help on these subjects is greatly appreciated.

 Looks like ue_config.js and user_editor.js  under
 /openils/var/web/xul//server/patron.

 
  Thanks,
  Robert

 Good Luck!

 --Don

 --
 Don McMorris Jr.
 | Operations Manager
 | Equinox Software Inc. The Evergreen Experts
 | Toll-free: 1.877.Open.ILS (1.877.673.6457) x709
 | E-Mail: [EMAIL PROTECTED]
 | Web: http://www.esilibrary.com



Re: [OPEN-ILS-DEV] User permissions error

2008-05-16 Thread John Fink
Robert,

What version of Evergreen are you running?  I seemed to get a *lot* of this
back before 1.2.2.0.

jf

On Fri, May 16, 2008 at 3:52 PM, Robert [EMAIL PROTECTED] wrote:

 I think I may have hosed up my catalogers user group. I was trying to give
 them permissions to register patrons and now I'm getting an error screen
 from the start when I go into the register patron section. Is there a way to
 reset this to a default of some sort or a way to get it back to a working
 condition? The error that I'm getting is:

  * Fix Me *
 Error parsing JSON [SyntaxError: missing } after property list]
 {payload:[],debug: osrfMethodException :  *** Call to
 [open-ils.actor.user.perm.highest_org.batch] failed for session
 [1210967149.526399.12109671498062], thread trace [1]:\n  * ! EXCEPTION ! *
 \nTYPE: OpenSRF::EX::ERROR\nMess: System ERROR \nMess: Call to
 open-ils.storage for method open-ils.storage.permission.user_has_perm
 \nMess:  failed with exception:   * ! EXCEPTION ! * \nMess: TYPE:
 OpenSRF::EX::ERROR\nMess: Mess: System ERROR \nMess: Mess:   * ! EXCEPTION !
 * \nMess: Mess: TYPE: OpenSRF::DomainObject::oilsMethodException\nMess:
 Mess: Mess: 500   *** Call to [open-ils.storage.permission.user_has_perm]
 failed for session [1210967149.734133736.76393838916], thread trace
 [1]:\nMess: Mess: Mess: DBD::Pg::db selectrow_arrayref failed: ERROR:  more
 than one row returned by a subquery used as an expression\nMess: Mess: Mess:
 CONTEXT:  SQL function \org_unit_descendants\ statement 1\nMess: Mess:
 Mess: SQL statement \SELECT  * FROM actor.org_unit_descendants( $1 , $2 )
 WHERE id =  $3 \\nMess: Mess: Mess: PL/pgSQL function \usr_has_home_perm\
 line 23 at perform\nMess: Mess: Mess: SQL function \usr_has_perm\
 statement 1\nMess: Mess: Mess:  [for Statement \\t\tSELECT
 permission.usr_has_perm(?,?,?)\nMess: Mess: Mess: \] at
 /openils/lib/perl5/OpenILS/Application/Storage/Publisher/permission.pmline 
 47.\nMess: Mess: Mess: \nMess: Mess: \nMess: Mess: Loc.: 996
 OpenSRF::AppRequest \nMess: Mess: Loc.:
 /openils/lib/perl5/OpenSRF/AppSession.pm \nMess: Mess: Time: Fri May 16
 15:45:49 2008\nMess: \nMess: Loc.: 162 OpenILS::Application::AppUtils
 \nMess: Loc.: /openils/lib/perl5/OpenILS/Application/AppUtils.pm \nMess:
 Time: Fri May 16 15:45:49 2008\nMess:  : \nLoc.: 185 OpenSRF::Application
 \nLoc.: /openils/lib/perl5/OpenSRF/Application.pm \nTime: F,status:500}

 Thanks in advance for the help,
 Robert




-- 
http://libgrunt.blogspot.com -- library culture and technology.


Re: [OPEN-ILS-DEV] User permissions error

2008-05-16 Thread Robert
I'm using version 1.2.1.4 on Debian Etch and the same version of the client
on Windows XP.

On Fri, May 16, 2008 at 4:03 PM, John Fink [EMAIL PROTECTED] wrote:

 Robert,

 What version of Evergreen are you running?  I seemed to get a *lot* of this
 back before 1.2.2.0.

 jf


 On Fri, May 16, 2008 at 3:52 PM, Robert [EMAIL PROTECTED] wrote:

 I think I may have hosed up my catalogers user group. I was trying to give
 them permissions to register patrons and now I'm getting an error screen
 from the start when I go into the register patron section. Is there a way to
 reset this to a default of some sort or a way to get it back to a working
 condition? The error that I'm getting is:

  * Fix Me *
 Error parsing JSON [SyntaxError: missing } after property list]
 {payload:[],debug: osrfMethodException :  *** Call to
 [open-ils.actor.user.perm.highest_org.batch] failed for session
 [1210967149.526399.12109671498062], thread trace [1]:\n  * ! EXCEPTION ! *
 \nTYPE: OpenSRF::EX::ERROR\nMess: System ERROR \nMess: Call to
 open-ils.storage for method open-ils.storage.permission.user_has_perm
 \nMess:  failed with exception:   * ! EXCEPTION ! * \nMess: TYPE:
 OpenSRF::EX::ERROR\nMess: Mess: System ERROR \nMess: Mess:   * ! EXCEPTION !
 * \nMess: Mess: TYPE: OpenSRF::DomainObject::oilsMethodException\nMess:
 Mess: Mess: 500   *** Call to [open-ils.storage.permission.user_has_perm]
 failed for session [1210967149.734133736.76393838916], thread trace
 [1]:\nMess: Mess: Mess: DBD::Pg::db selectrow_arrayref failed: ERROR:  more
 than one row returned by a subquery used as an expression\nMess: Mess: Mess:
 CONTEXT:  SQL function \org_unit_descendants\ statement 1\nMess: Mess:
 Mess: SQL statement \SELECT  * FROM actor.org_unit_descendants( $1 , $2 )
 WHERE id =  $3 \\nMess: Mess: Mess: PL/pgSQL function \usr_has_home_perm\
 line 23 at perform\nMess: Mess: Mess: SQL function \usr_has_perm\
 statement 1\nMess: Mess: Mess:  [for Statement \\t\tSELECT
 permission.usr_has_perm(?,?,?)\nMess: Mess: Mess: \] at
 /openils/lib/perl5/OpenILS/Application/Storage/Publisher/permission.pmline 
 47.\nMess: Mess: Mess: \nMess: Mess: \nMess: Mess: Loc.: 996
 OpenSRF::AppRequest \nMess: Mess: Loc.:
 /openils/lib/perl5/OpenSRF/AppSession.pm \nMess: Mess: Time: Fri May 16
 15:45:49 2008\nMess: \nMess: Loc.: 162 OpenILS::Application::AppUtils
 \nMess: Loc.: /openils/lib/perl5/OpenILS/Application/AppUtils.pm \nMess:
 Time: Fri May 16 15:45:49 2008\nMess:  : \nLoc.: 185 OpenSRF::Application
 \nLoc.: /openils/lib/perl5/OpenSRF/Application.pm \nTime: F,status:500}

 Thanks in advance for the help,
 Robert




 --
 http://libgrunt.blogspot.com -- library culture and technology.


[OPEN-ILS-DEV] DB error on install

2008-05-16 Thread evergreen

<[EMAIL PROTECTED]>Hello,

I am trying to install Evergreen 1.2.2.0 on Debian. Everything worked on until step 6 when doing the "make install". When doing the storage-bootstrap section there is a failure mesasge: "psql: could not connect to server: Connection refused". I have confirmed that psql can connect to the server by entering it on the command line. I went into the scripts and manually typed one of the statements from the script being executed by that step:

PGPASSWORD=evergreen PGUSER=evergreen PGDATABASE=evergreen psql -f .english.pg81.fts-config.sql 



That gets a "psql: FATAL: Ident authentication failed for user "evergreen" 



I have dropped and recreated the role evergreen in order to validate the password. Am probably missing something really obvious but since my background is mySQL and not postgresql it just isn't clear. 



Any ideas would be appreciated.

Regards,

Robert



 




Re: [OPEN-ILS-DEV] DB error on install

2008-05-16 Thread Dan Scott
Hi:

On Debian, by default you need to specify the hostname and port to
which you are connecting for the PostgreSQL database. These are
normally set as part of the 'make config' command and passed as part
of the set of arguments to the build-db.sh script in
Open-ILS/src/sql/Pg/.

Try:

PGHOST=localhost PGPORT=5432 PGPASSWORD=evergreen PGUSER=evergreen
PGDATABASE=evergreen psql -f 000.english.pg81.fts-config.sql

or:

pgsql -U evergreen -h localhost -f 000.english.pg81.fts-config.sql

Dan

2008/5/16  [EMAIL PROTECTED]:
 Hello,
 I am trying to install Evergreen 1.2.2.0 on Debian.   Everything worked on
 until step 6 when doing the make install.   When doing the
 storage-bootstrap section there is a failure mesasge: psql: could not
 connect to server: Connection refused.  I have confirmed that psql can
 connect to the server by entering it on the command line.  I went into the
 scripts and manually typed one of the statements from the script being
 executed by that step:
 PGPASSWORD=evergreen PGUSER=evergreen PGDATABASE=evergreen psql -f
 .english.pg81.fts-config.sql

 That gets a  psql: FATAL: Ident authentication failed for user evergreen

 I have dropped and recreated the role evergreen in order to validate the
 password.   Am probably missing something really obvious but since my
 background is mySQL and not postgresql it just isn't clear.

 Any ideas would be appreciated.
 Regards,
 Robert







-- 
Dan Scott
Laurentian University