Jocelyn Fiat
aee512a316
fixed name of file with class name
2013-03-30 08:57:54 +01:00
Jocelyn Fiat
57a695555a
fixed typo in default name for maintenance
2013-03-29 23:15:54 +01:00
Jocelyn Fiat
a7e1be115a
Added a maintenance filter
2013-03-29 23:01:37 +01:00
Jocelyn Fiat
5b4c498ba6
added WSF_AGENT_FILTER
2013-03-29 22:16:27 +01:00
Jocelyn Fiat
decb9d0f9b
more info in debug_output for uploaded file
2013-03-29 21:22:56 +01:00
Jocelyn Fiat
e3e6fd7f62
better error output for CGI connector
2013-03-29 21:00:02 +01:00
Jocelyn Fiat
0ef31cead3
Added WSF_LAUNCHABLE_SERVICE which use a deferred `launch' feature.
...
This makes it easy to support multiple connectors support
2013-03-29 17:51:20 +01:00
Jocelyn Fiat
a8a3f3cb8b
reuse implementation from WSF_REQUEST to get input data for MIME handlers.
2013-03-29 17:50:34 +01:00
Jocelyn Fiat
8647ae1cd3
Added assertion for mime helper
2013-03-29 15:53:04 +01:00
Jocelyn Fiat
ec2792b645
Do not change tmp_name from WSF_UPLOADED_FILE ... otherwise the file will be removed at the end of the request
2013-03-29 15:10:51 +01:00
Jocelyn Fiat
1470389600
Fixed MIME multipart form data handler
...
And use content-length value if provided.
2013-03-29 15:10:17 +01:00
Jocelyn Fiat
1fcc69b268
check against capacity not count
2013-03-29 15:09:34 +01:00
Jocelyn Fiat
3bc3e3b874
be sure we got the full content same as content length
2013-03-29 14:20:01 +01:00
Jocelyn Fiat
f5b23c2571
Added assertion to WSF_UPLOADED_FILE
2013-03-29 12:11:43 +01:00
Jocelyn Fiat
9b0ec8a55b
Merge branch 'master' of https://github.com/EiffelWebFramework/EWF
2013-03-28 19:08:06 +01:00
Jocelyn Fiat
a0c000b50f
at this point we have no garantie that the header are sent
...
this can be ensured only at {WGI_RESPONSE}.commit exit.
2013-03-28 19:06:55 +01:00
Jocelyn Fiat
44cb0ad98c
Uncommented code to make recognized_methods supported by the method not allowed response.
...
Still need to see how to use it and set the recognized methods for the application.
2013-03-27 17:10:04 +01:00
Jocelyn Fiat
01cab452d8
Removed WSF_URI_*_ROUTER_HELPER and use instead the WSF_URI_*_HELPER_FOR_ROUTED_SERVICE
...
(the removed class were not in latest release, so this is safe to use the new name)
Cosmetic
2013-03-27 17:00:58 +01:00
Jocelyn Fiat
ab9c304597
added wsf_html for (un)installation
2013-03-27 15:24:40 +01:00
Jocelyn Fiat
178a48cd7e
Updated all-safe.ecf
...
(add all-stable-safe.ecf that includes only the library, examples and specific draft lib)
2013-03-27 15:22:32 +01:00
Jocelyn Fiat
9f132a7b72
new integration ecf file that includes most of the library .ecf of EWF
...
(note to include non library ecf, the related ecf should have a library_target)
2013-03-27 13:11:49 +01:00
Jocelyn Fiat
403b9f7bde
better use a root class
2013-03-27 13:08:57 +01:00
Jocelyn Fiat
a05e08c207
corrected null-safe.ecf
2013-03-27 13:07:55 +01:00
Jocelyn Fiat
c9d11b3adb
fixed compilation
2013-03-26 16:31:59 +01:00
Jocelyn Fiat
c3c8c66f59
allow to to set html attribute to the select widget
...
(useful to add code like onchange="this.form.submit()")
2013-03-26 15:27:23 +01:00
Jocelyn Fiat
a23871ff5b
Moved more components from CMS to wsf_html.
...
This includes WSF_PAGER, and feature in WSF_THEME .. including WSF_API_OPTIONS
used to compute url and link.
2013-03-26 14:17:10 +01:00
Jocelyn Fiat
2eb9abeb37
Added remove_header_named (a_name)
2013-03-26 10:33:06 +01:00
Jocelyn Fiat
955272f505
Do not use socket_ok .. but readable (as specified in precondition of read_stream_thread_aware
2013-03-26 09:16:34 +01:00
Jocelyn Fiat
1ee6ffa725
Added self doc to the wsf file system handler
...
Allow to hide the wsf file system handler from self documentation
Better description format handling for the self doc
2013-03-25 19:13:55 +01:00
Jocelyn Fiat
da28baf872
use wsf_html lib in the demo
2013-03-22 20:15:27 +01:00
Jocelyn Fiat
3b87481c93
removed obsolete call
2013-03-22 20:15:09 +01:00
Jocelyn Fiat
53f848758a
added wsf_html-safe.ecf to all-safe.ecf
2013-03-22 20:14:58 +01:00
Jocelyn Fiat
1f7f569d82
restored assertion removed by error
2013-03-22 20:12:12 +01:00
Jocelyn Fiat
52cc356f8e
Extracted the WIDGET and FORM classes out of "cms" component
...
and build the wsf_html library which also include the previous css lib.
2013-03-22 20:11:44 +01:00
Jocelyn Fiat
de57e814c0
Added WSF_STARTS_WITH_AGENT_HANDLER
2013-03-22 16:07:23 +01:00
Jocelyn Fiat
273b4d13f5
Fixed default status code for redirection response message object.
2013-03-22 16:06:45 +01:00
Jocelyn Fiat
c44cf5e983
Fixed assertion that were broken with recent delayed header response.
...
Changed semantic of put_header_lines and add_header_lines,
Now the arguments are iterable of string (i.e the header line)
The previous features were not used, and were not well named.
So we removed them, and reused the names for adpated implementation.
2013-03-22 16:06:10 +01:00
Jocelyn Fiat
665772bda2
Display only suggestion for request's method
2013-03-22 15:23:24 +01:00
Jocelyn Fiat
aa479af8fd
Include cms and css into the all-safe.ecf
2013-03-22 15:11:30 +01:00
Jocelyn Fiat
9e2410c284
update CMS code due to CMS_CSS_* renaming
2013-03-22 15:10:49 +01:00
Jocelyn Fiat
eca868f10f
Fixed self documentation when querying documentation related to a specific resource (uri, uri-template, ..)
...
Before it was showing only the first found
so if we had
"/foo" GET -> FOO_GET_HANDLER
"/foo" POST -> FOO_POST_HANDLER
It was showing only the first, now this is working as expected.
2013-03-22 15:10:26 +01:00
Jocelyn Fiat
a4095b4e16
Moved the *_CSS_* class in their own (draft) library, since they are not CMS specific.
2013-03-22 15:07:45 +01:00
Jocelyn Fiat
5eb1f89273
Fixing feature comments
2013-03-21 17:53:45 +01:00
Jocelyn Fiat
07ac6a6742
cosmetic
2013-03-21 15:55:42 +01:00
Jocelyn Fiat
813caa15e0
Removed WSF_AGENT_HANDLER since it was an artificial notion,
...
as we have no common ancestor for WSF_HANDLER having
execute (req: WSF_REQUEST; res: WSF_RESPONSE)
2013-03-21 15:50:10 +01:00
Jocelyn Fiat
de8d36d0db
cosmetic
2013-03-21 15:48:07 +01:00
Jocelyn Fiat
62d880a7c1
Fixed signature of `set_next' to allow redefinition.
...
Added assertions
2013-03-21 15:47:52 +01:00
Jocelyn Fiat
1f76fd5360
Now WSF_FILTER_HANDLER is a handler and has formal generic G constrained to WSF_HANDLER
...
This eases implementation of potential descendants.
2013-03-21 15:47:10 +01:00
Jocelyn Fiat
19df76c332
Added WSF_HANDLER_FILTER_WRAPPER to build a bridge from router to filter.
2013-03-21 15:44:29 +01:00
Jocelyn Fiat
78c83a4b69
Added HTTP_AUTHORIZATION.is_basic: BOOLEAN query to know if this is a Basic HTTP Authorization.
2013-03-21 15:42:16 +01:00
Jocelyn Fiat
7c7bf9a3f8
Introduced WSF_ROUTER_SESSION
...
This fixes CQS violation from WSF_ROUTER.dispatch_and_return_handler (...): ? WSF_HANDLER
and related code, and this is more compliant with concurrency.
In addition, the WSF_ROUTER_SESSION can be enhanced in the future to answer more advanced needs.
2013-03-21 15:41:46 +01:00
Jocelyn Fiat
ade9a30c03
Fixed WSF_FILE_RESPONSE and WSF_DOWNLOAD_RESPONSE
...
and set the status code to be Ok by default
2013-03-21 15:23:08 +01:00
Jocelyn Fiat
3f237c737d
mimic design of WSF_ROUTED_SERVICE for WSF_FILTERED_SERVICE
...
and update the filter example to make it simpler and reuse code.
2013-03-19 22:00:25 +01:00
Jocelyn Fiat
115b622724
updated install and uninstall scripts
2013-03-19 17:17:59 +01:00
Jocelyn Fiat
f502e6a6f7
Updated WSF_NOT_IMPLEMENTED_RESPONSE to include the request uri
2013-03-19 17:17:44 +01:00
Jocelyn Fiat
73f675db60
added WSF_..._ROUTER_HELPER and made the previous WSF_..._ROUTED_SERVICE obsolete
2013-03-19 17:17:14 +01:00
Jocelyn Fiat
b629bba5cc
WSF_CORS_OPTIONS_FILTER should not inherit from WSF_URI_TEMPLATE_HANDLER
2013-03-19 17:09:18 +01:00
Jocelyn Fiat
3faa2ab815
Moved all *_CONTEXT_* router related classes into wsf_router_context.ecf library
...
This makes wsf simpler to discover.
And advanced context enabled handler, mapping, ... are still available for now in wsf_router_context.ecf library
2013-03-19 11:54:01 +01:00
Jocelyn Fiat
4d7660a9e3
Added deferred WSF_AGENT_HANDLER
...
Added WSF_NOT_IMPLEMENTED_RESPONSE
2013-03-18 22:05:34 +01:00
Jocelyn Fiat
b8490eff28
Merge branch 'master' of github.com:EiffelWebFramework/EWF
2013-03-18 16:24:58 +01:00
Jocelyn Fiat
fc954c9521
added small doc on how to include EWF git repo in another git repository
2013-03-18 16:23:13 +01:00
Jocelyn Fiat
86777d75ea
Implemented more user friendly WSF_RESPONSE
...
i.e allow to change the status code and the header as long as no content is really sent back to the client
This requires an addition WGI_RESPONSE, new post_commit_action: PROCEDURE [...]
2013-03-12 16:52:45 +01:00
Jocelyn Fiat
82784529fe
Enhanced HTTP_HEADER with new helper features.
2013-03-12 16:19:43 +01:00
Jocelyn Fiat
f6e15b6ce1
Made it compilable with 7.1
2013-03-08 22:13:27 +01:00
Jocelyn Fiat
334f7a362b
Factorized code for checkbox and radio input.
...
Renamed `text' and similar to `title' and similar
2013-03-08 16:01:05 +01:00
Jocelyn Fiat
b278dba565
adding back missing uri template library
2013-03-08 16:00:15 +01:00
Jocelyn Fiat
58adb7ff88
Fixed CMS_HTML_FILTER which was buggy and was including the last processed tag even if it was excluded.
2013-03-08 15:49:25 +01:00
Jocelyn Fiat
617c48adcb
Added support for OpenID identity
...
Added user roles management
Improvement CMS_HOOK_FORM_ALTER design.
Factorized code into CMS_WIDGET_COMPOSITE
Use general notion of CMS_WIDGET (and CMS_FORM allows CMS_WIDGET, and not just CMS_FORM_ITEM)
Fixed various CMS_WIDGET traversal, and fixed related issue for CMS forms
Fixed CMS_FORM_CHECKBOX_INPUT when no value was set.
Added CMS_FORM_DATA.cached_value .. to pass computed values during validation to submit actions (mainly for optimization)
Added support for @include=filename in CMS_CONFIGURATION
Added CMS_WIDGET_TABLE as filled version of CMS_WIDGET_AGENT_TABLE (renamed from previous CMS_WIDGET_TABLE)
Many improvements to the CMS_FORM design
Some improvements to CMS_MODULE
...
2013-03-08 15:48:39 +01:00
Jocelyn Fiat
231b263a82
Added `WSF_REQUEST.table_item' to help user get table item with flat name.
...
i.e instead of having item ("foo").item ("bar"), you can do table_item ("foo[bar]")
2013-03-08 15:36:31 +01:00
Jocelyn Fiat
37016a7796
Added user friendly function to get returned openid attributes
2013-03-08 15:35:23 +01:00
Jocelyn Fiat
504baaf859
better have hash table indexed by STRING_32 rather than READABLE_STRING_32 for now
2013-03-08 15:34:35 +01:00
Jocelyn Fiat
0d9e1a84f3
Use the advanced SED storable to store data on disk (rather than the runtime storable)
2013-03-08 15:34:04 +01:00
Jocelyn Fiat
2501bd3495
Added missing file from previous commits.
2013-03-01 18:27:22 +01:00
Jocelyn Fiat
f029c746bc
added make_with_text_and_css on CMS_WIDGET_TABLE_ITEM
2013-03-01 18:21:05 +01:00
Jocelyn Fiat
42bd4fa58f
added notion of site identifier .. applied to the session's cookie name
2013-03-01 18:20:35 +01:00
Jocelyn Fiat
98f3739c7c
Fixed HTTP_IF_MODIFIED_SINCE handling in WSF_FILE_SYSTEM_HANDLER ...
2013-03-01 18:19:51 +01:00
Jocelyn Fiat
441cf86eda
Enhanced HTTP_DATE with yyyy_mmm_dd output string.
2013-03-01 18:11:22 +01:00
Jocelyn Fiat
c1d913e67d
display a message if the user has no email ... to reset password
2013-03-01 18:11:03 +01:00
Jocelyn Fiat
65d8665a64
Display the login name, instead of just "My Account"
2013-03-01 18:10:40 +01:00
Jocelyn Fiat
4a92612441
Does not accept empty password
2013-03-01 18:10:16 +01:00
Jocelyn Fiat
7cf395a9bc
added the notion of site identifier "site.id" (typically this could be a UUID)
2013-03-01 18:10:02 +01:00
Jocelyn Fiat
7efcdb065e
Merge branch 'master' of https://github.com/EiffelWebFramework/EWF
2013-03-01 12:55:54 +01:00
Jocelyn Fiat
218b2e44a7
Also take into account sublink's permission
2013-03-01 12:55:26 +01:00
Jocelyn Fiat
544401c210
Default permission should be set to False, not to True
...
(the previous code was mainly for debugging)
2013-03-01 12:54:58 +01:00
Jocelyn Fiat
f3d37024fb
Fixed url computing when a `base_url' is provided
2013-03-01 12:53:48 +01:00
Jocelyn Fiat
ce7be6ea34
added CMS widgets demonstration in DEMO_MODULE
2013-02-28 19:37:06 +01:00
Jocelyn Fiat
5dd6079fad
add CMS_WIDGET_... to ease html page development.
2013-02-28 19:36:30 +01:00
Jocelyn Fiat
e7b8f398f7
improved CMS_CSS_STYLE and WITH_CSS_STYLE
2013-02-28 19:36:09 +01:00
Jocelyn Fiat
9d8e8eb25a
Move draft\library\security\openid under library\security\openid
2013-02-28 17:00:13 +01:00
Jocelyn Fiat
ff9be2cf8e
Made it also compilable with compiler < 7.2
2013-02-28 14:13:04 +01:00
Jocelyn Fiat
db4f665de1
Added a version of ISE Library URI modified to be compilable with compiler < 7.2
...
Fixed openid when redirection is involved
Fixed Openid Attribute Exchange implementation (AX)
Added WSF_REQUEST.items_as_string_items: ... for convenience, and ease integration with other components (such as the new openid)
2013-02-28 13:10:04 +01:00
Jocelyn Fiat
06c9364362
updated relative path
2013-02-28 10:56:58 +01:00
Jocelyn Fiat
69a77dc2c5
OpenID consumer implementation
...
REQUIRES EiffelStudio 7.2
2013-02-27 22:13:31 +01:00
Jocelyn Fiat
d4091a57c9
First version of OpenID consumer
...
(light implementation)
2013-02-27 22:09:06 +01:00
Jocelyn Fiat
2302a91b5b
Merge branch 'master' of https://github.com/EiffelWebFramework/EWF
2013-02-27 21:50:14 +01:00
Jocelyn Fiat
22a725b8be
Added a way to call a callback on launched and stopped for Nino connector
2013-02-27 21:49:42 +01:00
Jocelyn Fiat
92d3f642ac
Provided a way to report cURL error code back to http_client, via HTTP_CLIENT_RESPONSE
2013-02-27 21:49:03 +01:00
Jocelyn Fiat
598f6df366
Provided `url_encoded_name' on the WSF_VALUE interface
2013-02-27 21:48:33 +01:00
Jocelyn Fiat
9c0a2bd6a1
prefer 2 append call, rather than create a temp intermediary string object with +
2013-02-26 15:33:00 +01:00
Jocelyn Fiat
b543a6b6f2
Added functionalities to CMS_FORM_.. classes
2013-02-21 19:08:26 +01:00