Ken Tilton wrote:
I made the change so the little indicator to the right of the package pop-up says either "on" or "all" and that worked when I selected a package. But then I clicked on exported-only and the tag reverted to all. I had a lisp (describe request) in the processing stream and can see why:
#<HUNCHENTOOT::REQUEST @ #x21aa559a> is an instance of #<STANDARD-CLASS HUNCHENTOOT::REQUEST>: The following slots have :INSTANCE allocation: HEADERS-IN ((:USER-AGENT . "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Version/3.1 Safari/525.13") (:CACHE-CONTROL . "max-age=0") (:X-REQUESTED-WITH . "XMLHttpRequest") (:ACCEPT-LANGUAGE . "en-US") (:ACCEPT-ENCODING . "gzip, deflate") (:REFERER . "http://localhost:8000/apropos") (:ACCEPT . "*/*") (:COOKIE . "hunchentoot-session=3%3a0b9ec45ad30835f959590b891dc5ddee") (:CONNECTION . "keep-alive") (:HOST . "localhost:8000")) METHOD :GET URI "/apropos/EXPORTED-ONLY-P?EXPORTED-ONLY-P=on" SERVER-PROTOCOL :HTTP/1.1 CONTENT-STREAM #<FLEXI-STREAMS::FLEXI-BINARY-LATIN-1-IO-STREAM @ #x219f7132> COOKIES-IN (("hunchentoot-session" . "3:0b9ec45ad30835f959590b891dc5ddee")) GET-PARAMETERS (("EXPORTED-ONLY-P" . "on")) POST-PARAMETERS NIL SCRIPT-NAME "/apropos/EXPORTED-ONLY-P" QUERY-STRING "EXPORTED-ONLY-P=on" SESSION #<HUNCHENTOOT::SESSION @ #x21862422> AUX-DATA NIL RAW-POST-DATA NIL
The get-parameters just shows the effected field. Is that something we are doing? I would say we could change rules to say (or (param?...) .cache), but I recall you said... well, that was attributes, nothing is said if the attibute goes away or something.
OK, I have been thinking. We like the granularity, so these get-parameters -- er, why aren't they post parameters? -- should not be treated as they are now as definitive of all the data, they just signify specific updates to the model.
So I am thinking we take a different approach and simply loop over the values received and SETF the model slots, which should be c-in or c?n if they need to calculate an interesting initial value for a field based on other info.
I will play with this.
Meanwhile, I see a parameter on the server that says output-chunking is true -- in the request handler instead of bunging them all into a single string can we just write them one at a time to page and trust hunch to chunk them?
kt
Ken Tilton wrote:
I will play with this.
I get it! Hopefully this will be a great weekend, I am really going to tear into what Andy has accomplished and see if I can rig up something just a little more transparent.
What I see is a pattern with a page having an attribute of X and then a widget for X that has a rule watching the parameter X. That works well (again my deliberate withholding of Cells doc fails to stop an adopter!) but I want to see if we can simply create a widget named X and have it all Just Work, eliminating what is not all that bad, viz., creating a parallel slot on the page instance. But that trick might get exciting if we get into arrays/lists where a page has two Xs as children -- well, it could be handled, but why not automate that?
It gets trickier because we want a two-way exchange here -- maybe we have a c?n rule which when suitably provoked calculates a new initial default based on the user selecting an entirely new something-else in some other field. So sometimes when a value changes the Lisp model must be told, and sometimes the ajax model must be told.
I think sorting /this/ out will make for a more interesting weekend and possibly have me extending Cells a little.
kt
Am 11.04.2008 um 23:47 schrieb Ken Tilton:
Ken Tilton wrote:
I will play with this.
I get it! Hopefully this will be a great weekend, I am really going to tear into what Andy has accomplished and see if I can rig up something just a little more transparent.
What I see is a pattern with a page having an attribute of X and then a widget for X that has a rule watching the parameter X. That works well (again my deliberate withholding of Cells doc fails to stop an adopter!) but I want to see if we can simply create a widget named X and have it all Just Work, eliminating what is not all that bad, viz., creating a parallel slot on the page instance. But that trick might get exciting if we get into arrays/lists where a page has two Xs as children -- well, it could be handled, but why not automate that?
It gets trickier because we want a two-way exchange here -- maybe we have a c?n rule which when suitably provoked calculates a new initial default based on the user selecting an entirely new something-else in some other field. So sometimes when a value changes the Lisp model must be told, and sometimes the ajax model must be told.
I think sorting /this/ out will make for a more interesting weekend and possibly have me extending Cells a little.
Exactly what I'm after - man, if we can get this done then we have THE killer app for Cells!
Yup - so let's hack away ...
Frank