We're hampered by not having a secure connection in windows.
So we have we no capability for an SSL session with X.509 certificates,
minimally, an SSL session with Basic HTTP Authentication
(username/password)?
Slava did some things to make it better, but it hasn't
worked yet and I haven't had time to track down why. I feel bad I haven't
given him any feedback yet after he did this for me. That being said,
here's some fixes to \extra\webapps\blogs that make it work up to a point:
http://paste.factorcode.org/paste?id=2043
I've assumed that the code on the page above is the new
extra/webapps/blogs/blogs.factor file. I overwrote the original. I see the
deltas in the Git GUI.
The comments I've added at the end may help you get started
to where you can see the main menu.
! make sure sqlite dlls in factor folder: sqlite3.exe, .dll, .def
Done. I downloaded the three files from
http://www.sqlite.org/download.html
! init-db ! only once needed
My init-db did not work:
(U) Quotation: [ set-namestack init-catchstack self quot>> call -> stop ]
(O) Word: listener-thread
(O) Word: listener
(O) Word: (listener)
(U) Quotation: [
[ ~quotation~ dip swap ~quotation~ dip ] dip swap
[ call datastack ] dip -> swap [ set-datastack ] dip
]
(U) Quotation: [ call -> datastack ]
(O) Word: init-db
(O) Method: M\ sqlite-db db-open
(O) Word: sqlite-open
(U) Quotation: [
63 special-object error-thread set-global
continuation -> error-continuation set-global
[ original-error set-global ] [ rethrow ] bi
]
I need to learn how to use the debugger. Are we stacking up or down? Looks
like down, but I'm not sure.
I had to stop here. Probably didn't init something else. Any ideas?
! blog-server launch
! browse to localhost:8080/blogs
! look for log in C:\factor\logs\http.server
! look for sqlite in C:\Documents and Settings\you\blogs
! I can see the menu, but can't add a blog - seems to be ssl security
problem, but it may help you see how things work.
The current furnace paradigm has you creating many actions,
then sending quots to slots in them. I've been working on something where
the page uses a tuple and generics to process & render itself, and
a router determines which tuple to start with. This all
happens through a single action. So the crud operations for an object all
descend from a general object tuple page, giving lots of places for
overriding behavior.
The idea sounds well-factored.
I'm not trying to make an argument that it's better, it
just fits how I think. It's also not ready for prime time, but you asked,
so I answered :)
A further squirrely thing I'm doing is generating the HTML &
unobtrusive JS
What is unobtrusive JavaScript?
along the way, rather than having any page artifacts that
get parsed (chloe) or filled (fhtml). And I've written words to add to and
reuse the tuple slot meta data. This is the html/form generation for a
subset of fields in the tuple:
content-edit-fields
"Org Information" <HTML> <>LEGEND <>+
"org-fields" all-id
<>FIELDSET <>BR
"Save" button <>submit+
"org" all-id
<>form
yields:
http://paste.factorcode.org/paste?id=2044
I saved down the form and dropped it on Chrome and saw a reasonable 4-field
form in a group box with a save button below the group box. How do I learn
more about this scheme and what you have in mind for it? Is there a blog
describing the idea in more detail?
Shaping
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk