Commit Graph

84 Commits

Author SHA1 Message Date
interp 7e76eac6c8 * New packages SURFLETS/INTERNAL-INPUT-FIELDS provides bindings used to
define INPUT-FIELD-RULE in surflet-input-fields.scm.
* Change imports of SURFLETS/SURFLET-SXML (don't need pre-post-order
anymore).
2003-07-11 11:38:28 +00:00
interp f972598f59 Remove module typed-optionals. We don't need it anymore.
Rename function TYPED-OPTONALS to OPTIONALS-FIRST and move its definition
  to the only module that uses it: sxml.scm
Use LET-OPTIONALS instead of OPTIONALS, as it does the job, too, and
  it ensures that the meaning of an argument depends only on its
  position and not on the amount of arguments in front of it.
  This commit removes a pitfall in calls to MAKE-TEXTAREA.
Nearly every example SUrflet continues to work unchanged, except of one
  line in admin-surflets.scm, thus updating it.
2003-07-09 17:18:57 +00:00
interp c1d14a06a0 Change names in surflet-input-fields.scm, so that they are both short and
descriptive and not misleading.

If you have written SUrflets that use the input field feature, you must
rename your input field commands to get them work with this change.
Contact me, if you want to have a small script that does this for you.
2003-07-08 21:22:06 +00:00
interp 39f7addaf9 Factor out SURFLET-RESPONSE object 2003-07-05 18:13:32 +00:00
interp 575dd18f03 Check for correct content-type in GET-BINDINGS. Raise an error if it is not correct. 2003-06-03 07:36:48 +00:00
interp bd6a537197 + ADD-SEL-IF-OPTION!
+ DELETE-SEL-IF-OPTION!
2003-05-10 12:10:32 +00:00
interp 63afb5d073 Map SXML->LOW-LEVEL-SXML to Oleg's PRE-POST-ORDER 2003-05-04 14:04:54 +00:00
interp 5b2e2ddd6a Ship out only session-id/continuation-id
and not the session/continuation itself
2003-04-16 16:02:37 +00:00
interp aa6e6aabfc ! Redesign of input-fields.
+ Split input-fields into two structures:
  + surflets/my-input-fields allows you to create your own input-fields.
    (complete with structure surflets/input-field-value)
  + surflets/surflet-input-fields are the proposals for input-fields
    from SUrflets. They support annotated input-fields where
    appropriate (select, radio, checkbox, hidden) and changing of attributes,
    e.g. default values. See test.scm for examples.
  The interface of the structure SURFLETS has only changed slightly
  concerning the input fields
  (make-higher-input-field --> make-multi-input-field should be the
  main change)
+ Adapt examples to new input-field interface
+ Note new structures in documentation.
2003-04-16 12:30:57 +00:00
interp 107cb30eb2 factor out generating of 'unique' numbers 2003-04-15 13:55:00 +00:00
interp f8d7dfbeda remove extraneous right paranthesis 2003-04-14 10:04:23 +00:00
interp c48f952cc5 + Add annotated callbacks.
Callbacks may now be annotated with arbitrary arguments with which the
function will be called. See surflets/test.scm for a (non-didactic) example.

* The extended callbacks justify an extra structure for callbacks:
surflets/callbacks

- make-callback was moved from surflets/utilities to surflets/callbacks
2003-04-14 08:30:27 +00:00
interp cdbed4fa49 Addresses may now be annotated with arbitrary values (including, but not
limited to strings).
For this purpose, the ADDRESS object uses an internal storage that is freed
as soon the ADDRESS object is freed.
admin-surflets.scm shows an example.
2003-04-13 21:31:41 +00:00
interp 5581383962 Add surflet-path to options (needed by admin-surflets.scm) 2003-04-13 20:24:56 +00:00
interp 956fd7bbf1 Add non-thunk version to with-lock.
Note: To follow naming conventions of scsh, the old with-lock is
renamed to with-lock*. The syntactic sugar version is with-lock now.
2003-04-13 17:36:39 +00:00
interp d0782f63a2 Factor out with-locks from surflet-handler 2003-04-13 17:23:11 +00:00
mainzelm 213090a51d + use search-trees for timeout-queue
+ export session-adjust-timeout! for admin-surflet.scm
2003-04-01 13:17:45 +00:00
mainzelm 61c3a4c216 Introduced field lifetime to session 2003-03-31 10:56:28 +00:00
mainzelm b74ca11656 + Make text displayed on session timeout an option to the handler.
+ Fixed various options related bugs.
2003-03-17 12:31:49 +00:00
mainzelm 3de0a9c480 Added options for surflet-handler. 2003-03-17 10:17:55 +00:00
interp 3511a9bffc Add forgotten structure for surflets/my-sessions 2003-03-13 18:32:43 +00:00
interp fe70289bc6 Factor out SESSION-DATA and make it available in SURFLETS 2003-03-13 11:52:37 +00:00
interp 88e255d5de + Restructuring: Now, we have a three (four) layer concept:
Basic User, Advanced User, Administrative User
+ see file SURFLETS-STRUCTURES.TXT for details
+ Adapt example surflets to new structures. Only surflets that use extended
  features should need adaptations.
2003-03-13 11:36:49 +00:00
interp ec341accf9 Add SESSION-ALIVE? 2003-03-10 16:37:22 +00:00
interp 3fc36e865e + Splitting file surflets.scm into several packages
- Removing surflets.scm
+ The surflets package remains and collects the most usual used packages
  It does not export any more the outdaters, the access to IDs
    (like session-id), callbacks, form-query-list.
      (and maybe some other stuff I've forgot to mention here, see list
below).

The new packages are (not included in surflets are marked (*)):
+ surflets/addresses: MAKE-ADDRESS, MAKE-ANNOTATED-ADDRESS
+ surflets/bindings: GET-BINDINGS, EXTRACT-BINDINGS and stuff
+ surflets/ids (*): MY-SESSION-ID, .., INSTANCE-SESSION-ID
+ surflets/input-fields: MAKE-INPUT-FIELD, MAKE-NUMBER-INPUT-FIELD...
+ surflets/outdaters(*): MAKE-OUTDATER, OUTDATER?...
+ surflets/returned-via: RETURNED-VIA, CASE-RETURNED-VIA
+ surflets/send-html: SEND-HTML/SUSPEND...
+ surflets/surflet-sxml: URL-RULE,..., SURLFET-SXML-RULES, ...
+ surflets/sxml: SXML->STRING, DEFAULT-RULE,...
+ surflets/typed-optionals(*): TYPED-OPTIONALS, OPTIONALS
+ surflets/utilities(*): MAKE-CALLBACK, FORM-QUERY-LIST,
                         GENERATE-UNIQUE-NAME...
2003-03-10 16:29:32 +00:00
interp 909ed39ce2 Add optional arguments to ADJUST-TIMEOUT! and SESSION-ADJUST-TIMEOUT!
This argument defaults to OPTIONS-SESSION-LIFETIME and represents
the life-time in seconds for the session.
2003-03-10 12:57:44 +00:00
interp 3b51f7b82b + export conversion rules from surflets:
default-rules (default, text, attribute, plain-html and url)
  surflet-form-rules (input-field and surflet-form)
+ according to mainzelm: lowercase URL tag to url in surflet-xml
2003-03-09 20:15:08 +00:00
interp 31f0044e2c rename FORM-QUERY of surflets to FORM-QUERY-LIST
to avoid name puzzlement with the simple-surflet-api that already
exports this name (and we cannot change this, as this is adapted to PLT)
2003-03-09 19:57:56 +00:00
interp b12070e349 Add MY-SESSION-ID, MY-CONTINUATION-ID and MY-IDS to surflets, that return the respective IDs out from an request object. There are restrictions on their use. 2003-03-09 19:44:09 +00:00
interp e64b57f540 Correct some error from last commit:
* COMPOUND-INTERFACE needs its arguments to be defined already
* add bang to some other ADJUST-TIMEOUTs
2003-03-09 19:18:35 +00:00
interp 4748a882c3 Add a bang to SET-OPTIONS-SESSION-LIFETIME, SET-OPTIONS-CACHE-SURFLETS? and ADJUST-TIMEOUT 2003-03-09 18:49:09 +00:00
interp 536fe1394c no changes (internal restructuring using COMPOUND-INTERFACE) 2003-03-09 18:37:38 +00:00
interp 3f1542466c Rename misleading {SET,GET}-SURFLET-DATA to {SET,GET}-SESSION-DATA, as the data is specific to a session and not to a surflet. 2003-03-09 18:03:15 +00:00
interp bd613946d0 + CASE-RETURNED-VIA from mainzelm added
+ RETURNED-VIA alias for RETURNED-VIA? added
2003-03-03 10:27:49 +00:00
interp 98f0da38c6 Add MAKE-ANNOTATED-ADDRESS that creates string-annotated return-addresses 2003-02-28 08:22:29 +00:00
interp ca7e42cfa0 use scheme-with-scsh where appropriate. 2003-02-19 18:47:04 +00:00
interp da98c4b78c factor out GET-HEADER 2003-02-19 17:05:16 +00:00
interp 71650fbb41 catch every condition only for load-config et al.; otherwise catch only errors. 2003-02-19 09:43:29 +00:00
interp 21f62d5d8e + REQUEST object extended for SUrflets by INPUT-PORT
+ SURFLET-REQUESTs used in SUrflets
+ Use MAKE-INPUT-RESPONSE to generate SUrflet responses
2003-02-17 10:09:24 +00:00
interp 8e07bc1b07 Remove export of disappeared OPTIONS-SURFLET-PREFIX 2003-01-28 20:44:48 +00:00
interp 3d3655960b + Outhouse some components of surflet-handler.
+ Textual restructuring of surflet-handler.
+ Comments added.
2003-01-25 16:09:03 +00:00
interp 3f3bf045de Add SEND-ERROR, that sends an error. 2003-01-24 16:02:29 +00:00
interp 90df993fe2 remove double entries; minor name change 2003-01-24 15:28:25 +00:00
interp 6358463b5a + Change interface of SEND/SUSPEND, SEND/FINISH, SEND:
They expect SURFLET-RESPONSE objects now (not HTTP-RESPONSE).
+  SEND-HTML/SUSPEND, SEND-HTML/FINISH, SEND-HTML respect this.
2003-01-24 15:23:51 +00:00
interp 27f6c5a832 + complete renaming SERVLET->SURFLET
+ adjust to recent changes in RFC822 (surflets.scm, packages.scm)
2003-01-22 12:53:46 +00:00
sperber c58f265b5b Rename HTTPD-ERROR -> HTTPD-ERRORS. 2003-01-21 16:16:56 +00:00
interp 61fc543af2 Rename SERVLET --> SURFLET 2003-01-19 16:57:27 +00:00
interp 422a1db09f Add note about danger of killing / deleting current continuation.
Add current session's id and current session's continuation's id in
this message.
2003-01-16 12:53:10 +00:00
interp da98e19193 Force the result of the servlet to be printed into a string-port.
The servlet programmer is (nearly) unaware of this.

This removes the problem that arises if send/suspend is called in HTTPD
while transmitting data to the browser.
2003-01-14 11:27:42 +00:00
interp 4606552c2b rename INSTANCE to SESSION and SESSION to INSTANCE 2002-12-07 22:26:40 +00:00