opensrf/bjwebb.git
18 years agolike the Perl server, you can now no longer re-bootstrap clients in a process that...
erickson [Fri, 7 Apr 2006 16:32:03 +0000 (16:32 +0000)]
like the Perl server, you can now no longer re-bootstrap clients in a process that already has
a client socket open.  you can force it, which the forked children must do to get their own sockets,
but in general, a single process will share the same connection

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

18 years agoremoved depracated call
erickson [Fri, 7 Apr 2006 13:46:15 +0000 (13:46 +0000)]
removed depracated call

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

18 years agoadded some additional logging and some cleanup functions for improving
erickson [Fri, 7 Apr 2006 13:22:47 +0000 (13:22 +0000)]
added some additional logging and some cleanup functions for improving
memory leak detection

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

18 years agoadding example script for OpenSRF::MultiSession
miker [Thu, 6 Apr 2006 05:15:50 +0000 (05:15 +0000)]
adding example script for OpenSRF::MultiSession

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

18 years agostreamlining collection
miker [Thu, 6 Apr 2006 05:04:36 +0000 (05:04 +0000)]
streamlining collection

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

18 years agoadding duration timing to requests
miker [Thu, 6 Apr 2006 05:02:26 +0000 (05:02 +0000)]
adding duration timing to requests

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

18 years agooopsie ... off-by-one potentially causing unbalanced session use
miker [Thu, 6 Apr 2006 01:03:04 +0000 (01:03 +0000)]
oopsie ... off-by-one potentially causing unbalanced session use

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

18 years agomodding the result, instead of inside the hash function
miker [Thu, 6 Apr 2006 00:58:59 +0000 (00:58 +0000)]
modding the result, instead of inside the hash function

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

18 years agoMultiSession, YAY
miker [Wed, 5 Apr 2006 21:09:47 +0000 (21:09 +0000)]
MultiSession, YAY

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

18 years agoremoving session cache; adding support for quiet remote exceptions
miker [Wed, 5 Apr 2006 21:09:14 +0000 (21:09 +0000)]
removing session cache; adding support for quiet remote exceptions

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

18 years agomaking better use of macros for speed
erickson [Thu, 30 Mar 2006 23:02:42 +0000 (23:02 +0000)]
making better use of macros for speed

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

18 years agoreplaced regex with CORE::time
erickson [Wed, 29 Mar 2006 22:31:46 +0000 (22:31 +0000)]
replaced regex with CORE::time

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

18 years agoadded basic opensrf.system.time method
erickson [Wed, 29 Mar 2006 20:38:31 +0000 (20:38 +0000)]
added basic opensrf.system.time method

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

18 years agoonly handle timezone if there was actually a time
miker [Mon, 27 Mar 2006 17:37:43 +0000 (17:37 +0000)]
only handle timezone if there was actually a time

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

18 years agoimproving datetime parsing in clense_ISO8601()
miker [Mon, 27 Mar 2006 15:38:39 +0000 (15:38 +0000)]
improving datetime parsing in clense_ISO8601()

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

18 years agoadded hopefully more useful log line
erickson [Fri, 24 Mar 2006 22:38:30 +0000 (22:38 +0000)]
added hopefully more useful log line

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

18 years agotaking advantage of macros
erickson [Fri, 24 Mar 2006 22:37:00 +0000 (22:37 +0000)]
taking advantage of macros

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

18 years agoraised history size
erickson [Fri, 24 Mar 2006 22:36:15 +0000 (22:36 +0000)]
raised history size

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

18 years agoadded some macros for speeding up tight loops - taking advantage of those macros
erickson [Fri, 24 Mar 2006 22:35:40 +0000 (22:35 +0000)]
added some macros for speeding up tight loops - taking advantage of those macros

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

18 years agonow printing bad XML data to the log file. my feeling is that this is what is
erickson [Mon, 20 Mar 2006 18:05:03 +0000 (18:05 +0000)]
now printing bad XML data to the log file.  my feeling is that this is what is
causing the "<blah> is not connected to the network" errors... clients will
be disconnected when they receive bad XML

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

18 years agoformatting errors as JSON strings so they come accross as, well, JSON :)
erickson [Fri, 17 Mar 2006 17:25:51 +0000 (17:25 +0000)]
formatting errors as JSON strings so they come accross as, well, JSON :)

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

18 years agomoved osrf_hash code to osrf_big_hash as the Judy big hash implementation
erickson [Mon, 13 Mar 2006 22:23:53 +0000 (22:23 +0000)]
moved osrf_hash code to osrf_big_hash as the Judy big hash implementation
osrf_hash is now a custom hash

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

18 years agofixed sig building (I hope)
miker [Fri, 10 Mar 2006 18:09:01 +0000 (18:09 +0000)]
fixed sig building (I hope)

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

18 years agoupdated to work with new login params
erickson [Thu, 9 Mar 2006 15:10:49 +0000 (15:10 +0000)]
updated to work with new login params

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

18 years agowhite space :) added some log lines
erickson [Mon, 6 Mar 2006 22:47:05 +0000 (22:47 +0000)]
white space :) added some log lines

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

18 years agoadding an ISO timestamp builder
miker [Mon, 6 Mar 2006 05:48:44 +0000 (05:48 +0000)]
adding an ISO timestamp builder

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

18 years ago added "CALL" to the param debugging line for ease of grepping
erickson [Fri, 3 Mar 2006 21:02:58 +0000 (21:02 +0000)]
 added "CALL" to the param debugging line for ease of grepping

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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

18 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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

19 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