[web2py] Help Needed: 403 Error on File Upload in web2py Application on Windows Server with IIS

2024-08-22 Thread Silvian Cedru
Hello everyone, I’m encountering a persistent issue with my web2py application running on a Windows Server with IIS, and I’m hoping someone here might be able to help. *Issue:* Whenever I try to upload a file trough the FE of the application, I receive a 403 Forbidden error. I’ve gone through

Re: [web2py] Help needed with web2py-book app

2018-12-07 Thread Massimo Di Pierro
Merged. Will deploy tomorrow. Excellent and very much appreciated. On Tuesday, 4 December 2018 00:51:53 UTC-8, Nico Zanferrari wrote: > > Yes, the online version of the book is a web2py application - and I've > made it Python 3 compatible with that PR. > > But indeed the content of the book itsel

Re: [web2py] Help needed with web2py-book app

2018-12-04 Thread Ari Lion BR Sp
Congrratulations and Thanks, Nico ari / brazil Em terça-feira, 4 de dezembro de 2018 05:51:53 UTC-3, Nico Zanferrari escreveu: > > Yes, the online version of the book is a web2py application - and I've > made it Python 3 compatible with that PR. > > But indeed the content of the book itself is

Re: [web2py] Help needed with web2py-book app

2018-12-04 Thread Nico Zanferrari
Yes, the online version of the book is a web2py application - and I've made it Python 3 compatible with that PR. But indeed the content of the book itself is still mainly Python2-oriented any help is appreciated ;-) Nico Il giorno Lun 3 Dic 2018, 18:17 Marcelo Huerta ha scritto: > El sábad

Re: [web2py] Help needed with web2py-book app

2018-12-03 Thread Marcelo Huerta
El sábado, 24 de noviembre de 2018, 19:48:32 (UTC-3), Nico Zanferrari escribió: > > I'm proud to announce that I've finished the work, and now the web2py book > is python3 compatible, as with PR #395 > It was a hard work for > me, but I've learne

Re: [web2py] Help needed with web2py-book app

2018-11-24 Thread Nico Zanferrari
Hi, I'm proud to announce that I've finished the work, and now the web2py book is python3 compatible, as with PR #395 It was a hard work for me, but I've learned a lot ;-) Cheers, Nico Il giorno lun 15 ott 2018 alle ore 22:26 Nico Zanferrari ha s

Re: [web2py] Help needed with web2py-book app

2018-10-15 Thread Nico Zanferrari
Thank you all, I've finally resolved by using io.open() for the encode problem, and by putting the message in the redirect for bypassing the session.forget() command. Nico Il giorno ven 12 ott 2018 alle ore 21:34 Dave S ha scritto: > > > On Friday, October 12, 2018 at 2:52:44 AM UTC-7, Nico Z

Re: [web2py] Help needed with web2py-book app

2018-10-12 Thread Dave S
On Friday, October 12, 2018 at 2:52:44 AM UTC-7, Nico Zanferrari wrote: > > Hi Dave! > > On > https://github.com/web2py/web2py-book/blob/master/controllers/default.py > the session.forget() command is on line 10 - and I suppose it's quite > necessary. > > I wonder if that's for development, l

Re: [web2py] Help needed with web2py-book app

2018-10-12 Thread Nico Zanferrari
Hi Dave! On https://github.com/web2py/web2py-book/blob/master/controllers/default.py the session.forget() command is on line 10 - and I suppose it's quite necessary. If I change the convert2html function in order to test for import errors: try: from pygments import highlight as pygm

Re: [web2py] Help needed with web2py-book app

2018-10-12 Thread Dave S
On Thursday, October 11, 2018 at 1:29:04 PM UTC-7, Nico Zanferrari wrote: > > Thank you Ben, > > I was looking at the same official page ;-) > It seems that using the io module is the way to go, and it's already used > in pymysql . I'm testing it. > > Nobody has suggestions about the session.f

Re: [web2py] Help needed with web2py-book app

2018-10-11 Thread Nico Zanferrari
Thank you Ben, I was looking at the same official page ;-) It seems that using the io module is the way to go, and it's already used in pymysql . I'm testing it. Nobody has suggestions about the session.foget() and session.flash message? thank you, nico Il giorno gio 11 ott 2018 alle ore 17:3

Re: [web2py] Help needed with web2py-book app

2018-10-11 Thread Ben Duncan
Also found this: http://python-future.org/compatible_idioms.html On Thu, Oct 11, 2018 at 10:30 AM Ben Duncan wrote: > Try These suggestions: > > > https://stackoverflow.com/questions/491921/unicode-utf-8-reading-and-writing-to-files-in-python/83 > http://www.evanjones.ca/python-utf8.html >

Re: [web2py] Help needed with web2py-book app

2018-10-11 Thread Ben Duncan
Try These suggestions: https://stackoverflow.com/questions/491921/unicode-utf-8-reading-and-writing-to-files-in-python/83 http://www.evanjones.ca/python-utf8.html On Thu, Oct 11, 2018 at 9:38 AM Nico Zanferrari wrote: > Hi, > > the encode-decode problem on question 1 is mostly related to t

Re: [web2py] Help needed with web2py-book app

2018-10-11 Thread Nico Zanferrari
Hi, the encode-decode problem on question 1 is mostly related to the opening of files. For example: filename = os.path.join(FOLDER, subfolder, 'chapters.txt') if PY2: lines = open(filename) else: lines = open(filename, encoding='utf-8') In PY2 there is no option for t

Re: [web2py] Help needed with web2py-book app

2018-10-11 Thread Ben Duncan
Exactly what are you running into? I ran into this with my rewrite of of extract extract_pgsql_models.py: .. f['type'] = "'decimal({},{})'".format(f['precision'],f['scale']) had to become f['type'] = "'decimal({0},{1})'".format(f['precision'],f['scale']) And so one. The changes work acr

[web2py] Help needed with web2py-book app

2018-10-10 Thread Nico Zanferrari
Hello, I'm playing with the web2py-book app, in order to make it python 3 compatible and also to improve it a bit. I have a couple of questions related to default.py: 1. there were some encode-decode errors. I was able to resolve them (see https://github.com/nicozanf/web2py-book for a preview) bu

[web2py] Help needed simplifying creation of response.menu 4-tuple

2017-01-08 Thread Terrence Brannon
I attempted to simplify creation of the response.menu list of tuples by the following function: def menu_item(menu_item_text, url, sub_menu=None, ignore=False): # First element of tuple is the text of the meny item. retval = list(menu_item_text) # Second element of the tuple indicat

[web2py] Help needed to understand/utilise a CSS element

2016-10-02 Thread Peter
Would anyone haver time to explain briefly how to utilise this CSS code. /* Global Event Styles */ .fc-event, .fc-agenda .fc-event-time, .fc-event a { border-style: solid; border-color: #36c; /* default BORDER co

Re: [web2py] Help needed in obscure bug (only on server)

2013-08-08 Thread Carlos Correia
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Em 08-08-2013 21:56, Michele Comitini escreveu: > Is BizDoc pickable? > Yes. Otherwise Web2py would raise an exception (I think). > > 2013/8/8 Carlos Correia > > > Em 08-08-2013 20 :23, Ricardo Pedroso escreve

Re: [web2py] Help needed in obscure bug (only on server)

2013-08-08 Thread Carlos Correia
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Em 08-08-2013 22:05, Ricardo Pedroso escreveu: > > On Thu, Aug 8, 2013 at 9:22 PM, Carlos Correia > wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Em 08-08-2013 20:23, Ricardo Pedroso

Re: [web2py] Help needed in obscure bug (only on server)

2013-08-08 Thread Ricardo Pedroso
On Thu, Aug 8, 2013 at 9:22 PM, Carlos Correia wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Em 08-08-2013 20:23, Ricardo Pedroso escreveu: > > On Thu, Aug 8, 2013 at 2:36 PM, Carlos Correia < > car...@memoriapersistente.pt > > > wrote: > > > >

Re: [web2py] Help needed in obscure bug (only on server)

2013-08-08 Thread Michele Comitini
Is BizDoc pickable? 2013/8/8 Carlos Correia > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Em 08-08-2013 20:23, Ricardo Pedroso escreveu: > > On Thu, Aug 8, 2013 at 2:36 PM, Carlos Correia < > car...@memoriapersistente.pt > > > wrote: > > > >

Re: [web2py] Help needed in obscure bug (only on server)

2013-08-08 Thread Carlos Correia
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Em 08-08-2013 20:23, Ricardo Pedroso escreveu: > On Thu, Aug 8, 2013 at 2:36 PM, Carlos Correia > wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > > I'm facing a bug when I re

Re: [web2py] Help needed in obscure bug (only on server)

2013-08-08 Thread Ricardo Pedroso
On Thu, Aug 8, 2013 at 2:36 PM, Carlos Correia wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi, > > I'm facing a bug when I redirect to another controller, that redirects the > user > to the login prompt, after having been authenticated. > It's hard to tell what the problem is bu

Re: [web2py] Help needed in obscure bug (only on server)

2013-08-08 Thread Carlos Correia
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Clarifying the question: what kind of bug in my code may be causing the session to expire? Thanks, - -- Com os melhores cumprimentos, Carlos Correia = MEMÓRIA PERSISTENTE Tel.: 219 291 591 - GSM: 917 157 146 / 967 511 7

[web2py] Help needed in obscure bug (only on server)

2013-08-08 Thread Carlos Correia
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm facing a bug when I redirect to another controller, that redirects the user to the login prompt, after having been authenticated. The code is too large to post here but was working before I refactored some modules (mostly by using cache on DB

Re: [web2py] Help needed

2013-06-30 Thread Vinicius Assef
Inline answers, Cshekhar. On Sun, Jun 30, 2013 at 5:26 AM, Dreamer wrote: > Hi, Cshekhar Here!! > > > 1. I some how cannot get around the templating & Html Views in Web2Py & it > would be a great help if someone makes a video for the same... What did you try? What doubts do you have? I think th

[web2py] Help needed

2013-06-30 Thread Dreamer
Hi, Cshekhar Here!! I am a self taught intermediate level python programmer thanks to codecademy & learnstreet. Recently i have been tinkering with web2py ..& need help with 2 things. 1. I some how cannot get around the templating & Html Views in Web2Py & it would be a great help if someone m

Re: [web2py] help needed for a query for one to many relation

2011-09-30 Thread Marin Pranjić
On Fri, Sep 30, 2011 at 9:10 AM, arutti wrote: > Hello, > > I'm trying to make this simple query > > SELECT a.*, s.* FROM account a, statement s WHERE a.nb = '2110' AND > (a.id = s.debit OR a.id = s.credit) > > Hi arutti, this should work: rows = db((db.account.nb == 2110) & ((db.account.id == d

[web2py] help needed for a query for one to many relation

2011-09-30 Thread arutti
Hello, I'm trying to make this simple query SELECT a.*, s.* FROM account a, statement s WHERE a.nb = '2110' AND (a.id = s.debit OR a.id = s.credit) with query, set, rows objects the tables are defined as follow: . db.define_table('account', Field('id','id', represent=lambda id

[web2py] help needed: web2py with Eclipse and unicode [almost resolved]

2011-09-04 Thread weheh
Problem looks like is migrating from editor to browser. ok in Chrome, ! ok in Firefox. What a Tower of Babel this is. Still have to check others.

[web2py] Help needed with Google App Engine on Ubuntu 11.04

2011-08-02 Thread Pystar
Hi Guys, I am having some trouble running GAE on ubuntu 11.04, as I understand, GAE doesnt support python 2.7, so i installed python2.5 but whenever I try to run it, I get error messages. I am thinking of doing the following things but I dont really know how to proceed: 1. How do I completely unins

[web2py] Help needed on 3rd party authentication and links

2011-03-27 Thread Pystar
I have asked this question in the past but did not get an appropriate response. I would like to know how a site like tenthrow.com, which was built with web2py, incorporates third party authentication mechanisms like Twitter, Facebook and Google and local authentication on the site? If the tenthrow

[web2py] help needed with migration: ProgrammingError: column does not exist

2011-03-13 Thread VP
Well, I tried to modify my model by changing a column. I am using postgres. That apparently messed things up. Setting migration to True does not work. Viewing the database using psql, I saw that that column was deleted, but adding the same field (in web2py) does not recreate that column. Is th

[web2py] help needed with db table indexing within SQLFORM.factory

2010-12-11 Thread weheh
I'm using SQLFORM.factory to create a multi-list from a list:string field: form=SQLFORM.factory(db.mytable) where db.define_table('mytable',Field('groups','list:string')) The view is: form.custom.widget.groups The multilist widget appears in the view -- no problems there. The issue is t

[web2py] Help needed with upload files & their manipulation

2010-09-05 Thread weheh
I need to upload a file to uploads, process it, and store the processed result in a new folder/file. # I've defined the following two models db.define_table('infile', Field('parent',db.parent), Field('name','upload',autodelete=True,uploadseparate=True)) db.define_table('outfile', Field('pare

[web2py] Help needed adding rows to a database table...

2010-06-14 Thread Jeff Elkner
It is the end of the school year and my students and I are trying to create simple projects using web2py. Can you point me to a "simple" example of web2py creating and accessing a database? By "simple" I mean from the teaching perspective. I wanted to create a little application that stored quot