OpenSRF.git
14 years agomoved stderr line to a log line
erickson [Fri, 3 Mar 2006 21:02:22 +0000 (21:02 +0000)]
moved stderr line to a log line

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@658 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoOpen-ILS/src/c-apps/oils_auth.c
erickson [Fri, 3 Mar 2006 21:00:46 +0000 (21:00 +0000)]
Open-ILS/src/c-apps/oils_auth.c

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@657 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoadded method to insert items at the first NULL slot in the list. useful for removing...
erickson [Fri, 3 Mar 2006 15:13:23 +0000 (15:13 +0000)]
added method to insert items at the first NULL slot in the list.  useful for removing random items and inserting random items where order is not necessary

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@656 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoadded method to allow creation of list with a starting size
erickson [Thu, 2 Mar 2006 19:07:40 +0000 (19:07 +0000)]
added method to allow creation of list with a starting size

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@655 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoadded utility macro
erickson [Wed, 1 Mar 2006 21:20:20 +0000 (21:20 +0000)]
added utility macro

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@654 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoadded osrf_big_list to the makefiles
erickson [Wed, 1 Mar 2006 21:19:17 +0000 (21:19 +0000)]
added osrf_big_list to the makefiles

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@653 9efc2488-bf62-4759-914b-345cdb29e865

14 years agomoved the Judy implementation to osrf_big_list and made osrf_list a
erickson [Wed, 1 Mar 2006 17:14:51 +0000 (17:14 +0000)]
moved the Judy implementation to osrf_big_list and made osrf_list a
standard array based list

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@652 9efc2488-bf62-4759-914b-345cdb29e865

14 years agomoving over to the new gateway xml format
miker [Mon, 27 Feb 2006 22:30:27 +0000 (22:30 +0000)]
moving over to the new gateway xml format

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@651 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoadding xml format support to the gateway
miker [Mon, 27 Feb 2006 22:29:01 +0000 (22:29 +0000)]
adding xml format support to the gateway

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@650 9efc2488-bf62-4759-914b-345cdb29e865

14 years agomore support for introspection paging
miker [Mon, 27 Feb 2006 22:26:52 +0000 (22:26 +0000)]
more support for introspection paging

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@649 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoforcing array-ness on non-existant params
erickson [Mon, 27 Feb 2006 15:32:17 +0000 (15:32 +0000)]
forcing array-ness on non-existant params

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@648 9efc2488-bf62-4759-914b-345cdb29e865

14 years agosmall changes, fixed some typos
erickson [Mon, 27 Feb 2006 15:31:26 +0000 (15:31 +0000)]
small changes, fixed some typos

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@647 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoformat fix
erickson [Mon, 27 Feb 2006 14:57:48 +0000 (14:57 +0000)]
format fix

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@646 9efc2488-bf62-4759-914b-345cdb29e865

14 years agofixed bug where the ptr** was freed prior to the ptr*
erickson [Mon, 27 Feb 2006 00:44:31 +0000 (00:44 +0000)]
fixed bug where the ptr** was freed prior to the ptr*

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@645 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoremoved mod_ils_gateway targets
erickson [Sat, 25 Feb 2006 16:35:03 +0000 (16:35 +0000)]
removed mod_ils_gateway targets

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@644 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoosrf_json_gateway is tested and working. removing this older version
erickson [Sat, 25 Feb 2006 03:22:24 +0000 (03:22 +0000)]
osrf_json_gateway is tested and working. removing this older version

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@643 9efc2488-bf62-4759-914b-345cdb29e865

14 years agore-vamped gateway to make it more stable and faster.
erickson [Fri, 24 Feb 2006 23:17:05 +0000 (23:17 +0000)]
re-vamped gateway to make it more stable and faster.
also moved the apachetools stuff into the opensrf tree
since it's all pure opensrf and the gateway made good use of it.

will remove the ils_gateway module shortly

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@642 9efc2488-bf62-4759-914b-345cdb29e865

14 years agofixups, and starting a paged interface
miker [Sun, 19 Feb 2006 01:19:07 +0000 (01:19 +0000)]
fixups, and starting a paged interface

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@641 9efc2488-bf62-4759-914b-345cdb29e865

14 years agotesting cache timeout resets without removing the item in question
erickson [Thu, 16 Feb 2006 01:49:39 +0000 (01:49 +0000)]
testing cache timeout resets without removing the item in question

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@640 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoMoved some log messages from INFO to DEBUG level because of their repetitive volume...
erickson [Mon, 13 Feb 2006 21:42:32 +0000 (21:42 +0000)]
Moved some log messages from INFO to DEBUG level because of their repetitive volume in the logs

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@639 9efc2488-bf62-4759-914b-345cdb29e865

14 years agomodule now dies with a message if bootstrap_client has not been called
erickson [Mon, 13 Feb 2006 15:16:16 +0000 (15:16 +0000)]
module now dies with a message if bootstrap_client has not been called
(instead of printing meaningless error about can't call 'env', etc.)

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@638 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoadded additional sanity check to index call
erickson [Mon, 13 Feb 2006 15:15:05 +0000 (15:15 +0000)]
added additional sanity check to index call

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@637 9efc2488-bf62-4759-914b-345cdb29e865

14 years agorefactored copy targeter to use new JS copy tester; adjusted object relationships...
miker [Sat, 11 Feb 2006 05:20:31 +0000 (05:20 +0000)]
refactored copy targeter to use new JS copy tester; adjusted object relationships; added ranged tree methods for record and volume

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@636 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoadded a default freeItem function for freeing list items
erickson [Tue, 31 Jan 2006 21:10:56 +0000 (21:10 +0000)]
added a default freeItem function for freeing list items

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@635 9efc2488-bf62-4759-914b-345cdb29e865

14 years agomoving to UNIVERSAL::require to suck in implementation modules
miker [Mon, 30 Jan 2006 15:49:53 +0000 (15:49 +0000)]
moving to UNIVERSAL::require to suck in implementation modules

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@634 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoAdded additional param to all the osrfLog* calls which mark
erickson [Mon, 30 Jan 2006 04:47:49 +0000 (04:47 +0000)]
Added additional param to all the osrfLog* calls which mark
the file and line number of each log call

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@633 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoleaving parse methods early if proper fields aren't defined (avoid warnings on system...
erickson [Mon, 30 Jan 2006 04:45:50 +0000 (04:45 +0000)]
leaving parse methods early if proper fields aren't defined (avoid warnings on system start)

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@632 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoremoved extraneous warn
erickson [Fri, 27 Jan 2006 23:07:06 +0000 (23:07 +0000)]
removed extraneous warn

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@631 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoturn of signature checking for now
miker [Fri, 27 Jan 2006 22:03:40 +0000 (22:03 +0000)]
turn of signature checking for now

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@630 9efc2488-bf62-4759-914b-345cdb29e865

14 years agosort field and sort order support; signature fix for bill
miker [Fri, 27 Jan 2006 22:01:38 +0000 (22:01 +0000)]
sort field and sort order support; signature fix for bill

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@629 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoChanged log level for "disconnect on timeout" because it happens frequently
erickson [Fri, 27 Jan 2006 19:25:13 +0000 (19:25 +0000)]
Changed log level for "disconnect on timeout" because it happens frequently

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@628 9efc2488-bf62-4759-914b-345cdb29e865

14 years agomore opensearch fixup; bugfix for "no need to re-bootstrap"
miker [Fri, 27 Jan 2006 17:27:01 +0000 (17:27 +0000)]
more opensearch fixup; bugfix for "no need to re-bootstrap"

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@627 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoURL can now contain api_level as a param to set the opensrf api_level for the method
erickson [Tue, 24 Jan 2006 22:29:49 +0000 (22:29 +0000)]
URL can now contain api_level as a param to set the opensrf api_level for the method

added a "echo" URL param which, if present, will ignore all other params and echo the
value of the param to the caller

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@626 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoupdates for the perm editor -- FM dance required
miker [Mon, 23 Jan 2006 23:45:14 +0000 (23:45 +0000)]
updates for the perm editor -- FM dance required

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@625 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoenabled param checking
miker [Sun, 22 Jan 2006 17:53:01 +0000 (17:53 +0000)]
enabled param checking

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@624 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoenabling signature parsing; added "notes" pointer from .atomic versions to the origin...
miker [Sun, 22 Jan 2006 17:16:43 +0000 (17:16 +0000)]
enabling signature parsing; added "notes" pointer from .atomic versions to the original method

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@623 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoadded (disabled) signature parsing and (disabled) param count, type, and class checking
miker [Thu, 19 Jan 2006 04:54:25 +0000 (04:54 +0000)]
added (disabled) signature parsing and (disabled) param count, type, and class checking

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@622 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoadded lookup_class and lookup_hint methods to support param class instance checking
miker [Thu, 19 Jan 2006 04:53:31 +0000 (04:53 +0000)]
added lookup_class and lookup_hint methods to support param class instance checking

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@621 9efc2488-bf62-4759-914b-345cdb29e865

14 years agosrfsh accepts exit and ExIt
erickson [Wed, 11 Jan 2006 22:13:01 +0000 (22:13 +0000)]
srfsh accepts exit and ExIt

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@620 9efc2488-bf62-4759-914b-345cdb29e865

14 years agomoved some warns that will happen often to info logs
erickson [Thu, 5 Jan 2006 23:39:01 +0000 (23:39 +0000)]
moved some warns that will happen often to info logs

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@619 9efc2488-bf62-4759-914b-345cdb29e865

14 years agomoved timeout to global var; later, refactor to command line or config file option...
miker [Tue, 3 Jan 2006 03:11:10 +0000 (03:11 +0000)]
moved timeout to global var; later, refactor to command line or config file option (this was needed for storage debuging)

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@618 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoremoved some "warns"
erickson [Fri, 16 Dec 2005 23:00:08 +0000 (23:00 +0000)]
removed some "warns"

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@617 9efc2488-bf62-4759-914b-345cdb29e865

14 years agochanged a log line
erickson [Thu, 15 Dec 2005 23:11:55 +0000 (23:11 +0000)]
changed a log line

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@616 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoescaping embedded %'s so syslog won't barf
erickson [Wed, 14 Dec 2005 18:25:23 +0000 (18:25 +0000)]
escaping embedded %'s so syslog won't barf

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@615 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoadded some NOT_FOUND events for record, copy, and circ (more to come)
erickson [Wed, 14 Dec 2005 15:43:23 +0000 (15:43 +0000)]
added some NOT_FOUND events for record, copy, and circ (more to come)

moved over some of the circ code to using the events and utility
methods defined by apputils

added some utility methods to apputils

now exporting $logger var from the logger code

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@614 9efc2488-bf62-4759-914b-345cdb29e865

14 years agotruncating long log lines that go to syslog, as it kills the perl sprintf for some...
miker [Wed, 14 Dec 2005 06:01:14 +0000 (06:01 +0000)]
truncating long log lines that go to syslog, as it kills the perl sprintf for some reason...

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@613 9efc2488-bf62-4759-914b-345cdb29e865

14 years agogateway now assumes status is OK on a message unless it recieves a message which...
erickson [Tue, 13 Dec 2005 22:20:28 +0000 (22:20 +0000)]
gateway now assumes status is OK on a message unless it recieves a message which proves otherwise

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@612 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoreduce the overhead of JSONification by removing multiple NF?() calls; make Unicode...
miker [Tue, 13 Dec 2005 06:13:45 +0000 (06:13 +0000)]
reduce the overhead of JSONification by removing multiple NF?() calls; make Unicode JSONifcation more robust by using unicode character regexes

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@611 9efc2488-bf62-4759-914b-345cdb29e865

14 years agosrfsh reports to stderr when a config file could not be found
erickson [Mon, 12 Dec 2005 20:36:17 +0000 (20:36 +0000)]
srfsh reports to stderr when a config file could not be found

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@610 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoexplicitly returning STATUS_NOTFOUND when a method is not found
erickson [Fri, 9 Dec 2005 16:46:46 +0000 (16:46 +0000)]
explicitly returning STATUS_NOTFOUND when a method is not found

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@609 9efc2488-bf62-4759-914b-345cdb29e865

14 years agofor some reason, doing "throw $err $err->stringify" was causing a generic method
erickson [Fri, 9 Dec 2005 16:09:27 +0000 (16:09 +0000)]
for some reason, doing "throw $err $err->stringify" was causing a generic method
exception to be thrown.  Fixed by doing "throw $err".  This should allow the
/real/ error to be passed to the client, and not "method not found".

Also cleaned up some other debugging info

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@608 9efc2488-bf62-4759-914b-345cdb29e865

14 years agore-arranged the log code so that VA_LIST_TO_ARGS (which runs vsnprintf)
erickson [Fri, 9 Dec 2005 14:55:43 +0000 (14:55 +0000)]
re-arranged the log code so that VA_LIST_TO_ARGS (which runs vsnprintf)
will only have to be called once per log.  This appears to make vsnprintf
happy with regard to printing embedded %'s
Happily printing the URL's in the gateway now

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@607 9efc2488-bf62-4759-914b-345cdb29e865

14 years agostarted work on xul-based requestor/recipient holds
erickson [Thu, 8 Dec 2005 23:18:00 +0000 (23:18 +0000)]
started work on xul-based requestor/recipient holds
avoided (but not fixed) bug in the gateway modules where you cannot send
escaped URL params to vsnprintf.  This will need to be fixed.

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@606 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoChanged some log levels from INFO to DEBUG since they are highly repetitive
erickson [Thu, 8 Dec 2005 15:52:51 +0000 (15:52 +0000)]
Changed some log levels from INFO to DEBUG since they are highly repetitive

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@605 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoadded a NO_SESSION event for when a login session does not exist
erickson [Wed, 7 Dec 2005 18:32:24 +0000 (18:32 +0000)]
added a NO_SESSION event for when a login session does not exist
Event.pm now takes arbitrary parameters

added a osrfCacheSetExpire method for manually setting the cache expire
time of an object after the object has already been cached

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@604 9efc2488-bf62-4759-914b-345cdb29e865

14 years agosetting the logger app name for debugging
erickson [Wed, 7 Dec 2005 16:27:51 +0000 (16:27 +0000)]
setting the logger app name for debugging

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@603 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoauth code now returns { authtoken : <t> , authtime : <sec> } as the payload
erickson [Wed, 7 Dec 2005 16:26:30 +0000 (16:26 +0000)]
auth code now returns { authtoken : <t> , authtime : <sec> } as the payload
so the OPAC will know what the timeout should be

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@602 9efc2488-bf62-4759-914b-345cdb29e865

14 years agosrfsh now takes login commands like so:
erickson [Wed, 7 Dec 2005 15:24:40 +0000 (15:24 +0000)]
srfsh now takes login commands like so:
login <user> <passwd> [ <type> <orglocation> ]
this allows testing of different login types and org locations

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@601 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoadded a "restartforce" option to force the code to at least try to restart
erickson [Tue, 6 Dec 2005 23:45:46 +0000 (23:45 +0000)]
added a "restartforce" option to force the code to at least try to restart
this is added since the restart script may get hung up on other code (srfsh)
occupying the jabber port

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@600 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoAdded new C event code for handling the auth login events
erickson [Tue, 6 Dec 2005 21:38:05 +0000 (21:38 +0000)]
Added new C event code for handling the auth login events
(just remembered that i need to read the events file from the settings server)

updated auth to use the new events code

added some events to the constants file

update srfsh to accept the new event

cleaned up some logging in the prefork and socket_bundle code

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@599 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoincorporated ilseents.xml file into opac
erickson [Mon, 5 Dec 2005 19:23:45 +0000 (19:23 +0000)]
incorporated ilseents.xml file into opac
added an event entity to lang.dtd

update auth code to return the auth failed event when necessary
updated srfsh to handle the auth event

added a oils_constants file for listing events the C code will use

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@598 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoadded content-type back into gateway
erickson [Fri, 2 Dec 2005 18:27:51 +0000 (18:27 +0000)]
added content-type back into gateway
added some apache logging

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@597 9efc2488-bf62-4759-914b-345cdb29e865

14 years agogive reasonably unique default for service name
miker [Thu, 1 Dec 2005 23:09:57 +0000 (23:09 +0000)]
give reasonably unique default for service name

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@596 9efc2488-bf62-4759-914b-345cdb29e865

14 years agocleaning up the pretty printer
miker [Thu, 1 Dec 2005 22:54:42 +0000 (22:54 +0000)]
cleaning up the pretty printer

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@595 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoadded qw(:level) to CDBI.pm because we were getting empty log levels
erickson [Thu, 1 Dec 2005 21:02:44 +0000 (21:02 +0000)]
added qw(:level) to CDBI.pm because we were getting empty log levels

made log output a little more descriptive (more to do)

setting log service in math bench

slimmed the logging in the gateway

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@594 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoSetting the logging service name to the application we're serving
erickson [Thu, 1 Dec 2005 20:31:19 +0000 (20:31 +0000)]
Setting the logging service name to the application we're serving

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@593 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoadded some log statements, fixed some typos
erickson [Thu, 1 Dec 2005 18:48:51 +0000 (18:48 +0000)]
added some log statements, fixed some typos

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@592 9efc2488-bf62-4759-914b-345cdb29e865

14 years agofreeing json response object
erickson [Wed, 30 Nov 2005 20:08:55 +0000 (20:08 +0000)]
freeing json response object

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@591 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoadded variable arg to jsonNewObject for formatted strings
erickson [Wed, 30 Nov 2005 19:48:52 +0000 (19:48 +0000)]
added variable arg to jsonNewObject for formatted strings

moved gateway to new style of output { status :x, debug:y, payload:[z] }

removed rest gateway ifdefs

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@590 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoremoved these since the C code is now using the unified log code in utils/log.*
erickson [Wed, 30 Nov 2005 18:38:16 +0000 (18:38 +0000)]
removed these since the C code is now using the unified log code in utils/log.*

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@589 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoactivity log is now a standalone log target: file or syslog:<facility>
erickson [Wed, 30 Nov 2005 18:34:12 +0000 (18:34 +0000)]
activity log is now a standalone log target: file or syslog:<facility>

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@588 9efc2488-bf62-4759-914b-345cdb29e865

14 years agosetting log file to just "syslog" (instead of "syslog:") uses the default facility
erickson [Wed, 30 Nov 2005 17:11:26 +0000 (17:11 +0000)]
setting log file to just "syslog" (instead of "syslog:") uses the default facility

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@587 9efc2488-bf62-4759-914b-345cdb29e865

14 years agodrastically simplified logger code now supports logging to file and syslog
erickson [Wed, 30 Nov 2005 17:01:19 +0000 (17:01 +0000)]
drastically simplified logger code now supports logging to file and syslog
logger is backward compatible, but future calls need only have the form:
$logger->error($msg);
$logger->warn($msg);
$logger->info($msg);
$logger->debug($msg);
$logger->internal($msg);
$logger->activity($msg);

log message format is not entirely complete yet (haven't added caller info)
syslog and file logging have been tested

added example config options for log file and activity syslog facility

removed convoluted log line from appsession

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@586 9efc2488-bf62-4759-914b-345cdb29e865

14 years agofinal C code logging patchups
erickson [Wed, 30 Nov 2005 15:11:17 +0000 (15:11 +0000)]
final C code logging patchups

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@585 9efc2488-bf62-4759-914b-345cdb29e865

14 years agopatching up some more logging stuff
erickson [Tue, 29 Nov 2005 15:20:27 +0000 (15:20 +0000)]
patching up some more logging stuff

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@584 9efc2488-bf62-4759-914b-345cdb29e865

14 years agomoved C code to a unified logging framework which currently supports syslogging and...
erickson [Tue, 29 Nov 2005 15:01:28 +0000 (15:01 +0000)]
moved C code to a unified logging framework which currently supports syslogging and file logging

added the following to the config framework:
<logfile>syslog</logfile>
<syslog>local3</syslog>  <!-- replace local3 with correct facility -->

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@583 9efc2488-bf62-4759-914b-345cdb29e865

14 years agocleaned up and commented
erickson [Mon, 28 Nov 2005 22:48:29 +0000 (22:48 +0000)]
cleaned up and commented

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@582 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoif client has been bootstrapped and is currently connected, bootstrap_client
erickson [Tue, 22 Nov 2005 19:50:49 +0000 (19:50 +0000)]
if client has been bootstrapped and is currently connected, bootstrap_client
will not re-connect (since all it will do is over-write the exact same connection)

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@581 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoone more log line
erickson [Mon, 21 Nov 2005 13:28:14 +0000 (13:28 +0000)]
one more log line

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@580 9efc2488-bf62-4759-914b-345cdb29e865

14 years agotouchup on the unicode handler
miker [Sat, 19 Nov 2005 04:20:15 +0000 (04:20 +0000)]
touchup on the unicode handler

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@579 9efc2488-bf62-4759-914b-345cdb29e865

14 years agotosimplestring now returns int/double as expected
erickson [Thu, 10 Nov 2005 19:03:17 +0000 (19:03 +0000)]
tosimplestring now returns int/double as expected

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@578 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoarg! cut-n-paste error
miker [Thu, 10 Nov 2005 02:12:12 +0000 (02:12 +0000)]
arg! cut-n-paste error

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@577 9efc2488-bf62-4759-914b-345cdb29e865

14 years agofixing unicode escaping in JSON
miker [Wed, 9 Nov 2005 22:15:47 +0000 (22:15 +0000)]
fixing unicode escaping in JSON

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@576 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoadded pop method to osrf_list
erickson [Wed, 9 Nov 2005 21:47:31 +0000 (21:47 +0000)]
added pop method to osrf_list
makefile builds mod_xmlbuilder code

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@575 9efc2488-bf62-4759-914b-345cdb29e865

14 years agorolling back hostname change because of mysterious performance problem
erickson [Mon, 7 Nov 2005 23:16:22 +0000 (23:16 +0000)]
rolling back hostname change because of mysterious performance problem
needs investigations when time permits..

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@574 9efc2488-bf62-4759-914b-345cdb29e865

14 years agodurrrr.. typo
erickson [Mon, 7 Nov 2005 21:05:37 +0000 (21:05 +0000)]
durrrr.. typo

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@573 9efc2488-bf62-4759-914b-345cdb29e865

14 years agohandling 'hostname' more carefully
erickson [Mon, 7 Nov 2005 21:03:05 +0000 (21:03 +0000)]
handling 'hostname' more carefully

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@572 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoopensrf_core now builds libopensrf.so and opensrf-c
erickson [Mon, 7 Nov 2005 20:35:37 +0000 (20:35 +0000)]
opensrf_core now builds libopensrf.so and opensrf-c

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@571 9efc2488-bf62-4759-914b-345cdb29e865

14 years agostripping bad characters
miker [Mon, 7 Nov 2005 17:59:48 +0000 (17:59 +0000)]
stripping bad characters

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@570 9efc2488-bf62-4759-914b-345cdb29e865

14 years agochecking <language> for perl in listener and unix children
erickson [Fri, 4 Nov 2005 23:34:17 +0000 (23:34 +0000)]
checking <language> for perl in listener and unix children

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@569 9efc2488-bf62-4759-914b-345cdb29e865

14 years agofixed bug where removing a node didn't always register
erickson [Fri, 4 Nov 2005 23:32:53 +0000 (23:32 +0000)]
fixed bug where removing a node didn't always register

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@568 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoadded "connected" method for stateful sessions
miker [Fri, 4 Nov 2005 21:32:45 +0000 (21:32 +0000)]
added "connected" method for stateful sessions

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@567 9efc2488-bf62-4759-914b-345cdb29e865

14 years agomoved session code to osrfHash and osrfList instead of manual linked lists
erickson [Wed, 2 Nov 2005 22:16:47 +0000 (22:16 +0000)]
moved session code to osrfHash and osrfList instead of manual linked lists
added some logging to the transport group stuff and a disconnect method

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@566 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoexplicitly removing pre-existing connections when two overlap
erickson [Wed, 2 Nov 2005 20:51:49 +0000 (20:51 +0000)]
explicitly removing pre-existing connections when two overlap
fixed typo

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@565 9efc2488-bf62-4759-914b-345cdb29e865

14 years agomove the moved call to the right place...
miker [Wed, 2 Nov 2005 16:46:59 +0000 (16:46 +0000)]
move the moved call to the right place...

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@564 9efc2488-bf62-4759-914b-345cdb29e865

14 years agocleaned up the code some
erickson [Wed, 2 Nov 2005 16:18:14 +0000 (16:18 +0000)]
cleaned up the code some

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@563 9efc2488-bf62-4759-914b-345cdb29e865

14 years agosettings client does not need to bootstrap itself, system will do that
miker [Tue, 1 Nov 2005 23:13:47 +0000 (23:13 +0000)]
settings client does not need to bootstrap itself, system will do that

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@562 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoadded <language> for docs
erickson [Tue, 1 Nov 2005 22:03:02 +0000 (22:03 +0000)]
added <language> for docs

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@561 9efc2488-bf62-4759-914b-345cdb29e865

14 years agoadded the <language> block to the opensrf app config so the servers
erickson [Tue, 1 Nov 2005 22:01:21 +0000 (22:01 +0000)]
added the <language> block to the opensrf app config so the servers
will know which apps they need to run

e.g. <language>c</language>, <language>perl</language>

case insensitve

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@560 9efc2488-bf62-4759-914b-345cdb29e865

14 years agologging added by bill
miker [Tue, 1 Nov 2005 21:15:42 +0000 (21:15 +0000)]
logging added by bill

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@559 9efc2488-bf62-4759-914b-345cdb29e865