Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-15 Thread Glen Ezkovich
On Jan 15, 2005, at 12:57 PM, Stefano Mazzocchi wrote: Glen Ezkovich wrote: On Jan 14, 2005, at 2:38 PM, Stefano Mazzocchi wrote: Good luck! :-) And in case you emerge back from the sea of email alive and you feel like writing a summary, I'm sure a lot of people will love you for that eheh :-) O

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-15 Thread Stefano Mazzocchi
Glen Ezkovich wrote: On Jan 14, 2005, at 2:38 PM, Stefano Mazzocchi wrote: Good luck! :-) And in case you emerge back from the sea of email alive and you feel like writing a summary, I'm sure a lot of people will love you for that eheh :-) Or hate me ;-) for some philosophers there is no differe

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-14 Thread Glen Ezkovich
On Jan 14, 2005, at 2:38 PM, Stefano Mazzocchi wrote: Good luck! :-) And in case you emerge back from the sea of email alive and you feel like writing a summary, I'm sure a lot of people will love you for that eheh :-) Or hate me ;-) -- Stefano. Glen Ezkovich HardBop Consulting glen at hard-bo

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-14 Thread Stefano Mazzocchi
Glen Ezkovich wrote: On Jan 13, 2005, at 6:53 PM, Stefano Mazzocchi wrote: Glen Ezkovich wrote: By the way, I'm curious what you think about making a block's resources available. There are two conflicting wiki pages. there is this A block exposes a sitemap and Avalon Components (both optiona

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-13 Thread Glen Ezkovich
On Jan 13, 2005, at 6:53 PM, Stefano Mazzocchi wrote: Glen Ezkovich wrote: By the way, I'm curious what you think about making a block's resources available. There are two conflicting wiki pages. there is this A block exposes a sitemap and Avalon Components (both optionally) from http://wiki

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-13 Thread Stefano Mazzocchi
Glen Ezkovich wrote: By the way, I'm curious what you think about making a block's resources available. There are two conflicting wiki pages. there is this A block exposes a sitemap and Avalon Components (both optionally) from http://wiki.apache.org/cocoon/GT2003RealBlocks and this A blo

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-12 Thread Glen Ezkovich
On Jan 12, 2005, at 4:53 PM, Stefano Mazzocchi wrote: Glen Ezkovich wrote: After rereading much of this discussion and the various wiki pages concerning blocks I withdraw almost everything I said. Its now obvious to me that the way to achieve everything we are talking about is to allow for multi

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-12 Thread Stefano Mazzocchi
Glen Ezkovich wrote: After rereading much of this discussion and the various wiki pages concerning blocks I withdraw almost everything I said. Its now obvious to me that the way to achieve everything we are talking about is to allow for multiple inheritance. I am not recommending this since I ha

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-12 Thread Glen Ezkovich
After rereading much of this discussion and the various wiki pages concerning blocks I withdraw almost everything I said. Its now obvious to me that the way to achieve everything we are talking about is to allow for multiple inheritance. I am not recommending this since I have not thought deepl

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-11 Thread Daniel Fagerstrom
Stefano Mazzocchi wrote: Reinhard Poetz wrote: Answer: It depends on the order of declaring your scripts in . The first helper() method declared will be found. But there is only one helper() method per block!? Yes. Therefore we need something more sohpisticated than imports. I'm having a hard

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-11 Thread Glen Ezkovich
I really hate to say anything about this but ... On Jan 11, 2005, at 8:57 AM, Stefano Mazzocchi wrote: Reinhard Poetz wrote: Answer: It depends on the order of declaring your scripts in . The first helper() method declared will be found. But there is only one helper() method per block!? Yes. Ther

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-11 Thread Stefano Mazzocchi
Reinhard Poetz wrote: Answer: It depends on the order of declaring your scripts in . The first helper() method declared will be found. But there is only one helper() method per block!? Yes. Therefore we need something more sohpisticated than imports. I'm having a hard time following this convers

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-11 Thread Glen Ezkovich
On Jan 11, 2005, at 3:57 AM, Torsten Curdt wrote: k ...then I did understand correctly. the "callFunction" proposal got me a bit off the track ;) I seem to be good at that. Since it was not something that I seriously support, I will refrain from explaining. ;P Glen Ezkovich HardBop Consulting gle

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-11 Thread Torsten Curdt
ok ...what version of javascript does rhino implement? I could not find that information... http://www.mozilla.org/rhino/overview.html (in trunk we use Rhino 1.6pre1) bummer ...must have missed that one ok ...so 1.5 it is cheers -- Torsten

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-11 Thread Reinhard Poetz
Torsten Curdt wrote: that's the goal. But with imports in you will get into trouble: In this case print(blockBFunc()); will return "A". k ...then I did understand correctly. the "callFunction" proposal got me a bit off the track ;) But there is only one helper() method per block!?

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-11 Thread Torsten Curdt
that's the goal. But with imports in you will get into trouble: In this case print(blockBFunc()); will return "A". k ...then I did understand correctly. the "callFunction" proposal got me a bit off the track ;) But there is only one helper() method per block!? Yes. Therefore we need

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-11 Thread Reinhard Poetz
Torsten Curdt wrote: Problem: flow.js of blockA -- function blockAFunc() { return helper(); } function helper() { return "A"; } flow.js of blockB - function blockBFunc() { return helper(); } function helper() { return "B"; } flow.js of blockC ---

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-11 Thread Torsten Curdt
Problem: flow.js of blockA -- function blockAFunc() { return helper(); } function helper() { return "A"; } flow.js of blockB - function blockBFunc() { return helper(); } function helper() { return "B"; } flow.js of blockC - function blockCFun

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-10 Thread Glen Ezkovich
On Jan 10, 2005, at 10:35 AM, Daniel Fagerstrom wrote: Glen Ezkovich wrote: I've been thinking about why one would want to isolate a blocks flowscripts from other blocks. So far I see two reasons: 1.) some flowscript functions are simply helper functions and should not be directly callled.

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-10 Thread Daniel Fagerstrom
Glen Ezkovich wrote: I've been thinking about why one would want to isolate a blocks flowscripts from other blocks. So far I see two reasons: 1.) some flowscript functions are simply helper functions and should not be directly callled. 2.) a block may use its own classloader and therefore

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-10 Thread Reinhard Poetz
Reinhard Poetz wrote: Daniel Fagerstrom wrote: Reinhard Poetz wrote: Daniel Fagerstrom wrote: A somewhat unrelated thing that we have to think about is the web continuations created in the block, do we need to shield the web continuations created in the block or not? shielded from what? The

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-10 Thread Reinhard Poetz
Daniel Fagerstrom wrote: Reinhard Poetz wrote: Daniel Fagerstrom wrote: A somewhat unrelated thing that we have to think about is the web continuations created in the block, do we need to shield the web continuations created in the block or not? shielded from what? The user should be able to r

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-10 Thread Daniel Fagerstrom
Reinhard Poetz wrote: Daniel Fagerstrom wrote: A somewhat unrelated thing that we have to think about is the web continuations created in the block, do we need to shield the web continuations created in the block or not? shielded from what? The user should be able to resume a continuation cre

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-10 Thread Glen Ezkovich
On Jan 10, 2005, at 9:32 AM, Reinhard Poetz wrote: Torsten Curdt wrote: So it seems, flow replaces components? If createNewAccount() gathers sends pages, collects information, creates an Account, etc. then why not just use cocoon.sendPageAndWait? because this is done in the called block, not by

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-10 Thread Reinhard Poetz
Glen Ezkovich wrote: On Jan 10, 2005, at 9:07 AM, Torsten Curdt wrote: So it seems, flow replaces components? If createNewAccount() gathers sends pages, collects information, creates an Account, etc. then why not just use cocoon.sendPageAndWait? because this is done in the called block, not by t

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-10 Thread Reinhard Poetz
Torsten Curdt wrote: So it seems, flow replaces components? If createNewAccount() gathers sends pages, collects information, creates an Account, etc. then why not just use cocoon.sendPageAndWait? because this is done in the called block, not by the callee. Yes, and when sendPageAndWait returns

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-10 Thread Glen Ezkovich
On Jan 10, 2005, at 9:07 AM, Torsten Curdt wrote: So it seems, flow replaces components? If createNewAccount() gathers sends pages, collects information, creates an Account, etc. then why not just use cocoon.sendPageAndWait? because this is done in the called block, not by the callee. Yes, and w

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-10 Thread Glen Ezkovich
I've been thinking about why one would want to isolate a blocks flowscripts from other blocks. So far I see two reasons: 1.) some flowscript functions are simply helper functions and should not be directly callled. 2.) a block may use its own classloader and therefore possibly use different ve

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-10 Thread Torsten Curdt
So it seems, flow replaces components? If createNewAccount() gathers sends pages, collects information, creates an Account, etc. then why not just use cocoon.sendPageAndWait? because this is done in the called block, not by the callee. Yes, and when sendPageAndWait returns the calling blocks fl

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-10 Thread Glen Ezkovich
On Jan 10, 2005, at 7:24 AM, Reinhard Poetz wrote: So it seems, flow replaces components? If createNewAccount() gathers sends pages, collects information, creates an Account, etc. then why not just use cocoon.sendPageAndWait? because this is done in the called block, not by the callee. Yes, and w

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-10 Thread Reinhard Poetz
Daniel Fagerstrom wrote: Reinhard Poetz wrote: Daniel Fagerstrom wrote: A question here is what flowscript functions that should be exported from a block. I would prefer to explictly enumerate the functions and possibly whole scripts that are exported rather than exporting everything in the ma

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-10 Thread Reinhard Poetz
Glen Ezkovich wrote: On Jan 10, 2005, at 3:50 AM, Daniel Fagerstrom wrote: Reinhard Poetz wrote: I think of composing an application out of flow calls: function myF() { var newAccount = [here call a flow function of another block] e.g. cocoon.blocks.blockB.createNewAccount(

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-10 Thread Glen Ezkovich
On Jan 10, 2005, at 3:50 AM, Daniel Fagerstrom wrote: Reinhard Poetz wrote: I think of composing an application out of flow calls: function myF() { var newAccount = [here call a flow function of another block] e.g. cocoon.blocks.blockB.createNewAccount(); if(newAccount.t

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-10 Thread Daniel Fagerstrom
Reinhard Poetz wrote: Daniel Fagerstrom wrote: A question here is what flowscript functions that should be exported from a block. I would prefer to explictly enumerate the functions and possibly whole scripts that are exported rather than exporting everything in the map:flow sections. Maybe we

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-10 Thread Reinhard Poetz
Daniel Fagerstrom wrote: Reinhard Poetz wrote: I think of composing an application out of flow calls: function myF() { var newAccount = [here call a flow function of another block] e.g. cocoon.blocks.blockB.createNewAccount(); if(newAccount.type == "xyz") { cocoon.s

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-10 Thread Daniel Fagerstrom
Reinhard Poetz wrote: I think of composing an application out of flow calls: function myF() { var newAccount = [here call a flow function of another block] e.g. cocoon.blocks.blockB.createNewAccount(); if(newAccount.type == "xyz") { cocoon.sendPage("xyz"); } e

Re: Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-09 Thread Reinhard Poetz
Glen Ezkovich wrote: On Jan 9, 2005, at 7:33 PM, Mark Lundquist wrote: From: Glen Ezkovich [mailto:[EMAIL PROTECTED] On Jan 9, 2005, at 4:17 PM, Mark Lundquist wrote: Do we really want inter-block flowscript function calls? Actually, I guess we do... there are some blocks that are meant to be us

Blocks, Flow and Dependencies [was RE: Splitting xconf files step 2: the sitemap]

2005-01-09 Thread Glen Ezkovich
On Jan 9, 2005, at 7:33 PM, Mark Lundquist wrote: From: Glen Ezkovich [mailto:[EMAIL PROTECTED] On Jan 9, 2005, at 4:17 PM, Mark Lundquist wrote: Do we really want inter-block flowscript function calls? Actually, I guess we do... there are some blocks that are meant to be used from flow, for whic