Thanks jeremy for your answer,
What im trying to say is only that the psp file I will use for modelling
issues is a matter of not creating myself the class file I would have to
create with py.extention and nothing more
To clarify more I will have two kinds off psp files,
1) like a py file <%%> (for modellers)
2) all the html rendering (for designers)
Anyway as we say in argentina =93all is a matter of taste=94
Thank you again
[mailto:webware-discuss-bounces@...] En nombre de =
Enviado el: Mi=E9rcoles, 06 de Diciembre de 2006 14:13
Para: Discussion of Webware for Python including feedback and proposals.
Asunto: Re: [Webware-discuss] forwarding req.values ?
At this stage I believe with one or two unwary steps we could head down =
road of religious debate...so I'll tread carefully.
I will say, however, that when I separate model from view from =
one of my own personal motivations is to have the code workspace that =
view designer plays/works in be uncluttered by model and view code. As =
result, I would never put any model code into a template or psp file. =
you find yourself writing sql or database access code in a psp file =
pretty good sign you've wandered off the path a bit. Its possible I
misunderstood what you're saying, so take my words with a grain of salt.
And, as with all religions, you have to decide what you believe in and =
fits your circumstance best.
tabs suck, spaces RULE!!!
[mailto:webware-discuss-bounces@...] On Behalf Of =
Sent: Tuesday, December 05, 2006 11:08 PM
To: Discussion of Webware for Python including feedback and proposals.
Subject: Re: [Webware-discuss] forwarding req.values ?
tim thank you for you clear response and also thank you all for your =
im still thinking that psp is the best and easy way to have the job done =
a MVC scenario
all modeling/controller and db connections files are going to be built
inside psp files <% %> that shoud be included on view psp files, =
all html (produced by a wysyswyg page builder including all needed
psp compiler takes care of all PY code an generate the classes =
including all webkit page and the related servlets
to handle vars thru out the servlets i will use post/get and mostly =
if anybody thinks that im wrong in anyway i would like to have an input =
clarify myself once more
by the way i also would like to know if there is a place to upload my
snippets or download of someone else and have the way to run them as a
WEBWARESTORE of online running examples to discuss and or learn at the =
makerjoe (jose luis hrydziuszko)-(argentina)
On 12/5/06, Tim Roberts <timr@...> wrote:=20
On Mon, 4 Dec 2006 15:21:22 -0300, <makerjoe@...> wrote:=20
> hi chris:
> if I avoid "trans.application().forward(trans, 'list.psp')"
> req.setField('ww', ww)
> req.setField('rr', rr)
> req.setField('xx', xx)
> ################### trans.application().forward(trans, 'list.psp')
> <form action=3D"list.psp" method=3D"post">
> <INPUT type=3D"hidden" name=3D"aa" value=3D"<%=3Daa%>">=20
> <INPUT type=3D"hidden" name=3D"bb" value=3D"<%=3Dbb%>">
> <INPUT type=3D"hidden" name=3D"cc" value=3D"<%=3Dcc%>">
> Does all req.values (aa,bb,cc,ww,rr,xx)will be send to list.psp ?
No. req.setField only affects other consumers of this request in
Webware. When you use forward(), the same request object will be
inherited by the new script, so it will see them. In the case you have=20
there, you are writing HTML back to the web browser, at which point this
request object will be deleted. The response from the client's browser
represents a brand-new request, and will only contain those variables=20
that you wrote in the HTML form.
Tim Roberts, timr@...
Providenza & Boekelheide, Inc.
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share =
opinions on IT & business topics through brief surveys - and earn cash
Webware-discuss mailing list
__________ Informacisn de NOD32, revisisn 1904 (20061206) __________
Este mensaje ha sido analizado con NOD32 antivirus system