On 22/01/2021 12:51, Terry Coles wrote:
> On Thursday, 21 January 2021 14:28:42 GMT Ralph Corderoy wrote:
>> https://stackoverflow.com/questions/19794695/flask-python-buttons/27952991#2
>> 7952991 is the same approach as the book.  You may find the book better
>> written than trying to piece it together from SO answers.  :-)
> Ralph,
>
> You are right of course about the dangers of piecing a solution together from 
> SO answers.  It took me quite a while but I was able to get something working 
> using the preferred solution at that site.
>
> The trouble with Stack Overflow and other like sites is that they often 
> assume 
> that the reader already knows everything about the subject, except for the 
> problem under discussion.  In this case a novice like me had to 'know' that 
> the 'request' method had to be explicitly imported from the flask module.  I 
> had the same problem with 'form'.
>
> That solution was provided by Miguel Grinberg the author of the Tutorial that 
> you suggested that I use instead, so I was fairly comfortable that I would 
> get 
> something to work.
>
> On a related topic I bought Miguel's book from Amazon, but found that the 
> Kindle edition was not searchable which made it extremely hard to find things 
> without reading the book from cover to cover (416 pages, no index, no Table 
> of 
> Contents).  Not good for a text book.
>
> Eventually I discovered that indexing worked in that book if I viewed it 
> using 
> the Kindle Reader in Firefox, but not when using the Kindle Reader in 
> Chromium.  Also the book is not searchable on my Kindle device.

I'm glad you found a solution. Is it on gitlab? Might be useful for me
to see it as well, seeing as I'll be using Flask soon for the visitor GUI.

I didn't even know ebooks could be viewed in browsers, that's good!
Perhaps filing a bug for Firefox would be a good idea? I'm sure other
people are affected by this issue too.

Hamish

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
  Next meeting: Online, Jitsi, Tuesday, 2021-02-02 20:00
  Check to whom you are replying
  Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk
  New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk

Reply via email to