cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pier Fumagalli <>
Subject Re: Polishing the flow contracts
Date Sun, 30 Mar 2003 22:19:59 GMT
On 30/3/03 20:32, "Stefano Mazzocchi" <> wrote:

> Pier Fumagalli wrote:
>> On 30/3/03 2:43 pm, "Stefano Mazzocchi" <> wrote:
>>> Here is what I would like to see:
>>> 1) no functions without an object namespace. This is to imply that all
>>> non-prefixed functions belong to the flow. Provides coherent cognitive
>>> context.
>> I don't understand that.... What do you mean by "function with(out) object
>> namespace?
> I mean functions without an object up front.
> info() <- bad
> <- good

Ah... Ok, gotcha...

Now, you realize that "info()" can also be called as "", right?
So, you are implying that you want the basic class of the "script" object
not to expose any method, much like an empty interface...

So, the only thing we should expose are 3 read only properties:

cocoon: an instance of Cocoon
log: an instance of Log
flow: an instance of Flow

>>> 4) the following functions
>>> Flow Object:
>>>   flow.import() -> imports another flowscript
>> Hmmm... Should we allow cross-language (when/if we're going to have it)
>> flowscripts interaction? Because otherwise I'd prefer a name such as
>> "interpreter"....
> I don't get it. What's wrong with the name flow?

"Flow" in my mind is the whole kit and caboodles: it's the "Cocoon Flow", a
set of API to do something.

The "Flow" in my mind is made up by:
- "Cocoon", an interface to talk to the cocoon internals
- "Log" the logging facility
- "Interpreter" whatever executes our script
- Other objects (such as "Continuation") which instances we can get from the
  three above mentioned instances...

"Flow" is tha package (IDL module), "Interpreter" is the connection to the
scripting engine...

>>> Cocoon Object:
>>>   cocoon.sendPage(uri, dict) -> sends a pipeline to the client
>>>   cocoon.sendPageAndWait(uri, dict) -> sends a pipeline to the client
>>> and save the continuation.
>>>   cocoon.process(uri, dict, output
>> Stefano... This one was cut as well... Can you please forward the rest????
> Oh, #$&*! No, i can't, that message wasn't stored in my sent folder :/
> grrrr
> I hate these things.

Use Entourage or Apple Mail on your OS/X box! :-) :-) :-)


View raw message