The whole chapter 7 (http://web2py.com/books/default/chapter/29/07/)

Is basically that!! If  you follow example step by step you should better
understand how it works... You can have a read of chapter 3 (
http://web2py.com/books/default/chapter/29/03/)

And the chapter 1 (
http://web2py.com/books/default/chapter/29/01/introduction#In-the-box),
there is some graph with big picture details...

I would have difficulties to make a comprehensive resume here of all what
contained in this chapters...

But read them is pretty straightforward and comprehensive...

Richard


On Fri, Jan 30, 2015 at 4:04 PM, Eric <[email protected]> wrote:

> Richard,
>
> Thank you for your kind response. I did find the SQLFORM example and got
> it to present the form and accept a file. I'm still struggling with an
> overall idea of how things work in Web2py (and perhaps the web itself). Is
> there a resource that clearly describes what happens when a page is
> accessed the order or processing what happens. I don't quite understand
> what Python code is triggered immediately, how messages or whatever are
> generated as someone interacts with the page, etc. This is a general
> question and I'm sure there are good recourses for me to read. What I'm
> trying to avoid is just assuming some "magic" happens.
>
> Eric
>
> On Thursday, January 29, 2015 at 12:20:53 PM UTC-6, Richard wrote:
>>
>> Without the code from your controller and view it is more difficult to be
>> sure of what you are talking about exactly...
>>
>> I guess you have wrote a model, where you define a field of type upload,
>> then you want to understand how the upload of the file works and thing get
>> done...
>>
>> A simple question may be hard to draw, there  is many code layer
>> involves, but book explanation about upload may be a good start for you to
>> understand :
>> http://web2py.com/books/default/chapter/29/07/forms-
>> and-validators#SQLFORM-and-uploads
>>
>> Web2py is a framework, so many things that you may use to write from
>> scratch in php are readily available in web2py without you to butter
>> recoding them, except if you need custom things not offers and even then,
>> there many ways to tweaks web2py default feature most of the time, passing
>> just more parameters...
>>
>> Richard
>>
>> On Wed, Jan 28, 2015 at 10:46 AM, Eric <[email protected]> wrote:
>>
>>> Sorry if this is too basic a question. I very new to web programming and
>>> Web2py. I have written some desktop applications. Where I'm having trouble
>>> right now is understanding exactly how the Python code in Web2py interacts
>>> with the HTML. In my desktop GUI apps, a control like a button generates a
>>> trigger or callback which I can capture and execute code in response. I'm
>>> sure something like this is happening in web apps too, but I'm not quite
>>> getting how it works. For example, If I place the following tag in the
>>> HTML:
>>> <input type="file" name="fileID">
>>> the page will display a button with which I can select a file with the
>>> browser's open file dialog. It will even show the file name on the page
>>> after selection. What I can't see is how I execute a Python function in
>>> response to this selection or how to get the filename to the function. I'm
>>> thinking I need some basic instruction in how web programming works so any
>>> references would be appreciated. I've been working my way through an
>>> on-line HTML tutorial, but it seems that javascript is also important.
>>>
>>> Thanks in advanced,
>>>
>>> Eric
>>>
>>> --
>>> Resources:
>>> - http://web2py.com
>>> - http://web2py.com/book (Documentation)
>>> - http://github.com/web2py/web2py (Source code)
>>> - https://code.google.com/p/web2py/issues/list (Report Issues)
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "web2py-users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to