[web2py] Re: Web server with support for chunked transfer encoding

2018-11-08 Thread Dave S
On Thursday, November 8, 2018 at 8:18:41 AM UTC-8, icodk wrote: > > Tried with Rocket No error but request.args and request.vars are empty > The client sends: > > POST /controller/statdata HTTP/1.1 > Host: myserver.com:8082 > Content-Type:application/json > Transfer-Encoding: chunked > > and the

[web2py] HOW TO SET A DEFAULT VALUE FOR A TABLE REFERENCED IN ANOTHER TABLE

2018-11-08 Thread mostwanted
if i have 2 table client and city and have city referenced in client, how do i set a default value for city that will appear in client? I tried setting default in city hoping it will show as a default value in client but its not showing! I hope this explanation of the problem is clear enough it d

[web2py] Re: What are you use with web2py.

2018-11-08 Thread 黄祥
> > Ooops, I forgot about Fabric, http://www.fabfile.org> . > There's a sample fabfile in the example scripts directory, and it's been > discussed in the group before. It's like a lighter version of chef, I'd > say. I cooked up a fabfile to see what application files need to be looked > at wh

[web2py] Re: What are you use with web2py.

2018-11-08 Thread Dave S
On Thursday, November 8, 2018 at 2:43:45 AM UTC-8, Dave S wrote: > > > > On Thursday, November 8, 2018 at 12:24:38 AM UTC-8, Константин Комков > wrote: >> >> Now I'm working on server if I want to edit anything in project (I have >> duplicate project), but as I think it's not right. >> I want t

Re: [web2py] Re: Custom Auth module

2018-11-08 Thread Ben Duncan
Great! The second part about defining (not recommend) is what I need However, I will be interfacing with external applications and predefined tables, so that should work out just fine. I can add the rest of the "Auth" tables to my external definitions (Postgres) *Ben Duncan* DBA / Chief Software

[web2py] Re: Custom Auth module

2018-11-08 Thread 黄祥
ref: http://web2py.com/books/default/chapter/29/09/access-control#Customizing-Auth best regards, stifan -- 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) --- Y

[web2py] Custom Auth module

2018-11-08 Thread Ben Duncan
I need to have a custom authentication module - mainly pointing to and using my own auth_user and auth_group tables Which modules from the base (welcome) do I need to change or what documentation do i need to read up on on how to do this ... Thanks *Ben Duncan* DBA / Chief Software Architect Mi

[web2py] Re: What are you use with web2py.

2018-11-08 Thread Marcelo Huerta
My editor is Sublime Text 3. It's really fantastic, responsive and very configurable, with an interesting range of plugins. AS VCS I use Fossil . It can't really be beaten for simplicity and easy of configuration. Your repositories can be self-hosted with little fuss. You

[web2py] Web server with support for chunked transfer encoding

2018-11-08 Thread icodk
Tried with Rocket No error but request.args and request.vars are empty The client sends: POST /controller/statdata HTTP/1.1 Host: myserver.com:8082 Content-Type:application/json Transfer-Encoding: chunked and then sends the chunked data Rokets log shows: 192.168.1.3, 2018-11-08 16:46:57, POST,

[web2py] Re: Request for direction to benchmark

2018-11-08 Thread mostwanted
I think you are right, i complicated the UI from the jump now i cant finish it, I should lay a more flexible foundation. On Thursday, November 8, 2018 at 10:19:39 AM UTC+2, Dave S wrote: > > > > On Wednesday, November 7, 2018 at 10:29:49 PM UTC-8, mostwanted wrote: >> >> Hey Stifan, i did look at

[web2py] Re: Problem with starting project

2018-11-08 Thread Константин Комков
In applications/application/modules/ there isn't file fdb.py and in project on server too, but project on server is working. I looked file on server with name fdb.py and didn't find. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (So

Re: [web2py] Re: Error with datetime.

2018-11-08 Thread Maurice Waka
Same code using storage.sqlite is ok but when I switched to MongoDB which intent to use in future, the error comes up. On Thu, 8 Nov 2018, 11:33 Dave S > > On Wednesday, November 7, 2018 at 3:27:16 PM UTC-8, 黄祥 wrote: >> >> from error traceback seems like must convert the str to datetime.date >>

[web2py] Re: Problem with starting project

2018-11-08 Thread 黄祥
the new error seems you've missed the file in applications/application/modules/fdb.py, pls ensure that file exist perhaps better to start the project from simple first (either windows version or source version) copy the welcome app, ensure no error occured, then add your code, little by little,

[web2py] Re: Problem with starting project

2018-11-08 Thread Константин Комков
I downloaded python 2.7.9 and start web2py (fsiource code). Code of error change: ((ImportError('No module named application.modules',), )) at 05770F30, file "D:\web2py_src\web2py\applications\application\models\db.py", line 7> Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. Traceback (most r

[web2py] Re: What are you use with web2py.

2018-11-08 Thread 黄祥
On Thursday, November 8, 2018 at 3:24:38 PM UTC+7, Константин Комков wrote: > > Now I'm working on server if I want to edit anything in project (I have > duplicate project), but as I think it's not right. > I want to copy all project on PC for editing it. After that if project > working good I wa

[web2py] Re: Problem with starting project

2018-11-08 Thread Dave S
On Thursday, November 8, 2018 at 12:29:56 AM UTC-8, Константин Комков wrote: > > [image: web2py.png] > I use usual version of web2py. Maybe I don't understend question. > That would be the Windows exe+dll version. It should have everything, but some files need to be copied from the inert sampl

[web2py] Re: Problem with starting project

2018-11-08 Thread 黄祥
perhaps you can try for normal users: source code install python for windows first and then try to run web2py source best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2p

[web2py] Re: Problem with starting project

2018-11-08 Thread Константин Комков
Lovedie JC, bit? Can you tell about it in more detail? I rtied to change folder with web2py and delete 2 empty lines from appconfig.py but problem remain. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.go

[web2py] Re: What are you use with web2py.

2018-11-08 Thread Dave S
On Thursday, November 8, 2018 at 12:24:38 AM UTC-8, Константин Комков wrote: > > Now I'm working on server if I want to edit anything in project (I have > duplicate project), but as I think it's not right. > I want to copy all project on PC for editing it. After that if project > working good I

Re: [web2py] Re: Problem with starting project

2018-11-08 Thread Lovedie JC
Last time I had the same but noted that the appconfig pt was not in the private folder. Once I moved bit the the error disappears. On Thu, 8 Nov 2018, 11:24 Dave S > > On Wednesday, November 7, 2018 at 10:06:31 PM UTC-8, Константин Комков > wrote: >> >> I downloaded web2py, deleted old and instal

[web2py] Re: Error with datetime.

2018-11-08 Thread Dave S
On Wednesday, November 7, 2018 at 3:27:16 PM UTC-8, 黄祥 wrote: > > from error traceback seems like must convert the str to datetime.date > ref: > https://stackoverflow.com/questions/466345/converting-string-into-datetime > > best regards, > stifan > >From the traceback, it's not clear to me if th

[web2py] Re: Problem with starting project

2018-11-08 Thread Константин Комков
[image: web2py.png] I use usual version of web2py. Maybe I don't understend question. -- 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

[web2py] Re: Problem with starting project

2018-11-08 Thread Dave S
On Wednesday, November 7, 2018 at 10:06:31 PM UTC-8, Константин Комков wrote: > > I downloaded web2py, deleted old and installed again, but error was the > same. > Are you using the source version with a separate Python, or are you using the Windows exe+dll version? /dps > There is fil

[web2py] Re: What are you use with web2py.

2018-11-08 Thread Константин Комков
Now I'm working on server if I want to edit anything in project (I have duplicate project), but as I think it's not right. I want to copy all project on PC for editing it. After that if project working good I want to find the way for update project on server, better without copying file manually

[web2py] Re: Request for direction to benchmark

2018-11-08 Thread Dave S
On Wednesday, November 7, 2018 at 10:29:49 PM UTC-8, mostwanted wrote: > > Hey Stifan, i did look at it but id dint quite find what i was looking for > but thanks for the suggestion. > Being a simple-minded sort, I'd have started simple: Use regular web2py sqlforms to handle the UI and make su